swift
dfa3ed91 - Teach DeclContext::getParentSourceFile() to return the innermost source file

Commit
3 years ago
Teach DeclContext::getParentSourceFile() to return the innermost source file With macro expansions, and really any code generation that produces proper source locations, the parent source file of a declaration context will be a generated source file rather than the source file near the top of the declaration-context stack. Adjust the implementation of `getParentSourceFile()` to return that innermost source file by doing location-based lookup.
Author
Parents
Loading