summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into xsbtPaul Phillips2011-12-091-2/+26
|\
| * Added per-file stats to -Dscala.timings.Paul Phillips2011-12-091-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | % pscalac -Dscala.timings ./src/library/scala/util/*.scala phase id ms share ----------------------- -- ---- ----- typer 4 3632 44.73 specialize 13 1175 14.47 erasure 15 800 9.85 jvm 27 504 6.21 icode 22 427 5.26 ... ms path -------- ---------------------------------------------- 1056.667 ./src/library/scala/util/Sorting.scala 1019.369 ./src/library/scala/util/MurmurHash.scala 702.881 ./src/library/scala/util/Properties.scala 435.053 ./src/library/scala/util/Random.scala 429.702 ./src/library/scala/util/MurmurHash3.scala 246.453 ./src/library/scala/util/DynamicVariable.scala 69.755 ./src/library/scala/util/Marshal.scala
* | Fixed Emit*Page to write to file.Josh Suereth2011-12-092-153/+17
| | | | | | | | | | | | | | | | The EmitHtmlPage and EmitManPage utilities now write to a file if there is more than one argument on the command line. This allows the SBT build to fork them and still generate a file without having to capture the output stream.
* | Merge branch 'master' into xsbtJosh Suereth2011-12-092-9/+13
|\|
| * Merge remote-tracking branches 'VladUreche/issue/5054' and ↵Paul Phillips2011-12-0841-189/+155
| |\ | | | | | | | | | 'jsuereth/dont_resolve_releases'
| * | Fixed #5054, #5287Vlad Ureche2011-12-082-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documents with use cases should be restructured like: /** * The full definition, either used with an implicit value or with an explicit one. * * Some more explanation on implicits... * * @param lost a lost parameter * @return some integer * * @usecase def test(): Int * * This takes the implicit value in scope. * * Example: `test()` * * @usecase def test(explicit: Int): Int * * This takes the explicit value passed. * * Example: `test(3)` */ def test(implicit lost: Int): Int
* | | Merge branch 'master' into xsbtJosh Suereth2011-12-0841-189/+155
|\ \ \ | | |/ | |/|
| | |
| | \
| | \
| | \
| *---. \ Merge remote-tracking branches 'soc/SI-4990', ↵Paul Phillips2011-12-0727-142/+83
| |\ \ \ \ | | | | | | | | | | | | | | | | | | 'fedgehog/docs_fix_for_scala.Either.cond___SI-5113' and 'kepler/ticket/5266' into develop
| | | | * | Fix reflective toolbox producing invalid bytecodeEugene Burmako2011-12-071-3/+4
| | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrapper method for AST undergoing a reflective compilation has been incorrectly marked as static. This was off the radars until one day the code being compiled declared a top-level method. During flatten that method got hoisted into the wrapper module, and its invocation got translated into an instance call upon the module. This led to static wrapper method trying to call an instance method, and that blew up the bytecode verifier. More info: https://issues.scala-lang.org/browse/SI-5266. Fixes SI-5266, review by @odersky.
| | | * / Fix documentation errorfedgehog2011-12-071-4/+4
| | | |/
| | * / Migration message and version cleanupSimon Ochsenreither2011-12-0725-135/+75
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | The @migration annotation can now be used like @deprecation. Old syntax is still supported, but deprecated. Improve wording and consistency of migration messages, migration warnings also print the version in which the change occurred now. Partially fixes SI-4990.
| * | Merge remote-tracking branch 'kepler/topic/reflectivecompiler' into developPaul Phillips2011-12-071-0/+6
| |\ \
| | * | Reflective compiler now crashes properlyEugene Burmako2011-12-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjust toolbox to escalate errors reported during reflective compilation. Without this functionality, errors get swallowed and lead to weirdness like https://issues.scala-lang.org/browse/SI-5274. The only meaningful part of the output in the bug report linked above is the first line. Subsequent stack trace is at best useless and at worst misleading. Now the error report is much more sane: https://gist.github.com/1443232 Review by @odersky.
| * | | Restructed Enumeration a little.Paul Phillips2011-12-071-21/+14
| | | | | | | | | | | | | | | | | | | | | | | | Nobody should be deprecating methods without ensuring that the implementation doesn't rely on their existence (and the documentation doesn't still suggest using them.) Made it more internally consistent.
| * | | More warnings eliminations.Paul Phillips2011-12-0711-20/+32
| | | | | | | | | | | | | | | | | | | | Deprecation warnings, unchecked warnings, "that's not the value you think it is" warnings. Also eliminated a warning by fixing a warning bug.
| * | | Changed shadowed constructor parameter names.Paul Phillips2011-12-072-6/+20
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of my more recent warnings tells us this a bunch of places if we compile with -Xlint, one example: scala/actors/ReplyReactorTask.scala:26: warning: private[this] value reactor in class ReplyReactorTask shadows mutable reactor inherited from class ReactorTask. Changes to reactor will not be visible within class ReplyReactorTask - you may want to give them distinct names. In some cases (like that one) I was not confident whether the shadowing was intentional, in which case I left the semantics but changed the name anyway because it will be eternally confusing otherwise. Review by @phaller.
* | | Merge branch 'master' into xsbtPaul Phillips2011-12-0645-60/+60
|\| | | | | | | | | | | | | | Conflicts: project/build/ScalaSBTBuilder.scala
| * | Merge remote-tracking branch 'soc/scaladoc-spacing' into developPaul Phillips2011-12-061-4/+3
| |\ \
| | * | Fixes the annoying spaces between name, type params and params in ScalaDoc.Simon Ochsenreither2011-12-061-4/+3
| | | |
| * | | Merge branch 'master' of /scala/trunk into developPaul Phillips2011-12-061-0/+5
| |\ \ \
| | * | | Gave Option its own nonEmpty.Paul Phillips2011-12-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | A bit further down Option's slippery slope of collections methods, but those sudden implicit conversions to Iterable are legitimately annoying.
| * | | | Fix documentation stutters.Blair Zajac2011-12-0616-18/+18
| |/ / /
| * | / Update scaladoc links to collections overview.Josh Marcus2011-12-0628-38/+34
| | |/ | |/| | | | | | | | | | | | | Change scaladoc links in collection classes to point at re-formatted Collections Overview on docs.scala-lang.org. Fix minor typo: s/Ummutable/Immutable
* | | Merge branch 'master' into xsbtJosh Suereth2011-12-0630-3/+93
|\| |
| | \
| | \
| *-. \ Merge remote-tracking branches 'kepler/topic/dumpclasses' and ↵Paul Phillips2011-12-0530-3/+93
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 'joshmarcus/collections_docs' into develop Closes SI-5280.
| | | * | Enhanced scaladoc of collection classes with links to the relevant pages of ↵Josh Marcus2011-12-0527-0/+68
| | | | | | | | | | | | | | | | | | | | "The Scala 2.8 Collections API" overview.
| | * | | -Ydump-classes: the option to dump the generated bytecodeluajalla2011-12-053-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Ydump-classes option is intended to dump the compiler generated bytecode to the .class files in given directory. It can be pretty useful for reflective compilation that utilizes in-memory classloaders, for example to check the files if compiler produces invalid bytecode. In this case the dump helps to understand what exactly is wrong with the emitted class. The option format is -Ydump-classes <dir>.
* | | | | Merge branch 'master' into xsbtJosh Suereth2011-12-053-7/+31
|\| | | |
| | \ \ \
| | \ \ \
| *-. \ \ \ Merge remote-tracking branches 'kepler/topic/reifycopypaste' and ↵Paul Phillips2011-12-051-1/+1
| |\ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | 'kepler/topic/reifytests' into develop
| | * | | | A minor fix to -Yreify-copypaste.Eugene Burmako2011-12-051-1/+1
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Empty modifiers are now correctly printed out as "Modifiers()" instead of annoyingly verbose "Modifiers(Set(), newTermName(""), List())". No review.
| * | | | Don't generate redundant interfaces.Paul Phillips2011-12-051-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | Dropped redundant parents during bytecode generation to ease trouble on android. Closes SI-5278.
| * | | | Fix path mangling for 'scala' shell script on MinGW/MSYS.Stefan Zeiger2011-12-051-5/+17
| |/ / /
* | | | Merge branch 'master' into xsbtPaul Phillips2011-12-0416-61/+261
|\| | |
| * | | Enabled continuations plugin by default.Paul Phillips2011-12-042-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | We're not buying anything with it off by default. Added a -P:continuations:disable option to disable. -P:continuations:enable lives on as a no-op. Review by @odersky.
| | | |
| | \ \
| *-. \ \ Merge remote-tracking branches 'kepler/topic/reifyclasses' and ↵Paul Phillips2011-12-045-11/+19
| |\ \ \ \ | | | | | | | | | | | | | | | | | | 'ijuma/feature/signum' into develop
| | | * | | Delegate to Java's implementation of signum for Long and Int.Ismael Juma2011-12-031-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Java implementation is faster as it doesn't have branches. java.lang.Math includes implementations of signum for Double and Float, but I didn't change the ones in scala.math because there is a difference on how negative zero is handled.
| | * | | | Reification of classes now produces trees that can be compiled and run.Eugene Burmako2011-12-044-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Multiple minor fixes to Martin's implementation of reflection infrastructure. Dominating theme is allowing for the fact that compilation via reflection involves numerous exports/imports between various reflection universes. Fixes SI-5230. Review by @odersky.
| * | | | | Add a mnemonic to help remember what's the difference between +:Daniel C. Sobral2011-12-042-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | and :+, plus one for ++:.
| * | | | | Tweaked ident suggestions.Paul Phillips2011-12-043-18/+16
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rolled damaru-levenshtein algorithm back to my original "pure" version. Cut max distance to 1. Turned on by default because now it offers nothing unexpected, and removed short-lived -Ysuggest-idents option.
| * | | | Added -Ysuggest-idents.Paul Phillips2011-12-034-15/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggest possible alternatives when an identifier is not in scope. % scala -Ysuggest-idents scala> import scala.collection.mutable._ import scala.collection.mutable._ scala> new MistBuffer <console>:11: error: not found: type MistBuffer (similar: ListBuffer, Buffer) new MistBuffer ^ Too bad, no MistBuffer. We'll settle for ListBuffer.
| * | | | Eliminated redundant error message.Paul Phillips2011-12-031-5/+3
| |/ / / | | | | | | | | | | | | | | | | No secondary "reassignment to val" for unknown identifiers in assignment position.
| * | | Revert "Fixes the annoying spaces between name, type params and params in ↵Paul Phillips2011-12-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ScalaDoc." This reverts commit 086b558f2d025323c86226b2560578c50ee48b84. It causes two scaladoc tests to fail; the scaladoc tests are almost completely opaque and I have no time to reverse engineer them.
| | | |
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| *-----. \ \ Merge remote-tracking branches 'dcsobral/parser/NoSuccessMessages', ↵Paul Phillips2011-12-023-15/+70
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 'dcsobral/parserFilter', 'soc/library-range-sum', 'szeiger/feature/enumeration-valueset', 'szeiger/issue/5117' and 'jsuereth/pull-binary-error-message' into develop
| | | | * | | | Make Enumeration.ValueSet SerializableStefan Zeiger2011-12-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes SI-5117.
| | | | * | | | Enumeration and Enumeration.ValueSet improvementsStefan Zeiger2011-12-021-15/+48
| | | | | |_|/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make Enumeration.ValueSet a SortedSet and back it by a BitSet - Add toBitMask and fromBitMask methods for value sets - Add an Ordering for the values - Deprecate names seq in the Enumeration constructor - Add + method to Value for easy ValueSet creation
| | | * / | | Makes Range#sum an O(1) operation instead of an O(n) one.Simon Ochsenreither2011-12-021-0/+7
| | | |/ / / | | | | | | | | | | | | | | | | | | Partially fixes SI-4658. NumericRange stays slow, thanks to the brilliant idea that Numeric doesn't need a division operation.
| | * | / / Add filter/withFilter method to ParserDaniel Capo Sobral2011-12-021-0/+14
| | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Complement map and flatMap when used in for comprehensions. This is required when pattern matching is used on the result of the generators. It is implemented through a new filterWithError method on ParseResult.
| * / | | Add withErrorMessage/withFailureMessage to Parser.Daniel C. Sobral2011-12-021-0/+56
| |/ / / | | | | | | | | | | | | Can be used to reliably override the default no success messages.
* | | | Merge branch 'master' into xsbtJosh Suereth2011-12-0214-199/+131
|\| | |
| | \ \
| | \ \
| *-. \ \ Merge remote-tracking branches 'szeiger/issue/2196', 'soc/SI-3481' and ↵Paul Phillips2011-12-021-4/+3
| |\ \ \ \ | | | |/ / | | |/| | | | | | | 'soc/scaladoc-spacing' into develop