summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* There is a lot of housecleaning to be done.Paul Phillips2011-01-2934-2599/+2798
| | | | | | | | | | | | up the stray interpreter files and put them in the interpreter package. Would really love to change the name of that package. Went looking for some consistent divisions of responsibility and consistent naming. Made some progress. There are deprecated versions of most everything I changed so hopefully the carnage will be limited. This isn't completely baked but I just realized I broke the build earlier and this should fix it. I'll keep the oven on. No review.
* Fixed some generic signature bugs I found thank...Paul Phillips2011-01-283-3/+11
| | | | | | Fixed some generic signature bugs I found thanks to the compiler telling me it was buggy. Thanks compiler. No review.
* Eliminated askLastTypeTree.Martin Odersky2011-01-282-19/+11
|
* made askTypeAt work on non-loaded sources.Martin Odersky2011-01-283-40/+30
|
* Various improvements to completion.Martin Odersky2011-01-284-14/+33
| | | | | | onUnitOf moved to CompilerControl and made public, so free for public use now.
* More repl housecleaning.Paul Phillips2011-01-2811-205/+226
| | | | | | | | | | | | | | | interpreter and the interpreter loop has become so fuzzy it can hardly be said to exist. In this commit I take a step or two toward clearer boundaries, and also fix some gratuitous name inconsistencies with the rest of trunk. A Global should be called "global" in the absence of a compelling reason otherwise. Also, now having had a couple years to explore every inch of the design space, I can announce that where possible to use them, distinguished objects like NoType and NoSymbol are far superior to swaddling things in Option. Applied this piece of canon to Completion and History. No review.
* A raw tree was making its way into an error mes...Paul Phillips2011-01-285-7/+13
| | | | | | A raw tree was making its way into an error message. Removed. Closes #4196, no review.
* Forgot to commit the updated tests in my previo...Iulian Dragos2011-01-282-3/+0
| | | | | Forgot to commit the updated tests in my previous commit. no review.
* Made the presentation compiler reporter in inte...Iulian Dragos2011-01-283-10/+14
| | | | | | Made the presentation compiler reporter in interactive tests show up error messages.no review.
* A bunch of work on the sbt build. No review.Paul Phillips2011-01-2711-150/+197
|
* Changing some code to not use collect on top of...Paul Phillips2011-01-272-13/+17
| | | | | | | | Changing some code to not use collect on top of a possibly changing filesystem. Anonymous partial functions used with collect risk match errors if guard results ever change, due to the guard being run twice (isDefinedAt and then apply). No review.
* Primarily a cleanup of the organization of keyw...Paul Phillips2011-01-278-318/+398
| | | | | | Primarily a cleanup of the organization of keywords for the scala and java parsers, and a few other Name-related items. No review.
* Securing some of the blessings of whitespace fo...Paul Phillips2011-01-2714-393/+405
| | | | | | Securing some of the blessings of whitespace for the sbt build. No review.
* trying to fix CyclicReference errors for type c...Martin Odersky2011-01-272-13/+9
| | | | | trying to fix CyclicReference errors for type completion
* Re-enabled one presentation compiler test.Iulian Dragos2011-01-273-0/+0
|
* Re-enabled another position check in FindTrees.Iulian Dragos2011-01-273-3/+6
|
* More cleaning up long neglected regions.Paul Phillips2011-01-273-30/+24
|
* Some overdue organization and cleanups in the r...Paul Phillips2011-01-278-120/+368
| | | | | Some overdue organization and cleanups in the repl. No review.
* Another naked assert is brought up on obscenity...Paul Phillips2011-01-271-16/+11
| | | | | | | Another naked assert is brought up on obscenity charges. That second argument is not just a conversation piece, it can be used to communicate data! No review.
* A few minor hashcode tidbits I had stored away ...Paul Phillips2011-01-272-23/+30
| | | | | | A few minor hashcode tidbits I had stored away from previous hashcoding, and some fixups in treedsl. No review.
* Some minor cleanups in anyval source generation.Paul Phillips2011-01-273-12/+18
|
* Since we generate no invalid generic signatures...Paul Phillips2011-01-272-12/+7
| | | | | | | | | | Since we generate no invalid generic signatures at the moment, I decided to strike while the iron is hot and turned on warnings for when the sig parser fails. It is likely we still generate bad signatures in some cases, but they're no longer uncovered by compiling the compiler: hopefully the community will help us out by reporting any found in the wild. (The issued warning helpfully suggests exactly this.) No review.
* In a code review performance for the ages, I fo...Paul Phillips2011-01-271-8/+0
| | | | | | | | | In a code review performance for the ages, I found an instance of the bug being fixed in the commit under review still going strong elsewhere in the file. Since the function with the bug wasn't actually called from anywhere I fixed it by deleting it. No review could possibly improve upon that.
* Made askParse survive syntax errors.Martin Odersky2011-01-261-4/+8
|
* Opening packages when browsing gets rid of spur...Martin Odersky2011-01-261-1/+5
| | | | | | Opening packages when browsing gets rid of spurious presentation co mpiler errors.
* workaround for see #3936, allows building every...Lukas Rytz2011-01-262-2/+2
| | | | | | workaround for see #3936, allows building everything inside intellij. no review
* update intellij files, no reviewLukas Rytz2011-01-262-5/+12
|
* rename .classpath to classpath.SAMPLE and inclu...Lukas Rytz2011-01-262-0/+2
| | | | | | rename .classpath to classpath.SAMPLE and include .classpath in the gitignore.SAMPLE. no review.
* minor cleanup for hash consing of types. no reviewLukas Rytz2011-01-261-2/+3
|
* removed a activeLocks tracking in Symbols, sinc...Martin Odersky2011-01-261-5/+8
| | | | | | removed a activeLocks tracking in Symbols, since no longer needed for presentation compiler.
* Imporved interrupt handling, which should avoid...Martin Odersky2011-01-261-9/+14
| | | | | | Imporved interrupt handling, which should avoid further "tree not found" exceptions. It also seems to make hyperlinking much faster.
* Added an askParse methodMartin Odersky2011-01-261-1/+10
|
* brought scalap up to date with minimal patch.Adriaan Moors2011-01-263-1/+5
|
* Disabled presentation compiler tests.Iulian Dragos2011-01-267-0/+0
|
* One last attempt at getting the presentation co...Iulian Dragos2011-01-263-8/+30
| | | | | | One last attempt at getting the presentation compiler pass some tests. no review.
* Another thing we are all a bit too used to is h...Paul Phillips2011-01-261-193/+100
| | | | | | | | | | | | | | | | | | | Another thing we are all a bit too used to is having lots of unreadable HTML in our code. This is key, central documentation and we all hum to ourselves and look past it rather than risk being assaulted by a swarm of angle brackets. That's why the erasure docs can still talk about BoxedAnyArray and x.asInstanceOf$erased. They could be talking about who killed JFK, we wouldn't know the difference. I also addressed some questions from decades past like "why is this here?" and "!!! needed?" One thing I don't know is whether {scala#Int)Array[T] is intentional notation or the aftermath of a tragic punctuation accident. How about I mass fix all the HTML in trunk? Wouldn't that be great? Just say the word... no review.
* Merge branch 'work'Aleksandar Pokopec2011-01-2627-65/+470
| | | | | | Conflicts: src/library/scala/concurrent/SyncVar.scala
* closes #3619, #4141.Adriaan Moors2011-01-262-4/+52
| | | | | | | | | | | | | | | | replaced the epic outer.outer.outer by something more robust that goes to the context corresponding to the enclosing class nextOuter determines which context is searched next for implicits (after `this`, which contributes `newImplicits` below) in most cases, it is simply the outer context if we're owned by a constructor, the actual current context and the conceptual context are different when it comes to scoping: the current conceptual scope is the context enclosing the blocks that represent the constructor body (TODO: why is there more than one such block in the outer chain?) review by odersky, extempore
* closes #4137.Adriaan Moors2011-01-263-1/+21
|
* closes #2741, #4079: pickling now ensures that ...Adriaan Moors2011-01-267-5/+73
| | | | | | | | | | | | | | | closes #2741, #4079: pickling now ensures that a local type param with a non-local owner, which will thus get a localized owner, will only get a class as its localized owner if its old owner was a class (otherwise, NoSymbol) this ensures that asSeenFrom does not treat typerefs to this symbol differently after pickling. todo: should we pro-actively set the owner of these type params to something else than the type alias that they originate from? see notes in typeFunAnon review by odersky
* closes #3977.Adriaan Moors2011-01-263-2/+19
| | | | | | review by extempore (because of recent sin against this holy principle)
* Hey neat, the -Xcheckinit bot found a bug.Paul Phillips2011-01-261-2/+2
| | | | | bug. I think this will fix it. No review.
* partest --grep has never worked quite right (at...Paul Phillips2011-01-264-15/+36
| | | | | | | | | | | | partest --grep has never worked quite right (at least not in the "sideported" version.) Now it looks harder for matching tests: the check file or any java or scala source file can match. And directory based tests will be properly included. Try it out: test/partest --grep java No review.
* SyncVar should not swallow interrupts and shoul...Paul Phillips2011-01-261-8/+22
| | | | | | | SyncVar should not swallow interrupts and should be robust against spurious wakeups. Closes #4094, review by prokopec. (What did you mean in your comment that it is vulnerable against the take method?)
* Fixing the positions for catch block expressions.Paul Phillips2011-01-251-3/+3
| | | | | | | | is right for the situation, but positions are not my strongest thing. I used atPos on the entire new block and marked it with the position of the expression (+ makeTransparent.) If that sounds suboptimal to anyone let me know. Closes #4182, no review.
* A new murmur3 hashcode implementation contribut...Paul Phillips2011-01-2513-130/+449
| | | | | | | | | | | | | A new murmur3 hashcode implementation contributed by rex kerr. I'm really happy with it. There is benchmarking code included but you can use the pudding for proof: the compiler compiling itself is clearly faster. I deleted the existing murmur2 implementation which has never left trunk in a release. There remain some possible points of improvement with inlining and/or synthetic method generation, but this is a major improvement over the status quo. Closes #2537, review by prokopec.
* Skip getClass (signature changes between JDK 1....Iulian Dragos2011-01-255-14/+19
| | | | | | | | Skip getClass (signature changes between JDK 1.5 and 1.6) and resolve encoding issue of unicode method name. Disabled part of a test that was not handled correctly by the presentation compiler (yet). Added correct encoding for the presentation compiler test. no review.
* Added methods askStructure and askLoadedTyped, ...Martin Odersky2011-01-254-14/+146
| | | | | | Added methods askStructure and askLoadedTyped, which should replace any calls to askType. Next: remove askType.
* Stripped one more embarrasing absolute path fro...Iulian Dragos2011-01-252-3/+3
| | | | | Stripped one more embarrasing absolute path from test output. no review.
* Increased the timeout for presentation compiler...Iulian Dragos2011-01-242-7/+7
| | | | | | Increased the timeout for presentation compiler tests and stripped aboslute paths from the check file. no review.