summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-parser.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-26 08:32:24 -0700
committerGitHub <noreply@github.com>2022-10-26 08:32:24 -0700
commit939be44ca23476e622dfb24a592383fe2a1da61f (patch)
tree7f45645897fe5735d58a7687290552d479e4d6fc /source/slang/slang-parser.cpp
parent4fc34b18da2f83ee6b4f094067503a66cab3d0b5 (diff)
Auto synthesis of Differential type (#2466)
Diffstat (limited to 'source/slang/slang-parser.cpp')
-rw-r--r--source/slang/slang-parser.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp
index c0c035211..f2284a121 100644
--- a/source/slang/slang-parser.cpp
+++ b/source/slang/slang-parser.cpp
@@ -3078,11 +3078,6 @@ namespace Slang
// would trigger a rebuild of the member dictionary that
// would take O(N) time.
//
- // Eventually we should make `builtMemberDictionary()`
- // incremental, so that it only has to process members
- // added since the last time it was invoked.
- //
- buildMemberDictionary(parentDecl);
// There might be multiple members of the same name
// (if we define a namespace `foo` after an overloaded
@@ -3090,7 +3085,7 @@ namespace Slang
// lookup will only give us the first.
//
Decl* firstDecl = nullptr;
- parentDecl->memberDictionary.TryGetValue(nameAndLoc.name, firstDecl);
+ parentDecl->getMemberDictionary().TryGetValue(nameAndLoc.name, firstDecl);
//
// We will search through the declarations of the name
// and find the first that is a namespace (if any).