From 91d796da81aade1669abb90b72d4013e5480fb2d Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Mon, 19 Jun 2017 10:37:09 -0700 Subject: Make sure that semantic checks always apply to Slang files That is, even if hte user specified the `-no-checking` option (or the equivalent via API), we still want/need to apply full semantic checks to Slang code, so that cross-compilation will be possible. --- source/slang/parser.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'source/slang/parser.h') diff --git a/source/slang/parser.h b/source/slang/parser.h index cc7649e95..d74a3f5a8 100644 --- a/source/slang/parser.h +++ b/source/slang/parser.h @@ -9,12 +9,14 @@ namespace Slang { // Parse a source file into an existing translation unit void parseSourceFile( - ProgramSyntaxNode* translationUnitSyntax, - CompileOptions& options, - TokenSpan const& tokens, - DiagnosticSink* sink, - String const& fileName, - RefPtr const&outerScope); + ProgramSyntaxNode* translationUnitSyntax, + CompileOptions const& options, + TranslationUnitOptions const& translationUnitOptions, + TokenSpan const& tokens, + DiagnosticSink* sink, + String const& fileName, + RefPtr const& outerScope); +; } #endif \ No newline at end of file -- cgit v1.2.3