diff options
Diffstat (limited to 'source/slang/slang-syntax.h')
| -rw-r--r-- | source/slang/slang-syntax.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-syntax.h b/source/slang/slang-syntax.h index a23ad224e..c144ceb70 100644 --- a/source/slang/slang-syntax.h +++ b/source/slang/slang-syntax.h @@ -136,6 +136,12 @@ namespace Slang return getMembersOfType<VarDecl>(declRef, filterStyle); } + /// If the given `structTypeDeclRef` inherits from another struct type, return that base type + DeclRefType* findBaseStructType(ASTBuilder* astBuilder, DeclRef<StructDecl> const& structTypeDeclRef); + + /// If the given `structTypeDeclRef` inherits from another struct type, return that base struct decl + DeclRef<StructDecl> findBaseStructDeclRef(ASTBuilder* astBuilder, DeclRef<StructDecl> const& structTypeDeclRef); + inline Type* getTagType(ASTBuilder* astBuilder, DeclRef<EnumDecl> const& declRef) { return declRef.substitute(astBuilder, declRef.getDecl()->tagType); |
