generate: Add Any type to parser and syntax tree

This commit is contained in:
2025-09-08 09:58:50 -04:00
parent 8dac25035f
commit 419c3651bf
3 changed files with 10 additions and 0 deletions

View File

@@ -99,6 +99,12 @@ func (typ TypeNamed) String() string {
return typ.Name
}
type TypeAny struct { }
func (typ TypeAny) String() string {
return "Any"
}
func HashType(typ Type) [16]byte {
// TODO: if we ever want to make the compiler more efficient, this would
// be a good place to start, complex string concatenation in a hot path