summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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-222-8/+17
|
* 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-215-5/+331
| | | | | | 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-2017-119/+92
| | | | | 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-207-31/+61
| | | | | | Changes to Liftcode to use new reflection semantics, where a compiler uses type checking.
* Fixes #4417.Aleksandar Pokopec2011-09-203-5/+36
| | | | | 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-194-26/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixes build issue involving missing rootdoc.txt...Heather Miller2011-09-171-0/+1
| | | | | | Fixes build issue involving missing rootdoc.txt in strap build. No review.
* 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-176-1/+58
| | | | | | | 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.
* fixed svn props, did some cleanupmichelou2011-09-1712-277/+372
|
* Removed leading tabs in build.xmlmichelou2011-09-171-6/+6
|
* Get svn revision on Windowsmichelou2011-09-173-3/+46
|
* Reworked error trees.Paul Phillips2011-09-176-168/+57
| | | | | | | Eliminated the var, the Option[Boolean]s, and the Unit-returning init method. If they were accomplishing something I could not discern, I trust hubert will now apprise me. Review by plocinic.
* Fix for nonsense comparison in TypeKinds.Paul Phillips2011-09-161-6/+2
| | | | | Hey, that new warning works. No review.
* Amend previous commit by suppressing type error...Iulian Dragos2011-09-162-1/+2
| | | | | | Amend previous commit by suppressing type errors for syntactically incorrect units only when -Ypresentation-strict is set. no review.
* Better behavior with problematic sources in the...Iulian Dragos2011-09-162-9/+55
| | | | | | | | | | | | | | | | Better behavior with problematic sources in the presentation compiler: - if the presentation compiler crashes while type checking a source file, it puts it into an ignore buffer, and it will not type check it during background compilation rounds. Any subsequent calls to waitLoadedTyped will fail with the last exception. To remove it from the ignore list call either 'enableIgnoredFile' or 'askToDoFirst' on that file. - sources with syntax errors are not type checked during background compilation. This leads to less spurious errors. For instance, type errors may occur much earlier in the file than the actual syntax error that caused them. review by odersky.
* Added new disabled test for eclipse scala-ide t...Micro Dotta2011-09-164-17/+32
| | | | | | | Added new disabled test for eclipse scala-ide ticket1000609. Corrected test framework to fail nicely when the tree retrieved after an has no associated symbol.
* Removed parens from calls to Name#toString.Paul Phillips2011-09-1511-35/+43
| | | | | | | | | | | | | | | | | This commit doesn't include the line which would change anything interesting (that being making toString in Name a val), it is all the changes elsewhere which one would have to make to do that. I didn't want to waste them. A quirk of scala is that if you call an empty-parameter-list method: foo.bar() // e.g. x.toString() foo.bar // where you could have called x.toString then if you decide in the future to make it a val, every call site must potentially be modified. This is a bit of a bummer. One can try to defend against that future decision by eschewing parentheses, but it's not very satisfying or effective. No review.
* Fixed stackoverflow problem when initializing l...Martin Odersky2011-09-151-13/+27
| | | | | Fixed stackoverflow problem when initializing large scopes.
* Create Type hashcodes at construction.Paul Phillips2011-09-141-2/+2
| | | | | | | This saves an unnecessary field (the lazy bitmap) and means hashing is faster. The hashCode is called on every created type anyway because of the lookup in unique, so this is pure gain. No review.
* Minor cleanup in Uncurry w/ NullaryMethodTypes.Paul Phillips2011-09-142-14/+15
| | | | | No review.
* Removed redundant UnCurry transform (now in Lif...Paul Phillips2011-09-141-66/+1
| | | | | | | Removed redundant UnCurry transform (now in LiftCode.) No review.
* Reworking TypeMaps to avoid allocations.Paul Phillips2011-09-133-116/+83
| | | | | | | | | | | | | | | | | | | The pieces of TypeMap which returned Option[T] were contributing many unnecessary allocations as well as inconsistency and complexity. By creating distinguished objects UnmappableTree and UnmappableAnnotation, I was able to gain simplicity, eliminate all the Some allocations, use the normal mapConserve, and so on. I also went after the monster that was dropNonConStraintAnnotations by generalizing it into "AnnotationFilter", a trait which extends TypeMap. SpecializeTypes was able to take advantage of this as well. (The means by which (some) annotations are dropped, and the related fact that NullaryMethodType returns constant false for isTrivial only so the continuations plugin will keep working, leaves the situation still in dire need of improvement.) Review by moors.
* updated scaladoc comments, did some cleanupmichelou2011-09-138-174/+192
|
* Refine lub calculation.Paul Phillips2011-09-132-2/+14
| | | | | | | When a reasonable lub cannot be arrived at by direct means, use the bounds of the lub inputs to derive bounds for the lub rather than giving up. Closes SI-4938, review by moors.
* Remove assert that fails for IDE. review by Mirco.Hubert Plociniczak2011-09-131-4/+2
|
* Improved getFiles/getDirs in PartestTask; did s...michelou2011-09-124-51/+144
| | | | | Improved getFiles/getDirs in PartestTask; did some cleanup.
* Partially reverted r25636 change (forget notice...michelou2011-09-121-29/+16
| | | | | | | | | | | | | | | Partially reverted r25636 change (forget notice about the starr rebuild). Change originated in my misunderstanding of Ant filters: The pattern string if <exclude name="<pattern>"/> may not contain Ant variables such as eg. ${compiler.excludes}. Use <excludesfile name="${compiler.excludes}" if="<property>"/> instead !
* Fix for params/args zip IOOB crash.Paul Phillips2011-09-121-1/+8
|
* Removed unused import.Grzegorz Kossakowski2011-09-121-1/+0
| | | | | No review.