summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-24 22:19:38 -0700
committerGitHub <noreply@github.com>2022-10-24 22:19:38 -0700
commit41cb7c13e37ec32ffb6557d21da079d77151e136 (patch)
tree38d2c44938e2679c42c5c0e73f5411e59015df93 /source/slang/slang-check.cpp
parent1093218d6f0e114eb9fa52d60ca525bf9dd9f98a (diff)
Rework differentiation of member access through `[DerivativeMember(DiffType.field)]` (#2460)
* wip: remove auto-diff for member access, add diff through property accessors. * Fix getter-setter test. * Fix getter-setter-multi test. * Fix nested-jvp test. * Use [DerivativeMember] attribute to differentiate through member access. * Clean up. * More cleanup. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check.cpp')
-rw-r--r--source/slang/slang-check.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/source/slang/slang-check.cpp b/source/slang/slang-check.cpp
index 8c6cddbfe..bcc74a6d0 100644
--- a/source/slang/slang-check.cpp
+++ b/source/slang/slang-check.cpp
@@ -210,24 +210,4 @@ namespace Slang
throw;
}
}
-
- void removeLookupForName(TypeCheckingCache* cache, Name* name)
- {
- auto& lookupCache = cache->lookupCache;
-
- List<LookupRequestKey> keys;
-
- for (const auto& pairs : lookupCache)
- {
- const auto& key = pairs.Key;
- if (key.name == name)
- {
- keys.add(key);
- }
- }
- for (auto& key : keys)
- {
- lookupCache.Remove(key);
- }
- }
}