mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Serialize the source order of Decls appearing in their original source file.
We used to think the source order is preserved after de-serialization; however, this seems to be not the case.
This commit is contained in:
@@ -495,11 +495,17 @@ SerializedASTFile::getGroupNameForDecl(const Decl *D) const {
|
||||
return File.getGroupNameForDecl(D);
|
||||
}
|
||||
|
||||
|
||||
Optional<StringRef>
|
||||
SerializedASTFile::getSourceFileNameForDecl(const Decl *D) const {
|
||||
return File.getSourceFileNameForDecl(D);
|
||||
}
|
||||
|
||||
Optional<unsigned>
|
||||
SerializedASTFile::getSourceOrderForDecl(const Decl *D) const {
|
||||
return File.getSourceOrderForDecl(D);
|
||||
}
|
||||
|
||||
void
|
||||
SerializedASTFile::collectAllGroups(std::vector<StringRef> &Names) const {
|
||||
File.collectAllGroups(Names);
|
||||
|
||||
Reference in New Issue
Block a user