mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Serialize local types and provide a lookup API"
Changing the design of this to maintain more local context information and changing the lookup API. This reverts commit 4f2ff1819064dc61c20e31c7c308ae6b3e6615d0. Swift SVN r24432
This commit is contained in:
@@ -399,12 +399,6 @@ void SerializedASTFile::lookupValue(Module::AccessPathTy accessPath,
|
||||
File.lookupValue(name, results);
|
||||
}
|
||||
|
||||
TypeDecl *SerializedASTFile::lookupLocalType(llvm::StringRef FileHash,
|
||||
unsigned int LocalDiscriminator,
|
||||
llvm::StringRef Name) const {
|
||||
return File.lookupLocalType(FileHash, LocalDiscriminator, Name);
|
||||
}
|
||||
|
||||
OperatorDecl *SerializedASTFile::lookupOperator(Identifier name,
|
||||
DeclKind fixity) const {
|
||||
return File.lookupOperator(name, fixity);
|
||||
@@ -437,10 +431,6 @@ void SerializedASTFile::getTopLevelDecls(SmallVectorImpl<Decl*> &results) const{
|
||||
File.getTopLevelDecls(results);
|
||||
}
|
||||
|
||||
void SerializedASTFile::getLocalTypeDecls(SmallVectorImpl<Decl*> &results) const {
|
||||
return File.getLocalTypeDecls(results);
|
||||
}
|
||||
|
||||
void SerializedASTFile::getDisplayDecls(SmallVectorImpl<Decl*> &results) const {
|
||||
File.getDisplayDecls(results);
|
||||
}
|
||||
@@ -461,10 +451,3 @@ SerializedASTFile::getDiscriminatorForPrivateValue(const ValueDecl *D) const {
|
||||
assert(!discriminator.empty() && "no discriminator found for value");
|
||||
return discriminator;
|
||||
}
|
||||
|
||||
Identifier
|
||||
SerializedASTFile::getDiscriminatorForLocalValue(const ValueDecl *D) const {
|
||||
Identifier discriminator = File.getDiscriminatorForLocalValue(D);
|
||||
assert(!discriminator.empty() && "no discriminator found for value");
|
||||
return discriminator;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user