summaryrefslogtreecommitdiff
path: root/source/slang/slang-syntax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-syntax.cpp')
-rw-r--r--source/slang/slang-syntax.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp
index ed2ce048b..53a02ed87 100644
--- a/source/slang/slang-syntax.cpp
+++ b/source/slang/slang-syntax.cpp
@@ -470,6 +470,12 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
return astBuilder->getOrCreate<ThisType>(declRef.declRefBase);
}
+ else if (auto typedefDecl = as<TypeDefDecl>(declRef.getDecl()))
+ {
+ if (typedefDecl->type.type)
+ return as<Type>(typedefDecl->type.type->substitute(astBuilder, SubstitutionSet(declRef)));
+ return astBuilder->getErrorType();
+ }
else
{
declRef = createDefaultSubstitutionsIfNeeded(astBuilder, nullptr, declRef);