| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
renamed BuilderFactory[El, To, From] -> CanBuildFrom[From, El, To] and
added apply() overload to create collections from scratch generically
added def apply() overload to BuilderFactory so that we can also create collections from scratch generically
(see test test/files/pos/collectGenericCC.scala)
renaming:
- BuilderFactory[El, To, From] -> CanBuildFrom[From, El, To]
bulk type-param reordering using: s/CanBuildFrom\[\s*([^,()\s]*)\s*,(\s+[^\s,()]*)\s*,\s+([^\s,()]*)\s*\]/CanBuildFrom[$3, $1,$2]/
some argument lists got mixed up because they contained 4 comma's...
- builderFactory -> canBuildFrom
removed explicit implicit value in DocDriver that was
renamed renamed collection/generic/BuilderFactory.scala ->
collection/generic/CanBuildFrom.scala
tested with clean build using ant strap.done -- everything went well on my machine
|
|
|
|
|
|
| |
Made Platform methods inlineable and allow the optimiser to load code
for methods that have the @inline attribute
|
|
|
|
|
| |
Implementation of martin's suggested fix for #1503.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some reworking of command line option parsing because it was not
possible to say
scala -i include1.scala include2.scala -e 'code to execute'
and it should be. And now it is. This required changing
MultiStringSetting to only accept arguments until it runs into one
starting with '-' rather than blindly swallowing all the rest of the
command line as it used to, which was terribly unfriendly parsing
behavior regardless.
|
|
|
|
|
|
| |
proposing this as the long-term fix (unless by some miracle it is the
right fix, in which case good for me.)
|
| |
|
|
|
|
|
|
|
| |
Fix and test for #1674; we aren't supposed to be validating positions
if there are syntax errors ... ensure that's so; we are supposed to be
validating positions when -Yide-debug is set ... ensure that's so.
|
| |
|
|
|
|
|
|
|
| |
flags on AnyVal from FINAL|SEALED to ABSTRACT|SEALED. This appears
correct and without ill effect, but if anyone spots new anyval oddness
you know where to look.
|
|
|
|
|
|
| |
Expanded shadowing warnings to include block statements, and cleaned it
up a ways.
|
|
|
|
|
|
|
| |
Created -Xstrict-warnings and got the ball rolling with an attempt at
spotting variable shadowing. Has to get less noisy but plenty useful
as-is.
|
|
|
|
|
|
|
| |
moved Range and GenericRange to collection.immutable, with alias for
Range in scala package object; made Range strict. moved from filter to
withFilter in translation for for expressions.
|
| |
|
|
|
|
|
|
|
|
| |
detritus from regular expression patterns, but Star still depends
on REGPATmode existing -- nothing checks for that mode specifically,
but not having it set causes failure. So it is renamed to STARmode.
|
|
|
|
|
|
|
| |
Scaladoc comment position fixes with tests; scaladoc comment postions
are now accessible by symbol; respond retry in interactive Global is now
handled properly.
|
|
|
|
|
|
| |
I can fix #1697 without making other things break (fix not included but
should be forthcoming.)
|
|
|
|
|
| |
Fixed stability issues for the optimised build, this time for real.
|
|
|
|
|
|
|
| |
You might think someone would eventually weary of polishing the
debugging code, but there comes a point when it seems like the lesser
evil.
|
| |
|
|
|
|
|
|
| |
Yet more code for scrutinizing the pattern matcher, and a couple minor
duplication/dead-code cleanups seen elsewhere.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
reverted immutable.Vector because it gave random build errors on my
machine. Fixed various tickets, updated test and check files.
|
|
|
|
|
| |
Taking a first crack at straightening out MixTypes.
|
|
|
|
|
| |
tracing code for the long haul.
|
|
|
|
|
|
| |
Added the concepts of "necessary type" and "sufficient type" to Pattern
to assist in creating sensible matching logic.
|
|
|
|
|
| |
Further iteration related to patterns and bindings.
|
| |
|
|
|
|
|
|
|
| |
Created PatternVarGroup to hold a sequence of patternvars. Soon all
the variable binding code will be swallowed and each action related to
variables will happen at one location only.
|
|
|
|
|
|
|
|
|
| |
In the same way that raw Trees are giving way to Patterns, raw Symbols
(and accompanying ValDef trees) are being replaced by PatternVars. Once
these are both used consistently a number of bugs will vanish with a
puff of smoke, as they are caused by inconsistencies which need not ever
be allowed to occur.
|
|
|
|
|
|
| |
Improving tracing output, and more code organization to hide the
uninteresting bits.
|
|
|
|
|
|
|
|
|
|
| |
bits into the SequencePattern class, which took me an eternity because
the current logic only worked because of bugs in the pattern matcher
which allowed a non-matching case to match anyway. Trust me, you do not
want to debug that sort of thing. I wonder how much of the compiler
would stop working if I magically fixed all the matcher bugs at once,
and long dormant logic suddenly lurched to life...
|
|
|
|
|
|
|
|
| |
Further centralized all temporary variable creation. Tracked down
multiple places where var allocation and assignment had been fragilely
divorced and arranged for reconciliation. Almost have every Rule using
the cond/success/failure interface.
|
|
|
|
|
|
| |
Starting the process of properly encapsulating the temporary variables
created during pattern match translation.
|
|
|
|
|
|
| |
Breaking down the matcher's various Mix* classes into direct expressions
of condition/success/failure.
|
|
|
|
|
| |
Don't fold List.apply() to Nil in presentation mode.
|
|
|
|
|
|
|
| |
Amazing how much code becomes unnecessary when you use immutable data
wherever you can. Continuing to break down the last few environments
inside the pattern matcher which bugs find hospitable.
|
| |
|
|
|
|
|
|
|
| |
Moved yet more stuff out of ParallelMatching, and began the painful
process of peeling away the variable bindings code far enough to see
what is going wrong down there.
|
|
|
|
|
|
|
| |
Make the positions of the children of an Import transparent so that
the interactive compiler will always find the Import rather than the
children.
|
|
|
|
|
|
| |
Reworked exhaustiveness checking yet further, and moved it and some
other pieces into their own file.
|
|
|
|
|
|
|
| |
1) Removed a bunch of unnecessary calls to the typer. 2) Reworked
exhaustiveness checking so I can tell what it's doing. 3) Cruft falls
away left, right, and center.
|
|
|
|
|
| |
Added aliases for Vector and Traversable to scala package object.
|
|
|
|
|
|
|
|
|
| |
Renamed identifier pats to pmatch to reduce ambiguity, and implemented
generic precondition machinery for testing whether a pattern should
even be attempted. This is like a complement to guards (though not user
expressable) and is a key to fixing some of the longer standing matcher
bugs.
|
|
|
|
|
|
| |
Switched to using .narrow where possible instead of constructing
singleton types by hand.
|
| |
|
|
|
|
|
| |
Finishing up a bit of treegen I had left in mid-refactor.
|