diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-check-decl.cpp | 3 | ||||
| -rw-r--r-- | source/slang/slang-compiler.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index 7f07444dc..e94a3eb10 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -1356,7 +1356,8 @@ bool SemanticsVisitor::shouldSkipChecking(Decl* decl, DeclCheckState state) auto& assistInfo = getLinkage()->contentAssistInfo; // If this func is not defined in the primary module, skip checking its body. auto moduleDecl = getModuleDecl(decl); - if (moduleDecl && moduleDecl->getName() != assistInfo.primaryModuleName) + if (moduleDecl && moduleDecl->module->getNameObj() != assistInfo.primaryModuleName && + moduleDecl->getName() != assistInfo.primaryModuleName) return true; if (funcDecl->body) { diff --git a/source/slang/slang-compiler.h b/source/slang/slang-compiler.h index e0df18a8c..cc4fc8dcc 100644 --- a/source/slang/slang-compiler.h +++ b/source/slang/slang-compiler.h @@ -1660,6 +1660,8 @@ public: void setName(String name); void setName(Name* name) { m_name = name; } + Name* getNameObj() { return m_name; } + void setPathInfo(PathInfo pathInfo) { m_pathInfo = pathInfo; } /// Set the IR for this module. |
