mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Add tokens
This commit is contained in:
1 parent
7a142168be
commit
737e31ff3a
17 files changed
+498
-36
No files matched your search
+13
-1
@@ -700,7 +700,19 @@ func (n *TypeExpr) IsIdeal() bool {
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsIOType() bool {
|
||||
return n.id0 == 0 && n.id1 == t.IDBase && (n.id2 == t.IDIOReader || n.id2 == t.IDIOWriter)
|
||||
return n.id0 == 0 && n.id1 == t.IDBase &&
|
||||
(n.id2 == t.IDIOReader || n.id2 == t.IDIOWriter)
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsTokenType() bool {
|
||||
return n.id0 == 0 && n.id1 == t.IDBase &&
|
||||
(n.id2 == t.IDTokenReader || n.id2 == t.IDTokenWriter)
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsIOTokenType() bool {
|
||||
return n.id0 == 0 && n.id1 == t.IDBase &&
|
||||
(n.id2 == t.IDIOReader || n.id2 == t.IDIOWriter ||
|
||||
n.id2 == t.IDTokenReader || n.id2 == t.IDTokenWriter)
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsNullptr() bool {
|
||||
|
||||
Reference in new issue
Block a user