summaryrefslogtreecommitdiffstats
path: root/source/slang/parser.h
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-06-19 10:37:09 -0700
committerTim Foley <tfoley@nvidia.com>2017-06-19 10:37:09 -0700
commit91d796da81aade1669abb90b72d4013e5480fb2d (patch)
treeaf1fffcf4cc3ad7368fb9ae2c1b23b34890dbca8 /source/slang/parser.h
parentbb9ca29160f5d95f3860504262693ea650d96be5 (diff)
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.
Diffstat (limited to 'source/slang/parser.h')
-rw-r--r--source/slang/parser.h14
1 files changed, 8 insertions, 6 deletions
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<Scope> const&outerScope);
+ ProgramSyntaxNode* translationUnitSyntax,
+ CompileOptions const& options,
+ TranslationUnitOptions const& translationUnitOptions,
+ TokenSpan const& tokens,
+ DiagnosticSink* sink,
+ String const& fileName,
+ RefPtr<Scope> const& outerScope);
+;
}
#endif \ No newline at end of file