mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ASTPrinter] Move up the logic printing the module disambiguation
This commit is contained in:
@@ -185,11 +185,10 @@ public:
|
||||
StreamPrinter::printTypeRef(T, TD, Name, NameContext);
|
||||
}
|
||||
|
||||
void printModuleRef(ModuleEntity Mod, Identifier Name,
|
||||
const PrintOptions &Options) override {
|
||||
void printModuleRef(ModuleEntity Mod, Identifier Name) override {
|
||||
unsigned StartOffset = OS.tell();
|
||||
Info.References.emplace_back(Mod, StartOffset, Name.str().size());
|
||||
StreamPrinter::printModuleRef(Mod, Name, Options);
|
||||
StreamPrinter::printModuleRef(Mod, Name);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user