summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix and test case for #2512, plus lots of time ...Paul Phillips2009-10-258-16/+29
| | | | | | | | Fix and test case for #2512, plus lots of time expended tuning HashSet starting sizes and growth rate, with almost nothing to show for it (but I did determine that "shadowed" is constructed identically something like 10,000 times, so there is probably a cache to be had there.)
* Fixed isCoDefinedWith by undoing previous changes.Iulian Dragos2009-10-241-1/+2
|
* Reorg of number parsing to use more direct logic.Paul Phillips2009-10-232-41/+51
|
* Parser fix involving backquoted identifiers (#2...Paul Phillips2009-10-231-7/+15
| | | | | Parser fix involving backquoted identifiers (#2514) plus test case.
* fixed #2428 for good.Martin Odersky2009-10-236-12/+23
|
* The last patch to work around #1909 caught one ...Paul Phillips2009-10-221-0/+4
| | | | | | The last patch to work around #1909 caught one brand of lifts but not another. Better now and another test case.
* Made sortBy unexperimental.Paul Phillips2009-10-222-9/+7
|
* Tickets #1909 and #2508 involve code which comp...Paul Phillips2009-10-222-0/+9
| | | | | | | Tickets #1909 and #2508 involve code which compiles but then fails at runtime due to invalid bytecode. This commit turns those into compile time errors. Includes negative test case.
* the essence of tcpoly inference + test casesAdriaan Moors2009-10-224-97/+111
| | | | | | fixes to check files and removed nonapplicable test case Tuple2 impl, but commented out so that we can bootstrap whitespace...
* Added (a variation on) jorge ortiz's sortBy to ...Paul Phillips2009-10-222-4/+28
| | | | | | Added (a variation on) jorge ortiz's sortBy to SeqLike, added docs and test case. Added map to Ordering.
* Specialized works with Unit and handles correct...Iulian Dragos2009-10-222-37/+84
| | | | | | Specialized works with Unit and handles correctly uncheckedVariance annotations.
* Revert "added CanBuild type alias in package ob...Adriaan Moors2009-10-221-6/+0
| | | | | | | Revert "added CanBuild type alias in package object scala.collection.generic" because it broke scaladoc (I consider that a bug -- filing ticket) This reverts commit 5b3ba1c27cdce76d8aef2bfb9aa5a836237521a9.
* Removed erroneous return type comment in scalad...Donna Malayeri2009-10-221-1/+0
| | | | | Removed erroneous return type comment in scaladoc for remove(Int, Int)
* removed some of the code duplication that Marti...Adriaan Moors2009-10-2225-102/+28
| | | | | removed some of the code duplication that Martin pointed out in my addition of def apply() to GenericCanBuildFrom
* Another warning for -Xstrict-warnings.Paul Phillips2009-10-224-7/+30
| | | | | | | beloved try/catch blocks which swallow all comers. Realized that two warnings are already one too many to combine under a single option, and broke them out into individual options.
* Added -Ytailrecommend option.Paul Phillips2009-10-212-6/+25
| | | | | | | much tail recursion you're missing out on, if only you knew where to sprinkle the finals and privates. If the option is given it will report on all methods it could have transformed.
* renamed Vector to IndexedSeqTiark Rompf2009-10-2143-213/+220
|
* added methods updated +: :+ to SeqLikeTiark Rompf2009-10-211-172/+0
|
* added methods updated +: :+ to SeqLikeTiark Rompf2009-10-212-8/+20
|
* scala.collection.Vector defaults to immutableTiark Rompf2009-10-211-1/+161
|
* A selection of cleanups stemming from recent in...Paul Phillips2009-10-218-55/+68
| | | | | A selection of cleanups stemming from recent investigations.
* Made Cursor.next tail recursive by making it fi...Paul Phillips2009-10-211-1/+3
| | | | | Made Cursor.next tail recursive by making it final.
* refactoring of TypeVar to set the stage for tcp...Adriaan Moors2009-10-217-142/+255
| | | | | | | | | | | | | | | | | | | | | | | | refactoring of TypeVar to set the stage for tcpoly inference (also touched UndoLog, isHigherKinded logic in TypeRef) added <:< implicit, should bootstrap selection from squashed commit messages: commented out stuff so that this can be used to bootstrap and build a new starr merged/cherry picked refactorings unrelated to #2261 (undoLog, cloneInternal, NoImplicitInfo) made conforms implicit, identity explicit replaced the implicit `identity` coercion by `conforms`, which can be used to encode generalised constraints the introduction of `conforms` revealed a bug in adaptToMember, which was inferring views while already inferring one, which gave rise to diverging implicits. Predef.identity is no longer special as far as the compiler is concerned. cleaned up isHigherKinded logic in TypeRef, and implemented it in TypeVar along with normalize added <:< to Predef: use as evidence for encoding generalized constraints (BTW: extractUndetparams clears undetparams: don't use in debug output -- I learned the hard way...) added todo about ticket 2066 -- branching from master to explicitkinds for fix refactoring: moved bounds tracking logic to TypeVar introduced typeConstructor in Type because we can't use appliedType(tp, List())) to strip a type's type arguments (appliedType is a no-op for empty args) -- don't want to pattern match on type either removed unused overrides in TypeVar (TODO double check) making appliedType more robust since it is now used more liberally -- neg/t0226 should no longer fail now merged in appliedType refactoring and added TypeVar logic to appliedType
* added CanBuild type alias in package object sca...Adriaan Moors2009-10-211-0/+6
| | | | | added CanBuild type alias in package object scala.collection.generic
* Fixed #2429.Martin Odersky2009-10-214-6/+14
|
* Added some info to a tripping assertion.Paul Phillips2009-10-211-2/+2
|
* renamed BuilderFactory[El, To, From] -> CanBuil...Adriaan Moors2009-10-2180-167/+290
| | | | | | | | | | | | | | | | | | | | | 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 ...Iulian Dragos2009-10-212-1/+9
| | | | | | Made Platform methods inlineable and allow the optimiser to load code for methods that have the @inline attribute
* Fix and test for #2446.Philipp Haller2009-10-211-15/+11
|
* Implementation of martin's suggested fix for #1...Paul Phillips2009-10-201-6/+15
| | | | | Implementation of martin's suggested fix for #1503.
* Fix and test case for #2260. Hooray for thePaul Phillips2009-10-203-10/+17
| | | | | ability to influence the priority of implicits.
* Some reworking of command line option parsing b...Paul Phillips2009-10-202-62/+61
| | | | | | | | | | | | | | 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.
* Do not use ForkJoinPool when running on IBM J9;...Philipp Haller2009-10-2041-6/+12579
| | | | | | Do not use ForkJoinPool when running on IBM J9; in this case use 1.5 ThreadPoolScheduler.
* Ordering delegates Float/Double comparisons to ...Paul Phillips2009-10-201-8/+2
| | | | | Ordering delegates Float/Double comparisons to java.lang. Ticket #2498.
* Relaxing a check for ticket #2486, plus test case.Paul Phillips2009-10-191-5/+17
| | | | | | proposing this as the long-term fix (unless by some miracle it is the right fix, in which case good for me.)
* Another bunch of work on Numeric, Range, Generi...Paul Phillips2009-10-195-40/+103
| | | | | | Another bunch of work on Numeric, Range, GenericRange, BigDecimal, and a pile of test cases for various aspects of GenericRange.
* A new and better fix for ticket #1373.Paul Phillips2009-10-195-35/+67
|
* Fix and test for #1674; we aren't supposed to b...Miles Sabin2009-10-194-3/+8
| | | | | | | 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.
* Repaired some impressively wrong isEmpty logic ...Paul Phillips2009-10-191-3/+3
| | | | | Repaired some impressively wrong isEmpty logic (ticket #2483.)
* Made GenericRange covariant.Paul Phillips2009-10-182-22/+41
| | | | | Added additional equality logic I realized was necessary.
* Fix for #1687.Paul Phillips2009-10-171-1/+4
|
* Fix and test cases for ticket #443.Paul Phillips2009-10-172-8/+4
| | | | | | | 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.
* Fixed a bunch of issues with GenericRange.Paul Phillips2009-10-163-58/+53
|
* Expanded shadowing warnings to include block st...Paul Phillips2009-10-161-10/+46
| | | | | | Expanded shadowing warnings to include block statements, and cleaned it up a ways.
* Fixed typo from last commit.Paul Phillips2009-10-161-1/+1
|
* added isInclusive to Range.Martin Odersky2009-10-162-0/+4
|
* Fixed new implementation of Range.Martin Odersky2009-10-162-81/+49
|
* Created -Xstrict-warnings and got the ball roll...Paul Phillips2009-10-162-25/+49
| | | | | | | 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.immu...Martin Odersky2009-10-1611-135/+302
| | | | | | | 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.
* Fix for #2467.Paul Phillips2009-10-161-2/+3
|