Make the status type a struct, not an int32_t

This commit is contained in:
Nigel Tao committed 2018-08-11 13:27:29 +10:00
1 parent 9c0b2d2f5c
commit 2a32a86a6c
26 files changed
+791 -668

No files matched your search

+4
View File
@@ -725,6 +725,10 @@ func (n *TypeExpr) IsRefined() bool {
return n.id0 == 0 && n.id1 == t.IDBase && n.id2.IsNumType() && (n.lhs != nil || n.mhs != nil)
}
func (n *TypeExpr) IsStatus() bool {
return n.id0 == 0 && n.id1 == t.IDBase && n.id2 == t.IDStatus
}
func (n *TypeExpr) IsArrayType() bool {
return n.id0 == t.IDArray
}