Skip to content

Commit 519e3e8

Browse files
committed
CustomAttributeScope is a DECL_ATTRIBUTE_SCOPE_NODE
1 parent 64c953f commit 519e3e8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/swift/AST/ASTScope.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,8 @@ class CustomAttributeScope final : public ASTScopeImpl {
957957

958958
bool ignoreInDebugInfo() const override { return true; }
959959

960+
DeclAttribute *getDeclAttr() const { return attr; }
961+
960962
private:
961963
void expandAScopeThatDoesNotCreateANewInsertionPoint(ScopeCreator &);
962964

include/swift/AST/ASTScopeNodes.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ DECL_SCOPE_NODE(AbstractFunctionDecl)
5959
SCOPE_NODE(ParameterList)
6060
DECL_SCOPE_NODE(FunctionBody)
6161
DECL_SCOPE_NODE(DefaultArgumentInitializer)
62-
SCOPE_NODE(CustomAttribute)
62+
DECL_ATTRIBUTE_SCOPE_NODE(CustomAttribute)
6363
DECL_SCOPE_NODE(PatternEntryDecl)
6464
DECL_SCOPE_NODE(PatternEntryInitializer)
6565
SCOPE_NODE(ConditionalClausePatternUse)

0 commit comments

Comments
 (0)