summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Some minor polishing to the previous repl compl...Paul Phillips2010-01-245-52/+133
| | | | | | Some minor polishing to the previous repl completion patch, plus a few new features and improvements.
* Another big REPL patch.Paul Phillips2010-01-2314-505/+753
| | | | | | | | | | | | a proper commit message, I will just say it adds a couple of pretty frabjous features, in addition to cleaning up a whole bunch of questionable code. * Tab-completion now chains through intermediate results on fields and 0-arg methods * You can now define custom Completors which define their own contents. Details and demos to come in a wiki document about the repl.
* Closes 2926. Review by milesabin.Martin Odersky2010-01-233-9/+24
|
* fix several issues in .net backend / type parsing.Lukas Rytz2010-01-225-52/+121
|
* Second attempt to fix #2926.Martin Odersky2010-01-222-14/+5
|
* It's a big REPL patch. And it contains:Paul Phillips2010-01-217-147/+309
| | | | | | | | | | | | | | | | | | | | * Eliminated a bug which was causing all repl lines to be parsed twice * Removed reference to JLine from InterpreterLoop which was causing someone trouble in eclipse * Enriched the repl compile/reflect mechanism to allow retrieving the value as well as the String describing it * Utilized said enrichment to write an eval[T] method which is exposed in the repl in :power mode * Added ability to turn off string unwrapping in repl: settings.unwrapStrings = false * Created interface presently called Completion.Special which lets objects define their own contents * As minor demonstration of above, in :power mode variable "repl" implements Special and completes with all repl identifiers * As more interesting demonstration of above, try a repl session like... import scala.tools.nsc.interpreter.Completion.Special import scala.tools.nsc.io.Process val connections = new Special { def tabCompletions() = Process("netstat -p tcp").toList drop 2 map (_ split "\\s+" apply 4) } connections.<tab> Review by community!
* Moved test case for just-reverted patch to pend...Paul Phillips2010-01-211-0/+0
| | | | | Moved test case for just-reverted patch to pending. No review.
* Fix for #2867 undone, review by extempore.Martin Odersky2010-01-211-0/+8
|
* Attempt to fix #2926 (companion object of case ...Martin Odersky2010-01-202-1/+13
| | | | | Attempt to fix #2926 (companion object of case class problem in Eclipse)
* Closes #2653, #2652, #2556.Hubert Plociniczak2010-01-203-3/+79
|
* [scaladoc] Default values of parameters are doc...Gilles Dubochet2010-01-204-8/+80
| | | | | | | | [scaladoc] Default values of parameters are documented. Tags "@author", "@see", "@since", "@version", and "@deprecated" are displayed in documentation. Contributed by Pedro Furlanetto, checked by dubochet, no review.
* fixed bugs in .NET bytecode generation (branchi...Lukas Rytz2010-01-203-50/+150
| | | | | | | fixed bugs in .NET bytecode generation (branching out of try / catch / finally blocks is not allowed). predef.dll now almost passes PEVerify. no review
* Renamed new bin directory to "tools" to avoid c...Miles Sabin2010-01-202-1/+1
| | | | | | Renamed new bin directory to "tools" to avoid conflict with Eclipse incremental build output directory.
* Removed static state from global object ClassPa...Paul Phillips2010-01-207-54/+59
| | | | | | | | Removed static state from global object ClassPath object, and some minor repositioning while in there. Closes #2928, but the intentions behind -optimise being intertwined with ClassPath could really use some source comments. Review by rytz.
* Bringing README up to date and filling in some ...Paul Phillips2010-01-201-18/+25
| | | | | | Bringing README up to date and filling in some of the info gaps. Review by cunei.
* No longer are there more IDE-specific junk file...Paul Phillips2010-01-209-0/+0
| | | | | | | | | | No longer are there more IDE-specific junk files in the root directory of the official scala repository than actual scala files and directories put together. It's a truly awful first impression to give potential developers so I'm interpreting the non-response regarding the need for them as quiet encouragement to put them in src/intellij. Review by ilyas.
* Took a slightly different tack on parsing the s...Paul Phillips2010-01-202-7/+11
| | | | | Took a slightly different tack on parsing the svn version. No review.
* Removed some debugging echoes I let slip through.Paul Phillips2010-01-201-4/+0
|
* Un-overloaded StringLike.format.Paul Phillips2010-01-201-1/+1
|
* Fix for #2927. No review.Paul Phillips2010-01-202-8/+14
|
* Made some cosmetic but clarity-increasing chang...Paul Phillips2010-01-2011-88/+84
| | | | | | | | | Made some cosmetic but clarity-increasing changes to a few files. Primarily, used corresponds where possible rather than zipped.forall. Added isImplicit and isJava to MethodType so the relevant subtypes could be determined without the hideous isInstanceOf checks. Review by odersky.
* Test case for #2148. Closes #2148, no review.Paul Phillips2010-01-192-0/+14
|
* Until now all scala builds performed not in an ...Paul Phillips2010-01-192-2/+25
| | | | | | | Until now all scala builds performed not in an svn tree were given no version number, because the version was extracted from "svn info". Now it tries git style if svn info is unrevealing. Review by community.
* Iterators created with duplicate compare equal ...Paul Phillips2010-01-191-1/+10
| | | | | | Iterators created with duplicate compare equal if they are positioned at the same element. Review by community.
* Added test to pending with extensive exploratio...Paul Phillips2010-01-191-0/+193
| | | | | | Added test to pending with extensive exploration of behaviors of instanceOf as compared with type matching.
* more performance improvements; eliminated mk......Martin Odersky2010-01-1913-149/+194
| | | | | more performance improvements; eliminated mk...Type function in Types.
* Fixed isClosureClass in inliner and removed it ...Iulian Dragos2010-01-192-19/+4
| | | | | | Fixed isClosureClass in inliner and removed it from CopyPropagation (was dead code). See #2893.
* [scaladoc] Search tool will ignore case for low...Gilles Dubochet2010-01-192-12/+23
| | | | | | | | [scaladoc] Search tool will ignore case for lowercase-only queries. Type return when search tool is active to immediately search and display the first result. Contributed by Johannes Rudolph. Also: removed useless `DocProvider` class. No review, checked by dubochet.
* Digging into why the repl is so slow, discovere...Paul Phillips2010-01-195-62/+68
| | | | | | | | | | | | | | | | | | Digging into why the repl is so slow, discovered that fsc is once again never reusing compiler instances (but for a different reason than #1683.) Small changes break equality and the little troopers are so darn quiet about it. Steady state, hot fsc repl startup times before this patch: 0m1.747s 0m1.789s 0m1.842s 0m1.690s After this patch: 0m1.139s 0m1.148s 0m1.090s 0m1.091s No review. Could use a test case but I have trouble coaxing partest this far outside the box.
* More work consolidating the XML code needlessly...Paul Phillips2010-01-183-289/+207
| | | | | | | More work consolidating the XML code needlessly duplicated between the compiler and the library. Having to fix #2354 in two completely different places was I found very motivating.
* Tail-recursive implementations of parser combin...Paul Phillips2010-01-181-29/+23
| | | | | | | Tail-recursive implementations of parser combinators rep1 and repN, which covers all of them since the others go through those. Review by rompf.
* new test. no review.Martin Odersky2010-01-182-0/+15
|
* some more performance tunings. No review.Martin Odersky2010-01-184-57/+89
|
* cleaned up explicit tailcallsMartin Odersky2010-01-182-24/+56
|
* Fix and test case for #2891. No review necessary.Miles Sabin2010-01-182-1/+4
|
* Adjectified some parts of speech as discussed o...Paul Phillips2010-01-1872-204/+243
| | | | | | | Adjectified some parts of speech as discussed on the mailing list. The methods to call on FunctionN are "curried" and "tupled" with "curry" deprecated and "tuple" gone. Closes #2907. Review by community.
* Fix and test case for #408. Review by community.Paul Phillips2010-01-182-6/+21
|
* Test case closes #1737. Review by community.Paul Phillips2010-01-183-0/+8
|
* Don't insert whitespace on multiline strings an...Paul Phillips2010-01-172-6/+11
| | | | | | Don't insert whitespace on multiline strings and xml literals. Closes #2115. No review.
* Brought ShowPickler somewhat more up to date wi...Paul Phillips2010-01-171-3/+35
| | | | | | Brought ShowPickler somewhat more up to date with the current pickler format.
* New repl feature: you can start a line with .Paul Phillips2010-01-162-4/+22
| | | | | | | | | | | on the previous result. For instance: scala> (1 to 10).iterator res0: Iterator[Int] = non-empty iterator scala> .toList.sum res1: Int = 55
* Made Iterator consistent with Iterable by addin...Paul Phillips2010-01-161-0/+32
| | | | | | Made Iterator consistent with Iterable by adding grouped and sliding to IterableLike. Closes #2837. Review by community.
* Exposed native Array clone() method.Paul Phillips2010-01-1611-29/+186
| | | | | Review by dragos.
* Wrapped a buffered output stream around class f...Paul Phillips2010-01-153-7/+8
| | | | | | Wrapped a buffered output stream around class file generation. This has a nontrivial impact on total build time. Closes #2906.
* Fix for #2365.Paul Phillips2010-01-157-32/+77
| | | | | | | | | | | | | | a soft reference around cached classes so they do not interfere with garbage collection. There is a test case, but it is in pending because I spent longer trying to get it to fail under partest than I did writing the actual patch. If you would like to see the behavior which was corrected, go to test/pending/run/bug2365 and run that script with scalac built before and after this commit. Review by dubochet.
* Reverted over-zealous replacement of 'PartialFu...Antonio Cunei2010-01-1527-80/+78
| | | | | Reverted over-zealous replacement of 'PartialFunction' with '=>?'.
* [scaladoc] Companion classes are printed.Gilles Dubochet2010-01-153-0/+14
|
* Fixed issue when searching for companion of cla...Gilles Dubochet2010-01-151-5/+12
| | | | | | | Fixed issue when searching for companion of class using "linkedSym" when value of same name is overloaded (for example companion of the Value class in an Enumeration). No review, already checked by odersky.
* Fixes for various Scaladoc-related positions re...Miles Sabin2010-01-155-11/+49
| | | | | | Fixes for various Scaladoc-related positions regressions with tests. Review by dubochet.
* Fix and test for #2354. Review by community.Paul Phillips2010-01-155-65/+86
|