summaryrefslogtreecommitdiff
path: root/source/slang/decl-defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/decl-defs.h')
-rw-r--r--source/slang/decl-defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/decl-defs.h b/source/slang/decl-defs.h
index 8e1985e3f..76480e64b 100644
--- a/source/slang/decl-defs.h
+++ b/source/slang/decl-defs.h
@@ -266,3 +266,10 @@ SYNTAX_CLASS(SyntaxDecl, Decl)
FIELD(SyntaxParseCallback, parseCallback)
FIELD(void*, parseUserData)
END_SYNTAX_CLASS()
+
+// A declaration of an attribute to be used with `[name(...)]` syntax.
+//
+SYNTAX_CLASS(AttributeDecl, ContainerDecl)
+ // What type of syntax node will be produced to represent this attribute.
+ FIELD(SyntaxClass<RefObject>, syntaxClass)
+END_SYNTAX_CLASS()