mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Change return value of functions in EditorConsumer to void
We were always returning true from those functions in SKEditorConsumer and false in the test consumers. On the client side we would then ignore the return value. So it's clearer to have the functions not return anything.
This commit is contained in:
@@ -1856,8 +1856,7 @@ void SwiftEditorDocument::readSemanticInfo(ImmutableTextSnapshotRef Snapshot,
|
||||
UIdent Kind = SemaTok.getUIdentForKind();
|
||||
bool IsSystem = SemaTok.getIsSystem();
|
||||
if (Kind.isValid())
|
||||
if (!Consumer.handleSemanticAnnotation(Offset, Length, Kind, IsSystem))
|
||||
break;
|
||||
Consumer.handleSemanticAnnotation(Offset, Length, Kind, IsSystem);
|
||||
}
|
||||
|
||||
static UIdent SemaDiagStage("source.diagnostic.stage.swift.sema");
|
||||
|
||||
Reference in New Issue
Block a user