diff options
Diffstat (limited to 'source/slang/slang-syntax.cpp')
| -rw-r--r-- | source/slang/slang-syntax.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp index aa11b1b0f..ea17ad1d1 100644 --- a/source/slang/slang-syntax.cpp +++ b/source/slang/slang-syntax.cpp @@ -322,7 +322,19 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt return RequirementWitness(); } - + // + // WitnessTable + // + + void WitnessTable::add(Decl* decl, RequirementWitness const& witness) + { + SLANG_ASSERT(!requirementDictionary.ContainsKey(decl)); + + requirementDictionary.Add(decl, witness); + requirementList.add(KeyValuePair<Decl*, RequirementWitness>(decl, witness)); + } + + // static Type* ExtractGenericArgType(Val* val) { |
