From 1050e0eb96d6c8e7a6cfb253458155e1014625c3 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 5 Dec 2023 10:06:19 -0800 Subject: Support `include` for pulling file into the current module. (#3377) * Support `include` for pulling file into the current module. * Add auto-completion, hover info and goto-def support. * Disable warning for missing `module` declaration for now. --------- Co-authored-by: Yong He --- source/slang/slang-check.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-check.cpp') diff --git a/source/slang/slang-check.cpp b/source/slang/slang-check.cpp index 780c109da..de86a333f 100644 --- a/source/slang/slang-check.cpp +++ b/source/slang/slang-check.cpp @@ -170,7 +170,8 @@ namespace Slang translationUnit->compileRequest->getLinkage(), translationUnit->getModule(), translationUnit->compileRequest->getSink(), - &loadedModules); + &loadedModules, + translationUnit); SemanticsDeclVisitorBase visitor( (SemanticsContext(&sharedSemanticsContext)) ); -- cgit v1.2.3