mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Unexport check.TypeExprFoo variables.
This commit is contained in:
1 parent
1c62391db3
commit
321ebf8617
4 files changed
+40
-33
No files matched your search
+9
-1
@@ -470,13 +470,21 @@ func (n *TypeExpr) Max() *Expr { return n.mhs.Expr() }
|
||||
func (n *TypeExpr) Inner() *TypeExpr { return n.rhs.TypeExpr() }
|
||||
|
||||
func (n *TypeExpr) IsBool() bool {
|
||||
return n.id0 == 0 && n.id1.Key() == t.KeyBool && n.lhs == nil && n.mhs == nil && n.rhs == nil
|
||||
return n.id0 == 0 && n.id1.Key() == t.KeyBool
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsIdeal() bool {
|
||||
return n.id0 == 0 && n.id1.Key() == t.KeyDoubleZ
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsNumType() bool {
|
||||
return n.id0 == 0 && n.id1.IsNumType()
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsNumTypeOrIdeal() bool {
|
||||
return n.id0 == 0 && (n.id1.IsNumType() || n.id1.Key() == t.KeyDoubleZ)
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsRefined() bool {
|
||||
return t.Key(n.id0>>t.KeyShift) != t.KeyOpenBracket && (n.lhs != nil || n.mhs != nil)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user