summaryrefslogtreecommitdiff
path: root/source/slang/slang-parser.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-05-28 14:01:51 -0400
committerGitHub <noreply@github.com>2020-05-28 14:01:51 -0400
commitc2d31347ea06c768045e7c503ef0188e0e5356de (patch)
tree1a4ee67aafca0a709ae691104023431bb6829825 /source/slang/slang-parser.h
parente5d0f3360f44a4cdd2390e7817db17bb3cc0dd04 (diff)
WIP: ASTBuilder (#1358)
* Compiles. * Small tidy up around session/ASTBuilder. * Tests are now passing. * Fix Visual Studio project. * Fix using new X to use builder when protectedness of Ctor is not enough. Substitute->substitute * Add some missing ast nodes created outside of ASTBuilder. * Compile time check that ASTBuilder is making an AST type. * Moced findClasInfo and findSyntaxClass (essentially the same thing) to SharedASTBuilder from Session.
Diffstat (limited to 'source/slang/slang-parser.h')
-rw-r--r--source/slang/slang-parser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/slang/slang-parser.h b/source/slang/slang-parser.h
index 1c21b9474..f3587793e 100644
--- a/source/slang/slang-parser.h
+++ b/source/slang/slang-parser.h
@@ -9,13 +9,14 @@ namespace Slang
{
// Parse a source file into an existing translation unit
void parseSourceFile(
+ ASTBuilder* astBuilder,
TranslationUnitRequest* translationUnit,
TokenSpan const& tokens,
DiagnosticSink* sink,
RefPtr<Scope> const& outerScope);
RefPtr<Expr> parseTermFromSourceFile(
- Session* session,
+ ASTBuilder* astBuilder,
TokenSpan const& tokens,
DiagnosticSink* sink,
RefPtr<Scope> const& outerScope,
@@ -23,7 +24,7 @@ namespace Slang
SourceLanguage sourceLanguage);
RefPtr<ModuleDecl> populateBaseLanguageModule(
- Session* session,
+ ASTBuilder* astBuilder,
RefPtr<Scope> scope);
}