Skip to content

Commit ab15240

Browse files
committed
Remove 'failure' codepath from decl name parsing.
1 parent 5c99afc commit ab15240

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Parse/Parser.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,8 +1360,6 @@ DeclNameRef swift::formDeclNameRef(ASTContext &ctx,
13601360
// We cannot import when the base name is not an identifier.
13611361
if (baseName.empty())
13621362
return DeclNameRef();
1363-
// if (!Lexer::isIdentifier(baseName) && !Lexer::isOperator(baseName))
1364-
// return DeclNameRef();
13651363

13661364
// Get the identifier for the base name. Special-case `init`.
13671365
DeclBaseName baseNameId;

0 commit comments

Comments
 (0)