summaryrefslogtreecommitdiff
path: root/source/slang/decl-defs.h
diff options
context:
space:
mode:
authorYONGH\yongh <yonghe@outlook.com>2017-10-30 21:18:20 -0400
committerYONGH\yongh <yonghe@outlook.com>2017-10-30 21:18:20 -0400
commit84f381cc180b3176d6a58da4085ee8470f246922 (patch)
tree4c20475c42b33a1e719237c573106eaeb5698322 /source/slang/decl-defs.h
parent91ac1555d7838961c3b5c41d5af39c7a881f59eb (diff)
work in-progress, add parsing for assoc type decls and member type expressions
Diffstat (limited to 'source/slang/decl-defs.h')
-rw-r--r--source/slang/decl-defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/decl-defs.h b/source/slang/decl-defs.h
index c96fe6d09..4021f5a38 100644
--- a/source/slang/decl-defs.h
+++ b/source/slang/decl-defs.h
@@ -122,6 +122,11 @@ SYNTAX_CLASS(TypeDefDecl, SimpleTypeDecl)
SYNTAX_FIELD(TypeExp, type)
END_SYNTAX_CLASS()
+// An 'assoctype' declaration
+SYNTAX_CLASS(AssocTypeDecl, SimpleTypeDecl)
+ SYNTAX_FIELD(TypeExp, constraint)
+END_SYNTAX_CLASS()
+
// A scope for local declarations (e.g., as part of a statement)
SIMPLE_SYNTAX_CLASS(ScopeDecl, ContainerDecl)