mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Start naming functions more uniformly.
For any function that has a name, ensure that the name is a compound name with argument names for each of the parameters. Swift SVN r16398
This commit is contained in:
@@ -359,18 +359,7 @@ void Module::lookupValue(AccessPathTy AccessPath, DeclName Name,
|
||||
void BuiltinUnit::lookupValue(Module::AccessPathTy accessPath, DeclName name,
|
||||
NLKind lookupKind,
|
||||
SmallVectorImpl<ValueDecl*> &result) const {
|
||||
// There are currently no builtins with compound names.
|
||||
if (!name.isSimpleName())
|
||||
return;
|
||||
|
||||
getCache().lookupValue(name.getBaseName(), lookupKind, *this, result);
|
||||
|
||||
#ifndef NDEBUG
|
||||
for (auto r : result) {
|
||||
assert(r->getFullName().isSimpleName()
|
||||
&& "please make the builtin lookup cache handle compound name lookup");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
DerivedFileUnit::DerivedFileUnit(Module &M)
|
||||
|
||||
Reference in New Issue
Block a user