summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Adding some comments and clearer naming.Paul Phillips2012-10-231-3/+6
|
* Switch typedIdent to use Context's lookupSymbol.Paul Phillips2012-10-231-232/+49
| | | | | | | | This completes the transition. Typer's bevy of special cases to influence symbol lookup are encoded in its local "qualifies" method, which it passes to lookupSymbol. This allows access to be done correctly without infecting Typer with such pedestrian concerns.
* Simplifying Typer.Paul Phillips2012-10-231-175/+111
| | | | Apply convenience methods to strip away complications.
* Added some symbol lookup convenience methods.Paul Phillips2012-10-233-9/+28
| | | | Greasing the wheels for Typer's well-being.
* Made SilentResult more monadic.Paul Phillips2012-10-231-1/+14
| | | | | | Given that it's just a reimplementation of Option, we may as well not also reimplement methods like map and getOrElse at every call site.
* Adds the core symbol lookup logic to Typers.Paul Phillips2012-10-231-3/+235
| | | | | | | | | | | | This unifies several disparate/ad-hoc mechanisms for excluding symbols from eligibility in a single predicate. This is the method on Context: def lookupSymbol(name: Name, qualifies: Symbol => Boolean) The logic is largely that which was buried in typedIdent, except that I fixed SI-3160 so that import foo._ does not inject foo's private members into your namespace.
* Introduces some structure for name lookups.Paul Phillips2012-10-231-2/+17
| | | | | | | | | | | | | | | | | | | Too many unrelated things are intermingled. If you want to know what symbol corresponds to a particular name in a particular context, you shouldn't have to involve either a Tree or a Typer to find that out. I toiled line by line over typedIdent until it had shed its redundancies and freed itself from the bowels of typed1. The mechanism of name lookup is such that adding a qualifier when the occasion calls for it is inseperable without a lot more effort. So to preserve a sane interface I devised this small partitioning of outcomes. case class LookupSucceeded(qualifier, symbol) case class LookupAmbiguous(msg) case class LookupInaccessible(symbol, msg) case class LookupNotFound(msg)
* Merge pull request #1518 from retronym/ticket/2968Josh Suereth2012-10-235-0/+53
|\ | | | | SI-2968 Fix brace healing for `^case (class|object) {`
| * SI-2968 Fix brace healing for `^case (class|object) {`Jason Zaugg2012-10-225-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | The scanner coalesces the pair of tokens into CASEOBJECT or CASECLASS, but fails to set `offset` back to the start of `case`. Brace healing is then unable to correctly guess the location of the missing brace. This commit resets `offset` and `lastOffset`, as though caseobject were a single keyword. Only the former was neccessary to fix this bug; I haven't found a test that shows the need for the latter.
* | Merge pull request #1469 from rssh/printwriter-in-uncaught-exceptionAdriaan Moors2012-10-221-6/+5
|\ \ | | | | | | print stacktrace properly when -verbose
| * | using existing scala.tools.nsc.util.stackTraceStringRuslan Shevchenko2012-10-071-8/+5
| | |
| * | fixed trivial error with printing of exception stack trace in verbose mode.Ruslan Shevchenko2012-10-071-2/+4
| | |
* | | Merge pull request #1468 from paulp/issue/6482Adriaan Moors2012-10-224-65/+150
|\ \ \ | | | | | | | | SI-6482 preserve bounds on tparams of value class
| * | | A little more housecleaning in ExtensionMethods.Paul Phillips2012-10-062-52/+80
| | | | | | | | | | | | | | | | The only real contribution is readability.
| * | | Incorporated pull request feedback.Paul Phillips2012-10-062-7/+11
| | | |
| * | | Fix for SI-6482, lost bounds in extension methods.Paul Phillips2012-10-062-13/+55
| | | | | | | | | | | | | | | | | | | | That was a good one. How to create a new method with type parameters from multiple sources, herein.
| * | | Responded to comment about how many isCoercibles there are.Paul Phillips2012-10-061-0/+11
| |/ / | | | | | | | | | I make the case that there is only one.
* | | Merge pull request #1512 from paulp/merge-210Adriaan Moors2012-10-22112-1147/+4566
|\ \ \ | |_|/ |/| | Merge 2.10.x into master.
| * | Merge remote-tracking branch 'origin/2.10.x' into merge-210Paul Phillips2012-10-19112-1147/+4566
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/2.10.x: (52 commits) JavaUniverse Moved @contentDiagram in Symbols Adds lots of new documentation for TypeTags, Mirrors, Universes and more runtime.JavaUniverse - put ungrouped members at the top Forgotten annotation in Annotations Diagram tweaking Grouping for reflection and macros fixes a typo scala.reflect.api.Symbols documentation Symbols docs cleanup, mostly moved to guide scala.reflect.api.Position documentation scala.reflect.api.StandardNames documentation scala.reflect.api.Constants documentation removed docs for internal TypeCreator and TreeCreator simplified reflection docs for trees Rearranged some reflection docs, moving things to the guide reflection docs improvements and moves to doc page docs for reflection and macros SI-6509 Correct @template owners SI-6155 Scaladoc @template diagrms ... Conflicts: src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala src/compiler/scala/tools/nsc/typechecker/Typers.scala src/reflect/scala/reflect/api/Trees.scala test/scaladoc/run/links.scala
| | * \ Merge pull request #1505 from paulp/merge-210-wip-210Josh Suereth2012-10-16124-1775/+10649
| | |\ \ | | | | | | | | | | Merge 2.10.0-wip into 2.10.x.
| | | * | Merge remote-tracking branch 'origin/2.10.0-wip' into merge-210-wip-210Paul Phillips2012-10-16124-1775/+10649
| | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By Eugene Burmako (23) and others # Via Josh Suereth (12) and others * origin/2.10.0-wip: (54 commits) JavaUniverse Moved @contentDiagram in Symbols Adds lots of new documentation for TypeTags, Mirrors, Universes and more runtime.JavaUniverse - put ungrouped members at the top Forgotten annotation in Annotations Diagram tweaking Grouping for reflection and macros fixes a typo scala.reflect.api.Symbols documentation Symbols docs cleanup, mostly moved to guide scala.reflect.api.Position documentation scala.reflect.api.StandardNames documentation scala.reflect.api.Constants documentation removed docs for internal TypeCreator and TreeCreator simplified reflection docs for trees Rearranged some reflection docs, moving things to the guide reflection docs improvements and moves to doc page docs for reflection and macros SI-6509 Correct @template owners SI-6155 Scaladoc @template diagrms ...
| | | * | Merge pull request #1492 from scalamacros/pullrequest/reflection-docsv2.10.0-RC1Josh Suereth2012-10-1145-786/+3943
| | | |\ \ | | | | | | | | | | | | Pullrequest/reflection docs
| | | | * | JavaUniverseVlad Ureche2012-10-111-2/+1
| | | | | |
| | | | * | Moved @contentDiagram in SymbolsVlad Ureche2012-10-111-2/+2
| | | | | |
| | | | * | Adds lots of new documentation for TypeTags, Mirrors, Universes and moreHeather Miller2012-10-1120-352/+646
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additionally includes improvements, formatting fixes, and link additions and fixes.
| | | | * | runtime.JavaUniverse - put ungrouped members at the topVlad Ureche2012-10-112-2/+4
| | | | | |
| | | | * | Forgotten annotation in AnnotationsVlad Ureche2012-10-111-1/+1
| | | | | |
| | | | * | Diagram tweakingVlad Ureche2012-10-1113-7/+29
| | | | | | | | | | | | | | | | | | | | | | | | blocked by SI-6511
| | | | * | Grouping for reflection and macrosVlad Ureche2012-10-1124-251/+1046
| | | | | | | | | | | | | | | | | | | | | | | | and warning cleanup
| | | | * | fixes a typoEugene Burmako2012-10-111-1/+1
| | | | | |
| | | | * | scala.reflect.api.Symbols documentationVlad Ureche2012-10-111-50/+330
| | | | | | | | | | | | | | | | | | | | | | | | Oh those pretty groups, u gotta luv'em...
| | | | * | Symbols docs cleanup, mostly moved to guideingoem2012-10-111-198/+32
| | | | | |
| | | | * | scala.reflect.api.Position documentationVlad Ureche2012-10-113-61/+50
| | | | | |
| | | | * | scala.reflect.api.StandardNames documentationVlad Ureche2012-10-113-11/+27
| | | | | |
| | | | * | scala.reflect.api.Constants documentationVlad Ureche2012-10-112-82/+124
| | | | | |
| | | | * | removed docs for internal TypeCreator and TreeCreatorChristopher Vogt2012-10-112-37/+5
| | | | | |
| | | | * | simplified reflection docs for treesChristopher Vogt2012-10-111-216/+28
| | | | | |
| | | | * | Rearranged some reflection docs, moving things to the guideingoem2012-10-1111-437/+86
| | | | | |
| | | | * | reflection docs improvements and moves to doc pageChristopher Vogt2012-10-115-234/+23
| | | | | |
| | | | * | docs for reflection and macrosEugene Burmako2012-10-1140-385/+3051
| | | | | |
| | | * | | Merge pull request #1489 from heathermiller/issue/6453Josh Suereth2012-10-111-2/+1
| | | |\ \ \ | | | | |/ / | | | |/| | SI-6453 Documentation links for @switch are broken
| | | | * | SI-6453 Documentation links for @switch are brokenHeather Miller2012-10-101-2/+1
| | | | | |
| | | * | | Merge pull request #1491 from VladUreche/topic/scaladoc2Josh Suereth2012-10-1112-72/+208
| | | |\ \ \ | | | | | | | | | | | | | | Scaladoc bugfixes for reflection
| | | | * | | SI-6509 Correct @template ownersVlad Ureche2012-10-115-5/+61
| | | | | | |
| | | | * | | SI-6155 Scaladoc @template diagrmsVlad Ureche2012-10-114-1/+49
| | | | | | |
| | | | * | | SI-6501 Scaladoc will correctly link to @templatedVlad Ureche2012-10-113-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | members
| | | | * | | SI-6495 Scaladoc will pick up group from ownerVlad Ureche2012-10-112-52/+71
| | | | | | |
| | | | * | | SI-6487 Scaladoc can link to inner classesVlad Ureche2012-10-113-7/+13
| | | |/ / /
| | | * | | Merge pull request #1487 from dragos/issue/fix-6505Josh Suereth2012-10-113-1/+48
| | | |\ \ \ | | | | | | | | | | | | | | Fixed SI-6505. Respond to ask calls by immediate failure after compiler shutdown.
| | | | * | | Fixed SI-6505. Respond to ask calls by immediate failure even after compiler ↵Iulian Dragos2012-10-103-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shutdown. When the compiler is asked to shutdown, it may still have items on the working queue, and more can be added by clients in other thread that don't *know* the compiler is down yet. These requests were never serviced, leading to deadlocks or timeouts. review by @odersky, @hubertp