summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-parser.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-05-29 14:26:48 -0400
committerGitHub <noreply@github.com>2020-05-29 14:26:48 -0400
commit9773495f1ab8a11194a21e1cf7b141c3da5cdfce (patch)
tree67031b547c61fba8553aee44b627b05eeeb4c4ee /source/slang/slang-parser.cpp
parent45e414f9298d9fae339ff61a959f30b0529c41b9 (diff)
NodeBase types constructed with astNodeType member set (#1363)
* Maked Substituions derived from NodeBase * * Add astNodeTYpe field to NodeBase * Make Substitutions derived from NodeBase * Make all construction through ASTBuilder * Make getClassInfo non virtual (just uses the astNodeType)
Diffstat (limited to 'source/slang/slang-parser.cpp')
-rw-r--r--source/slang/slang-parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp
index a90d4bfc9..6fd51bea2 100644
--- a/source/slang/slang-parser.cpp
+++ b/source/slang/slang-parser.cpp
@@ -2834,10 +2834,10 @@ namespace Slang
// This is a catch-all syntax-construction callback to handle cases where
// a piece of syntax is fully defined by the keyword to use, along with
// the class of AST node to construct.
- static RefPtr<RefObject> parseSimpleSyntax(Parser* /*parser*/, void* userData)
+ static RefPtr<RefObject> parseSimpleSyntax(Parser* parser, void* userData)
{
SyntaxClassBase syntaxClass((ReflectClassInfo*) userData);
- return (RefObject*) syntaxClass.createInstanceImpl();
+ return (RefObject*) syntaxClass.createInstanceImpl(parser->astBuilder);
}
// Parse a declaration of a keyword that can be used to define further syntax.