mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #19054 from jrose-apple/nocturnal
Honor #sourceLocation filenames in several more places
This commit is contained in:
@@ -684,8 +684,7 @@ getParamParentNameOffset(const ValueDecl *VD, SourceLoc Cursor) {
|
||||
if (Loc.isInvalid())
|
||||
return None;
|
||||
auto &SM = VD->getASTContext().SourceMgr;
|
||||
return SM.getLocOffsetInBuffer(Loc, SM.getIDForBufferIdentifier(SM.
|
||||
getBufferIdentifierForLoc(Loc)).getValue());
|
||||
return SM.getLocOffsetInBuffer(Loc, SM.findBufferContainingLoc(Loc));
|
||||
}
|
||||
|
||||
/// Returns true for failure to resolve.
|
||||
|
||||
Reference in New Issue
Block a user