summaryrefslogtreecommitdiff
path: root/source/slang/slang-syntax.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-syntax.h')
-rw-r--r--source/slang/slang-syntax.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-syntax.h b/source/slang/slang-syntax.h
index 9589f00fd..a23ad224e 100644
--- a/source/slang/slang-syntax.h
+++ b/source/slang/slang-syntax.h
@@ -136,7 +136,10 @@ namespace Slang
return getMembersOfType<VarDecl>(declRef, filterStyle);
}
-
+ inline Type* getTagType(ASTBuilder* astBuilder, DeclRef<EnumDecl> const& declRef)
+ {
+ return declRef.substitute(astBuilder, declRef.getDecl()->tagType);
+ }
inline Type* getBaseType(ASTBuilder* astBuilder, DeclRef<InheritanceDecl> const& declRef)
{