summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #4894.Aleksandar Pokopec2011-09-282-5/+10
| | | | | | | Adds Growable and Shrinkable to parallel maps and sets. No review.
* Adding latest failures to code.scala test.Martin Odersky2011-09-281-1/+1
|
* Fixed infinite loop in reification reported by ...Martin Odersky2011-09-282-8/+9
| | | | | Fixed infinite loop in reification reported by Paul.
* More fixes to reflection; cleaned up output.Martin Odersky2011-09-286-19/+23
|
* Fixes #4716.Aleksandar Pokopec2011-09-272-7/+23
| | | | | | | | | | | During the generation of the specialized method implementation, local lazy vals in specialized classes were getting duplicated and assigned new (different) names. Also, the identifiers referring to them were not getting updated. This is fixed now. Further, the mutable flag is no longer getting set for a lazy val during method body duplication. Review by Dragos.
* Made needsJavaSig method public so that it can ...Micro Dotta2011-09-271-1/+1
| | | | | | Made needsJavaSig method public so that it can be used from the IDE side. No review.
* Correcting resolution of top-level objects in r...Martin Odersky2011-09-273-8/+16
| | | | | Correcting resolution of top-level objects in reflection.
* more fixes to reflection.Martin Odersky2011-09-274-12/+12
|
* Stripped a bunch of hostile code.Paul Phillips2011-09-261-16/+2
| | | | | Closes SI-5026, no review.
* ProductN, and method synthesis toolbox.Paul Phillips2011-09-267-233/+332
| | | | | | | | | | | | | | | | | | | | | | - Finished giving case classes a ProductN parent, and flipped it on. The "finish" part involved not breaking existing code where case classes manually extend the appropriate ProductN. (Like, Tuple 1-22.) - Generalized most of SyntheticMethods to ease method creation and class manipulation in general. - Fixed bugs related to the above, like the fact that this used to be a compile error: scala> case class Foo() extends Serializable <console>:28: error: trait Serializable is inherited twice case class Foo() extends Serializable ^ It feels like there's a better way to eliminate the duplicate parents, but after spending a lot of time chasing my tail in that peril-fraught zone between namer and typer, I don't see an easy path to improve on it. Closes SI-1799. For that modification to Typers, review by odersky.
* More fixes to reflection and code lifting.Martin Odersky2011-09-2610-31/+75
|
* Fixes #4351.Aleksandar Pokopec2011-09-261-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added an "Abstract" method info to the specialized phase, which denotes that no implementation should be generated. Previously: trait A[@specialized(Boolean) T] { def foo: T } used to generate: trait A$mcZ$sp extends A[Boolean] { def foo$mcZ$sp = this.foo } which caused cyclic calls because of linearization rules when several traits are mixed together. Now, the following is generated: trait A$mcZ$sp extends A[Boolean] { def foo$mcZ$sp: Boolean } Review by dragos.
* Making toolboxes more useful.Martin Odersky2011-09-261-5/+11
|
* Added missing file.Martin Odersky2011-09-261-0/+48
|
* Getting liftCode to work.Martin Odersky2011-09-258-273/+213
|
* updated man pages, fixed svn props, did some cl...michelou2011-09-2513-107/+404
| | | | | updated man pages, fixed svn props, did some cleanup
* Cleanup in aisle superaccessors.Paul Phillips2011-09-241-75/+61
| | | | | Efficiency plus, redundancy minus, no review.
* Handling Freevars in Importers and discovering ...Martin Odersky2011-09-235-76/+90
| | | | | | Handling Freevars in Importers and discovering whole new classes of errors in Liftcode.
* Now correctly handles moduleclasses in ImportersMartin Odersky2011-09-232-4/+8
|
* Back to square one.Hubert Plociniczak2011-09-2322-2309/+891
| | | | | | | | | | | | | | Current design of error trees complicates the design of reflection library, and introduces sometimes unnecessary boilerplate and since I do not want to stall that work I am reverting all the changes related to error trees. A different design is currently under consideration but work will be done on separate branch on github. Revisions that got reverted: r25705, r25704 (partially), r25673, r25669, r25649, r25644, r25621, r25620, r25619 Review by odersky and extempore.
* Fixing isTrivial in NullaryMethod.Paul Phillips2011-09-221-40/+14
| | | | | | | | | | | | 1) Made NullaryMethodType a SimpleTypeProxy. (This is incidental to isTrivial, it just seemed like the right thing to do.) 2) Modified implementations of isTrivial for MethodType and NullaryMethodType to only be considered trivial if there are no annotations on the return type. This means asSeenFrom will not be skipped and the continuations plugin will work properly. There are a lot of other angles one could take, so review by moors, rompf.
* Removed devirtualize.Paul Phillips2011-09-2217-735/+69
| | | | | | | It was time. Removed unused flags and devirtualize detritus. Cleaned up flags a bit further. Fixed the contents of phaseNewFlags in those places where it was inaccurate. No review.
* fixes variance of param in type constructorPaul Phillips2011-09-221-5/+3
| | | | | | | | when determining in which variance position a symbol occurs in a type, there's no need to look at the args of a type constructor, since it doesn't have any therefore, the symbol could not occur in a variance position corresponding to the typeref's (non-existent) type arguments
* more tweaks to symbol importing; not done yetMartin Odersky2011-09-221-5/+14
|
* Corrected resetErrorBits in TreesMartin Odersky2011-09-221-1/+3
|
* More performant encoding of tree errors.Paul Phillips2011-09-218-69/+42
| | | | | | | | | | Stole two bits from Tree#id to record whether a tree contains an error tree and whether its subtrees have been checked. This leaves us with only a single gigatree of headroom for replaying trees in the presentation compiler. Alert the media. Review by odersky.
* Fixed issue with warnings in IDE.Paul Phillips2011-09-211-16/+16
| | | | | | "Pure expression in statement position" is hopefully a lot quieter now. Review by dragos.
* Removed duplicate class.Martin Odersky2011-09-211-300/+0
|
* Started work on compiler toolbox that can compi...Martin Odersky2011-09-213-3/+315
| | | | | | Started work on compiler toolbox that can compile reflect trees at runtime.
* Removed dead packageMartin Odersky2011-09-219-195/+38
|
* Added module for importing trees and symbol tab...Martin Odersky2011-09-212-0/+305
| | | | | Added module for importing trees and symbol tables from another universe
* fixed svn props and scaladoc tags, did some cle...michelou2011-09-2016-110/+83
| | | | | fixed svn props and scaladoc tags, did some cleanup
* Two argument asserts please.Paul Phillips2011-09-201-65/+69
| | | | | No review.
* Changes to Liftcode to use new reflection seman...Martin Odersky2011-09-204-23/+49
| | | | | | Changes to Liftcode to use new reflection semantics, where a compiler uses type checking.
* Fixes #4417.Aleksandar Pokopec2011-09-201-5/+12
| | | | | Review by Dragos.
* Rooting out mismatched zips.Paul Phillips2011-09-1912-140/+191
| | | | | | | | | | I added local logging to zip and zipped and listened for who was dropping things on the floor. Everything in this commit stems from that. Sometimes the fix was uncertain and I sprinkled some logging. If you've been hanging back with lots of internals knowledge waiting for the right commit to review, this would be a good one. But since knowledgeable people are hard to find, I'll go with review by moors.
* Added tool for analyzing forwarder classes.Paul Phillips2011-09-193-26/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | If you build and then run tools/proxy-report <outdir> you will be given files revealing interesting things like: /** With respect to trait SetLike, trait SetProxyLike does NOT wrap: */ trait Unwrapped { def +(elem1: A,elem2: A,elems: A*): This def ++(elems: scala.collection.GenTraversableOnce[A]): This def subsets(len: Int): Iterator[This] def subsets: Iterator[This] protected override def newBuilder: scala.collection.mutable.Builder[A,This] protected override def parCombiner: scala.collection.parallel.Combiner[A,scala.collection.parallel.ParSet[A]] } Lots more possible here, for now I just want to get a backstop against our worst transgressions (not just in the library -- look at SimpleTypeProxy, if you dare!) I will inquire about the results separately, so no review.
* Deprecation and convention adherence patrol.Paul Phillips2011-09-1932-98/+62
| | | | | | | Iterators should have def next(), not def next. Clearing a mutable structure should be done with clear(), not clear. And etc. No review.
* fixed svn props, did some cleanupmichelou2011-09-198-80/+108
|
* ListBuffer.size should be O(1).Paul Phillips2011-09-191-0/+3
| | | | | | Not O(n) like it was. Here's another good candidate for some mythical performance regression tests. Closes SI-4933, no review.
* Constants in io.Codec become Codecs, not charsets.Paul Phillips2011-09-191-4/+4
| | | | | | This seems less likely to surprise people attempting to use them as implicits. No review.
* Scaladoc enhancements to continuations package ...Josh Suereth2011-09-182-7/+142
| | | | | | Scaladoc enhancements to continuations package for docspree. Review by rompf
* Small changes to the API documentation of the A...Heather Miller2011-09-1810-15/+17
| | | | | | Small changes to the API documentation of the AnyVal types. Contributed by Michael Allman during the September doc spree. No review.
* Improved API documentation for scala.compat.Pla...Heather Miller2011-09-181-8/+68
| | | | | | Improved API documentation for scala.compat.Platform. Contributed by Matthew Farwell during the September doc spree.
* Hugely improves the API documentation for JavaT...Heather Miller2011-09-183-14/+174
| | | | | | | Hugely improves the API documentation for JavaTokenParsers, Parsers, and RegexParsers. Contributed by Daniel Sobral during the September doc spree.
* Scaladoc now hides members with @bridge annotat...Heather Miller2011-09-174-3/+8
| | | | | | Scaladoc now hides members with @bridge annotation, contributed by Simon Ochsenreither. Closes SI-4924
* Fixed a Scaladoc layout issue affecting how typ...Heather Miller2011-09-171-1/+5
| | | | | | Fixed a Scaladoc layout issue affecting how type parameters (@tparams) are displayed. No review.
* Improves PagedSeq API documentation.Heather Miller2011-09-171-37/+42
|
* Adds ability to document root package, as well ...Heather Miller2011-09-175-0/+55
| | | | | | | Adds ability to document root package, as well the first cut of an introduction to the API. Contributed by Iain McGinniss during the September doc spree.
* More work on error trees.Paul Phillips2011-09-173-709/+312
| | | | | | | | | | | extempore can't live with that level of duplication. I eliminated 400 lines. I could eliminate more: there are distinctions which seem unimportant, but I'm not sure so I left them in place. Example, is a "ContextError" something meaningful other than "an error which one emits by calling context.error"? Review by plocinic.