Added untested object member analysis

This commit is contained in:
2022-10-12 23:25:21 -04:00
parent aaf268d0d1
commit f817894b49
3 changed files with 106 additions and 8 deletions

View File

@@ -55,6 +55,12 @@ func (what Type) Kind () (kind TypeKind) {
return
}
// Nil returns true if the type is nil, and false if it isn't.
func (what Type) Nil () (isNil bool) {
isNil = what.kind == TypeKindNil
return
}
// Mutable returns whether or not the type's data is mutable.
func (what Type) Mutable () (mutable bool) {
mutable = what.mutable