diff options
Diffstat (limited to 'source/slang/syntax.cpp')
| -rw-r--r-- | source/slang/syntax.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp index 6cf3fd7c9..165b2d132 100644 --- a/source/slang/syntax.cpp +++ b/source/slang/syntax.cpp @@ -940,6 +940,33 @@ void Type::accept(IValVisitor* visitor, void* extra) return this; } + // AssocTypeDeclRefType + + String AssocTypeDeclRefType::ToString() + { + // TODO: what is appropriate here? + return "<AssocType>"; + } + + bool AssocTypeDeclRefType::EqualsImpl(Type * type) + { + if (auto assocTypeDeclRefType = type->As<AssocTypeDeclRefType>()) + { + return declRef.Equals(assocTypeDeclRefType->declRef); + } + return false; + } + + int AssocTypeDeclRefType::GetHashCode() + { + return declRef.GetHashCode(); + } + + Type* AssocTypeDeclRefType::CreateCanonicalType() + { + return this; + } + // ArithmeticExpressionType // VectorExpressionType |
