| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
One of those "$.05 for the bolt, $50,000 for knowing where to put it"
commits. Closes #425, #816, #2310, #2691. All credit for this patch goes
to me for having the genius to know when new eyes were needed (although
if you're feeling generous some could also go to walter korman for the
actual debugging and code writing part.)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Refactored some of the code from r20624 thanks to Iulian's review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
few more things, like literals (1.<tab>, "abc".<tab>). A completion
aware case class walker which leverages the names of the case fields for
completion. For instance:
:power
val x = new ProductCompletion(mkTree("def f(x: Int, y: Int) = f(5, 10) + f(10, 20)")
x.<tab>
mods name rhs tparams tpt vparamss
x.rhs.fun.<tab>
name qualifier
scala> x.rhs.fun.qualifier
res3: scala.tools.nsc.ast.Trees$Apply = f(5, 10)
|
|
|
|
|
|
| |
Fixed a number of faulty Scaladoc comments in library and compiler
sources. No review.
|
|
|
|
|
|
| |
Access modifiers added for certain members and some refactoring in
Regex.
|
|
|
|
|
|
| |
Hack for the refined build manager to print info in a deterministic way.
No review.
|
|
|
|
|
|
|
|
| |
Changed the info statements in refined build manager to print the
information in more consistent way, so that we can test it using
partest. Added more tests for build manager, more to follow... No
review.
|
| |
|
| |
|
|
|
|
|
|
| |
Replacement in matching can now be done by providing function arguments
for replacement. Fixes #2761. Review by phaller.
|
|
|
|
|
|
| |
Use file paths for equality and hashCode to deal with mixed-type file
equality test issues in the IDE. Fixes #2931.
|
|
|
|
|
|
|
| |
[scaladoc] Classes `FunctionX`, `ProductX`, and `TupleX`, for `X`
greater than 2, are not listed. Contributed by Pedro Furlanetto, checked
by dubochet, no review.
|
| |
|
|
|
|
|
|
| |
Fixed #2497: replaceInstruction now uses reference equality. No review
necessary.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Added new target for partest for testing Build Manager behaviour.
Updated Refined Build Manager for consistency. --buildmanager requires
the test file that describes actions to be done on the refined build
manager (compiling files, making changes to the classes), sources of
changes, the check file and the initial scala source files. Cleaned up
some code in partest, refactored some obvious code duplication. Tests to
follow... Review by phaller.
|
|
|
|
|
|
|
| |
Fixed dead code elimination to satisfy YourKit's instrumentation: a drop
for a newly initialized object is always added after the constructor
call, instead of immediately after a DUP
|
| |
|
| |
|
|
|
|
|
|
| |
Some minor polishing to the previous repl completion patch, plus a few
new features and improvements.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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!
|
| |
|
|
|
|
|
| |
Attempt to fix #2926 (companion object of case class problem in Eclipse)
|
| |
|
|
|
|
|
|
|
|
| |
[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 (branching out of try / catch /
finally blocks is not allowed). predef.dll now almost passes PEVerify.
no review
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Iterators created with duplicate compare equal if they are positioned at
the same element. Review by community.
|
|
|
|
|
| |
more performance improvements; eliminated mk...Type function in Types.
|
|
|
|
|
|
| |
Fixed isClosureClass in inliner and removed it from CopyPropagation (was
dead code). See #2893.
|
|
|
|
|
|
|
|
| |
[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, 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.
|