summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-parser.cpp
diff options
context:
space:
mode:
authorSai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com>2024-08-07 02:04:37 -0400
committerGitHub <noreply@github.com>2024-08-07 02:04:37 -0400
commit2f2ae8c31490ab01ce0d0cc76d5d7fcf1d21efe7 (patch)
tree135cb2109f2717dba3a11929c4cdf163b5ad5c50 /source/slang/slang-parser.cpp
parent366c9b4526b4b940c8aafce459d6784211e862bc (diff)
More reflection API features. (#4740)
* More reflection API features. + Lookup methods and members (by string) on types + Fix issue with looking up non-static members through the scope operator '::' + `GenericReflection`: Cast a decl to generic to access unspecialized generic parameter names and constraints + `GenericReflection`: Use `getGenericContainer()` from function, variable or type to access the 'nearest' generic parent along with specialization info + `GenericReflection::getConcreteType` and `GenericReflection::getConcreteIntVal`: to get the concrete type of a param in the context of the reflection object + `GenericReflection::getOuterGenericContainer` to go up one level and get the outer generic declarations (if there are more than one enclosing generic scopes) + `DeclReflection::getParent`: go to parent declaration. + Change `VariableReflection` to be a `DeclRef` rather than a decl (allows us to return properly substituted types for methods, members, and more) * Fix Falcor issue
Diffstat (limited to 'source/slang/slang-parser.cpp')
-rw-r--r--source/slang/slang-parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp
index 6510793f3..10b52611f 100644
--- a/source/slang/slang-parser.cpp
+++ b/source/slang/slang-parser.cpp
@@ -2203,6 +2203,7 @@ namespace Slang
case TokenType::OpEql:
case TokenType::OpNeq:
case TokenType::OpGreater:
+ case TokenType::EndOfFile:
{
return parseGenericApp(parser, base);
}