mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[IDE] Explicitly specify 'SerializedOK=false' to 'getRawComment()'
This ensures that we don't try getRawComment() from serialized locations rdar://problem/75010520
This commit is contained in:
@@ -810,7 +810,7 @@ static SourceLoc getDeclStartPosition(SourceFile &File) {
|
||||
for (auto D : File.getTopLevelDecls()) {
|
||||
if (tryUpdateStart(D->getStartLoc())) {
|
||||
tryUpdateStart(D->getAttrs().getStartLoc());
|
||||
auto RawComment = D->getRawComment();
|
||||
auto RawComment = D->getRawComment(/*SerializedOK=*/false);
|
||||
if (!RawComment.isEmpty())
|
||||
tryUpdateStart(RawComment.Comments.front().Range.getStart());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user