Skip to content

Commit 3a47087

Browse files
committed
[Parser] Don't resolve decl references in the parser if the declaration
has a custom attribute.
1 parent 769034b commit 3a47087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parse/ParseExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2255,7 +2255,7 @@ Expr *Parser::parseExprIdentifier() {
22552255
}
22562256

22572257
Expr *E;
2258-
if (D == nullptr) {
2258+
if (D == nullptr || D->getAttrs().hasAttribute<CustomAttr>()) {
22592259
if (name.getBaseName().isEditorPlaceholder()) {
22602260
IDSyntaxContext.setCreateSyntax(SyntaxKind::EditorPlaceholderExpr);
22612261
return parseExprEditorPlaceholder(IdentTok, name.getBaseIdentifier());

0 commit comments

Comments
 (0)