summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* A response to adriaan's last lub commit of the ...Paul Phillips2011-07-131-39/+92
| | | | | | | | A response to adriaan's last lub commit of the housekeeping and pretty printing variety. Non-invasive surgery, don't worry martin. Simplified the input to lublist a bit. Includes illustrative test case for current brand of lub failures. Review by moors.
* Suppressed an error in type constructor bounds ...Paul Phillips2011-07-131-4/+7
| | | | | | Suppressed an error in type constructor bounds checking which was obscuring the meaningful error to follow. Review by moors.
* Making power mode startup a little less glacial...Paul Phillips2011-07-122-38/+19
| | | | | Making power mode startup a little less glacial, no review.
* A bunch of repl stuff.Paul Phillips2011-07-125-82/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type mismatches, for real this time. :power mode goes to phase typer automatically. You can get the symbols for repl-defined names more directly: scala> case class Bippy(x: Int) defined class Bippy scala> intp.terms("Bippy") res1: intp.global.Symbol = object Bippy scala> intp.types("Bippy") res2: intp.global.Symbol = class Bippy scala> intp("Bippy") // tries type first res3: intp.global.Symbol = class Bippy scala> intp("scala.collection.Map") // falls back to fully qualified res4: intp.global.Symbol = trait Map I changed the implicit which used to install "tpe" and "symbol" to install "tpe_" and "symbol_" because it was too easy to do something you didn't mean to, like calling x.tpe where x is a Manifest. Said implicit now handles manifest type arguments, so you can get the full translation from a manifest representation to a compiler type, at least for simple types and only as much as manifests work, which is not that much. Fortunately that situation is all changing soon. scala> List(List(1, 2, 3)).tpe_ res5: power.Type = List[List[Int]] scala> res5.typeArgs res6: List[power.global.Type] = List(List[Int]) Review by moors.
* Fixed some unnecessary chattiness and poor func...Paul Phillips2011-07-121-4/+8
| | | | | | Fixed some unnecessary chattiness and poor function naming in tree checkers, no review.
* Seeing about getting trunk building again, no r...michelou2011-07-124-80/+81
| | | | | Seeing about getting trunk building again, no review.
* More work done on implementing reflection.Martin Odersky2011-07-126-390/+171
|
* Seeing about getting trunk building again, no r...Paul Phillips2011-07-113-12/+12
| | | | | Seeing about getting trunk building again, no review.
* Misc smoothing of tree creation, no review.Paul Phillips2011-07-115-31/+21
|
* Implemented workaround for SI-4789, no review.Paul Phillips2011-07-111-1/+3
|
* Minor, mostly agreed upon changes to reflection...Paul Phillips2011-07-117-58/+54
| | | | | Minor, mostly agreed upon changes to reflection api, review by odersky.
* Baby-steps towards getting actual runtime refle...Martin Odersky2011-07-114-6/+82
| | | | | | Baby-steps towards getting actual runtime reflection. Made runtime.Universe not crash when initializing.
* Fixes #4398.Aleksandar Pokopec2011-07-111-6/+10
| | | | | Review by extempore.
* Fixes #4326.Aleksandar Pokopec2011-07-111-0/+17
| | | | | No review.
* Fixes #4709.Aleksandar Pokopec2011-07-112-3/+9
| | | | | Review by extempore.
* Fixes #4723.Aleksandar Pokopec2011-07-111-1/+1
| | | | | Review by extempore.
* Making empty streams serializable.Aleksandar Pokopec2011-07-111-1/+1
| | | | | No review.
* Fixes #4761.Aleksandar Pokopec2011-07-113-8/+14
| | | | | | | This changes the signature of flatten - I do not see how to use a @bridge annotation here, since after erasure both the bridge and the original method have the same signature. Review by extempore.
* Refactored reflection into reflect.api and refl...Martin Odersky2011-07-1132-1610/+2429
| | | | | | Refactored reflection into reflect.api and reflect.internal. Severed the last remaining dependency on reflect.generic. Review by extempore.
* Moved a warning behind -Xlint.Paul Phillips2011-07-093-9/+15
| | | | | meant for --grep to look in checkfiles too, and now it does. No review.
* Fixes some remaining formatting issues.Kato Kazuyoshi2011-07-097-12/+11
|
* Fix for failing test, review by extempore.Kato Kazuyoshi2011-07-094-5/+5
|
* ByteCodecs move to reflect.internal.Martin Odersky2011-07-085-10/+9
|
* Fixes SI-4759Philipp Haller2011-07-071-10/+17
|
* fixed svn props and file headersmichelou2011-07-076-4/+31
|
* Made scratchpad use replToString.Martin Odersky2011-07-072-2/+8
|
* Created simple infrastructure for creating muta...Paul Phillips2011-07-069-16/+53
| | | | | | | | | | | | Created simple infrastructure for creating mutable sets and maps which are automatically cleared after each compilation run. Since I am not too familiar with the mechanics of the presentation compiler I'm not sure this addresses the problem, or that it doesn't clear something which shouldn't be cleared. Also, this is only a sampling of possible mutable sets and maps: let me know if it does the job and I can expand it. Review by dragos.
* Fixed a logic error in debuglog which was turni...Paul Phillips2011-07-061-1/+1
| | | | | | Fixed a logic error in debuglog which was turning debugging output into a neverending party. No review.
* Removed redundant field. No review.Martin Odersky2011-07-061-2/+0
|
* Fixing two problems in Global.scala: crashes du...Martin Odersky2011-07-061-2/+2
| | | | | | | Fixing two problems in Global.scala: crashes during logs of import completions + interruprts at possibly inconsistent states. Review by dotta.
* Minor fixes to Scaladoc man page.Kato Kazuyoshi2011-07-061-2/+2
|
* Add a test for #4421 and clean up a little.Kato Kazuyoshi2011-07-061-8/+8
|
* Adds support for @throws in ScalaDoc.Kato Kazuyoshi2011-07-061-1/+10
|
* Changes semantics so that protected access rule...Martin Odersky2011-07-061-11/+14
| | | | | | | Changes semantics so that protected access rule (selector must be subclass of current class) does not hold for type members. Fixes t4737. Review by extempore. Spec change in a seperate commit.
* Fix to handling of imports in namers to make ID...Martin Odersky2011-07-062-0/+5
| | | | | | Fix to handling of imports in namers to make IDE structure building work correctly.
* scratchpad works in interactive REPL; ready to ...Martin Odersky2011-07-067-78/+154
| | | | | scratchpad works in interactive REPL; ready to be integrate in Eclipse.
* Reverts r18939.Iulian Dragos2011-07-062-18/+0
|
* Don't populate 'originalOwner' in presentation ...Iulian Dragos2011-07-062-2/+16
| | | | | | | | Don't populate 'originalOwner' in presentation compiler runs. This is a source of memory leaks, as the map is never cleared. A better, more consistent mechanism should be developed for such maps, and ensure they are cleared on a new Run, or in resetTyper. no review.
* Fixing Gen* builder dispatch so that methods th...Aleksandar Pokopec2011-07-052-20/+40
| | | | | | | | | Fixing Gen* builder dispatch so that methods that require an implicit builder factory decide to run in parallel if the builder is a combiner, rather than if the builder factory is parallel. Review by odersky.
* Fixed a bug in the optimizer which was preventi...Paul Phillips2011-07-048-58/+51
| | | | | | | | | | | | | | | | | | | | | | | Fixed a bug in the optimizer which was preventing private methods from being inlined. Also relaxes a condition related to the "liftedTry" problem: the inliner has to exclude certain methods from consideration if there is a value on the stack and the method being inlined has exception handlers. The new condition is as before, except that it does not exclude methods of the "try/finally" variety (i.e. finalizers, but no other exception handlers.) This is necessary to optimize this common pattern: @inline private def foo(body: => Unit) { val saved = something try body finally something = saved } The closure for "body" can be fully eliminated, but only if the contents of foo can be inlined into the caller. Closes #4764, review by rompf.
* corrected typo in scaladoc commentmichelou2011-07-041-3/+3
|
* quick fix to get the build going again on Java 1.5Adriaan Moors2011-07-041-1/+2
|
* Towards a scratchpad functionality for the IDEMartin Odersky2011-07-049-5/+373
|
* Discovered another impressive source of unneces...Paul Phillips2011-07-0443-49/+49
| | | | | | | | | | Discovered another impressive source of unnecessary garbage is every collection creating a new GenericCanBuildFrom for every map ever performed. They can all use the same one: they all have the same implementation. It looks like tiark had already figured this out and done it for Vector: I followed with the other fifty. I really haven't the least idea who to have review most things. No review.
* Hard to explain garbage led me to this innocent...Paul Phillips2011-07-041-0/+1
| | | | | | | | | | | | Hard to explain garbage led me to this innocent seeming change. Not that innocent. A function like this should create no garbage: final def f[T](xs: List[T], num: Int) { if (num > 0) f(Nil ::: xs ::: Nil, num - 1) } Instead it was creating a lot. No review.
* Looking forward to working positions.Paul Phillips2011-07-031-5/+10
|
* Modified return type inference not to allow T* ...Paul Phillips2011-07-032-1/+22
| | | | | | | | | | | | | | | Modified return type inference not to allow T* to leak from varargs methods. Since I don't know what is supposed to be done about eta expansion of these methods, I left the behavior as it was (except the return type) and a boolean val in Types to change it. def id[T](xs: T*) = xs etaExpandKeepsStar = true // (id[Int] _) is Int* => Seq[Int] etaExpandKeepsStar = false // (id[Int] _) is Seq[Int] => Seq[Int] References #4176, leaving open pending resolution of eta expansion. Review by odersky.
* Logic bug in repl :paste parsing, no review.Paul Phillips2011-07-031-1/+1
|
* evalOnce needs to pack the type before using it...Paul Phillips2011-07-031-10/+25
| | | | | | evalOnce needs to pack the type before using it on new valdefs to avoid existential mismatches. Closes #3960, review by moors.
* Fixing -Xlint warnings, no review.Paul Phillips2011-07-032-5/+5
|