mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: cache serialized source locations in Decl
This commit is contained in:
@@ -248,7 +248,7 @@ public:
|
||||
SourceLoc getLocFromExternalSource(StringRef Path, unsigned Line, unsigned Col);
|
||||
private:
|
||||
const VirtualFile *getVirtualFile(SourceLoc Loc) const;
|
||||
Optional<unsigned> getExternalSourceBufferId(StringRef Path);
|
||||
unsigned getExternalSourceBufferId(StringRef Path);
|
||||
int getLineOffset(SourceLoc Loc) const {
|
||||
if (auto VFile = getVirtualFile(Loc))
|
||||
return VFile->LineOffset;
|
||||
|
||||
Reference in New Issue
Block a user