Skip to content

Commit 570e1ce

Browse files
committed
Call completeTypeSimpleBeginning directly for clarity NFC
Using the WithDot variant was needlessly confusing. When the argument is nullptr it was just calling completeTypeSimpleBeginning anyway.
1 parent 00ccc9d commit 570e1ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parse/ParseType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ ParserResult<IdentTypeRepr> Parser::parseTypeIdentifier() {
292292
if (Tok.isNot(tok::identifier) && Tok.isNot(tok::kw_Self)) {
293293
if (Tok.is(tok::code_complete)) {
294294
if (CodeCompletion)
295-
CodeCompletion->completeTypeIdentifierWithDot(nullptr);
295+
CodeCompletion->completeTypeSimpleBeginning();
296296
// Eat the code completion token because we handled it.
297297
consumeToken(tok::code_complete);
298298
return makeParserCodeCompletionResult<IdentTypeRepr>();

0 commit comments

Comments
 (0)