summaryrefslogtreecommitdiff
path: root/source/slang/slang-compiler.h
diff options
context:
space:
mode:
authorSai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com>2024-09-19 16:27:50 -0400
committerGitHub <noreply@github.com>2024-09-19 13:27:50 -0700
commitdd3d80e61b316390a468a142de2be2fb85b73d0d (patch)
treecbfd3ddcbaed84de335818e9e618d7c3ebff6ecd /source/slang/slang-compiler.h
parent9d40ce4e8921ef468281c91f052dbd443ecf56e2 (diff)
Allow lookups of overloaded methods. (#5110)
* Allow lookups of overloaded methods. * Update slang-reflection-api.cpp * Update slang.cpp --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-compiler.h')
-rwxr-xr-xsource/slang/slang-compiler.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/slang-compiler.h b/source/slang/slang-compiler.h
index 4b20d1f76..820cab03f 100755
--- a/source/slang/slang-compiler.h
+++ b/source/slang/slang-compiler.h
@@ -420,11 +420,11 @@ namespace Slang
String const& typeStr,
DiagnosticSink* sink);
- DeclRef<Decl> findDeclFromString(
+ Expr* findDeclFromString(
String const& name,
DiagnosticSink* sink);
- DeclRef<Decl> findDeclFromStringInType(
+ Expr* findDeclFromStringInType(
Type* type,
String const& name,
LookupMask mask,
@@ -576,7 +576,7 @@ namespace Slang
Dictionary<String, Type*> m_types;
// Any decls looked up dynamically using `findDeclFromString`.
- Dictionary<String, DeclRef<Decl>> m_decls;
+ Dictionary<String, Expr*> m_decls;
Scope* m_lookupScope = nullptr;
std::unique_ptr<Dictionary<String, IntVal*>> m_mapMangledNameToIntVal;
@@ -2174,7 +2174,7 @@ namespace Slang
DiagnosticSink* sink);
DeclRef<Decl> specializeWithArgTypes(
- DeclRef<Decl> funcDeclRef,
+ Expr* funcExpr,
List<Type*> argTypes,
DiagnosticSink* sink);