diff options
Diffstat (limited to 'source/slang/slang-syntax.cpp')
| -rw-r--r-- | source/slang/slang-syntax.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp index 502425da8..c05f9aa0f 100644 --- a/source/slang/slang-syntax.cpp +++ b/source/slang/slang-syntax.cpp @@ -1346,6 +1346,34 @@ void Type::accept(IValVisitor* visitor, void* extra) return this; } + // ErrorIntVal + + bool ErrorIntVal::EqualsVal(Val* val) + { + if( auto errorIntVal = as<ErrorIntVal>(val) ) + { + return true; + } + return false; + } + + String ErrorIntVal::ToString() + { + return "<error>"; + } + + int ErrorIntVal::GetHashCode() + { + return int(typeid(this).hash_code()); + } + + RefPtr<Val> ErrorIntVal::SubstituteImpl(SubstitutionSet subst, int* ioDiff) + { + SLANG_UNUSED(subst); + SLANG_UNUSED(ioDiff); + return this; + } + // Substitutions RefPtr<Substitutions> GenericSubstitution::applySubstitutionsShallow(SubstitutionSet substSet, RefPtr<Substitutions> substOuter, int* ioDiff) |
