From 550405d2de2ca617046e73fe5ec7e5e1765a5c97 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 3 Jan 2018 17:15:03 -0800 Subject: Fix type lookup of global type arguments Global type argument lookup should be done in both loaded modules and current trnaslation units. This is the same as the logic of spReflection_FindTypeByName, so it is extracted into `CompileRequest::lookupGlobalDecl(Name*)` method and reused in places. --- source/slang/compiler.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/compiler.h') diff --git a/source/slang/compiler.h b/source/slang/compiler.h index 2302c77c0..1fca4751c 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -373,6 +373,8 @@ namespace Slang Name* name, SourceLoc const& loc); + Decl* lookupGlobalDecl(Name* name); + SourceManager* getSourceManager() { return sourceManager; -- cgit v1.2.3