mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
remove support for looking up global names with dot syntax. "x.y" != "y(x)" now.
Swift SVN r917
This commit is contained in:
@@ -157,13 +157,8 @@ void TUModuleCache::lookupValue(AccessPathTy AccessPath, Identifier Name,
|
||||
if (I == TopLevelValues.end()) return;
|
||||
|
||||
Result.reserve(I->second.size());
|
||||
for (ValueDecl *Elt : I->second) {
|
||||
// Dot Lookup ignores values with non-function types.
|
||||
if (LookupKind == NLKind::DotLookup && !Elt->getType()->is<FunctionType>())
|
||||
continue;
|
||||
|
||||
for (ValueDecl *Elt : I->second)
|
||||
Result.push_back(Elt);
|
||||
}
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user