summaryrefslogtreecommitdiff
path: root/build.detach.xml
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-11-01 13:01:02 -0700
committerPaul Phillips <paulp@improving.org>2012-11-02 00:08:01 -0700
commitd7ed53f26d6466109cd5828008a8ba2026d95238 (patch)
treee39d9e9a659f42622ef810b26661d5a844a09087 /build.detach.xml
parent64258cf019fb7ebfd9a78451236dac9c676f120b (diff)
downloadscala-d7ed53f26d6466109cd5828008a8ba2026d95238.tar.gz
scala-d7ed53f26d6466109cd5828008a8ba2026d95238.tar.bz2
scala-d7ed53f26d6466109cd5828008a8ba2026d95238.zip
Hardening scope lookup against wrongness.
Calls to scope.lookup have until this commit discarded any symbols after the first, even at the same nesting depth. Some call sites which did this were innocuous, because they were only checking if lookup(name) != NoSymbol. To make this clearer in the future, I added a method which communicates the intent: containsName. And I added an even more relevant one, which falls between "lookup" and "lookupAll". def lookupUnshadowedEntries(name: Name) That method will be put to work in symbol lookup, allowing us to put to bed methods like "correctForPackageObject".
Diffstat (limited to 'build.detach.xml')
0 files changed, 0 insertions, 0 deletions