diff options
| author | YONGH\yongh <yonghe@outlook.com> | 2017-10-30 21:18:20 -0400 |
|---|---|---|
| committer | YONGH\yongh <yonghe@outlook.com> | 2017-10-30 21:18:20 -0400 |
| commit | 84f381cc180b3176d6a58da4085ee8470f246922 (patch) | |
| tree | 4c20475c42b33a1e719237c573106eaeb5698322 /source/slang/decl-defs.h | |
| parent | 91ac1555d7838961c3b5c41d5af39c7a881f59eb (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.h | 5 |
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) |
