mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[serialization] Add support for prefix and postfix operators.
This includes adding an operator lookup table to ModuleFile. Operators are keyed by a (name, fixity) pair. Swift SVN r6078
This commit is contained in:
@@ -236,6 +236,15 @@ void SerializedModuleLoader::lookupValue(Module *module,
|
||||
moduleFile->lookupValue(name, results);
|
||||
}
|
||||
|
||||
OperatorDecl *SerializedModuleLoader::lookupOperator(Module *module,
|
||||
Identifier name,
|
||||
DeclKind fixity) {
|
||||
ModuleFile *moduleFile = cast<SerializedModule>(module)->File;
|
||||
if (!moduleFile)
|
||||
return nullptr;
|
||||
|
||||
return moduleFile->lookupOperator(name, fixity);
|
||||
}
|
||||
|
||||
void SerializedModuleLoader::loadExtensions(NominalTypeDecl *nominal,
|
||||
unsigned previousGeneration) {
|
||||
|
||||
Reference in New Issue
Block a user