Skip to content

Commit 979906c

Browse files
committed
[CodeCompletion] Don't manually handle Equal opeerator
1 parent d6a6df2 commit 979906c

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

tools/SourceKit/lib/SwiftLang/CodeCompletionOrganizer.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,10 +1249,6 @@ void CompletionBuilder::getDescription(SwiftResult *result, raw_ostream &OS,
12491249
for (auto C : str->getChunks().slice(*FirstTextChunk)) {
12501250
using ChunkKind = CodeCompletionString::Chunk::ChunkKind;
12511251

1252-
// FIXME: we need a more uniform way to handle operator completions.
1253-
if (C.is(ChunkKind::Equal))
1254-
isOperator = true;
1255-
12561252
if (C.is(ChunkKind::TypeAnnotation) ||
12571253
C.is(ChunkKind::CallParameterClosureType) ||
12581254
C.is(ChunkKind::Whitespace))

tools/SourceKit/lib/SwiftLang/SwiftCompletion.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,6 @@ static void getResultStructure(
247247
C.is(ChunkKind::CallParameterBegin))
248248
break;
249249

250-
if (C.is(ChunkKind::Equal))
251-
isOperator = true;
252-
253250
if (C.hasText())
254251
textSize += C.getText().size();
255252
}

0 commit comments

Comments
 (0)