mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Have reset! LEAVE_INTERNAL_BUFFERS_UNINITIALIZED
This commit is contained in:
1 parent
f0c2a40d66
commit
07c053af6f
3 files changed
+29
-12
No files matched your search
+9
-4
@@ -386,10 +386,15 @@ func (n *Expr) SetMBounds(x interval.IntRange) { n.mBounds = x }
|
||||
func (n *Expr) SetMType(x *TypeExpr) { n.mType = x }
|
||||
|
||||
func (n *Expr) IsArgsDotFoo() (foo t.ID) {
|
||||
if n.id0 == t.IDDot {
|
||||
if (n.lhs.id0 == 0) && (n.lhs.id2 == t.IDArgs) {
|
||||
return n.id2
|
||||
}
|
||||
if (n.id0 == t.IDDot) && (n.lhs.id0 == 0) && (n.lhs.id2 == t.IDArgs) {
|
||||
return n.id2
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (n *Expr) IsThisDotFoo() (foo t.ID) {
|
||||
if (n.id0 == t.IDDot) && (n.lhs.id0 == 0) && (n.lhs.id2 == t.IDThis) {
|
||||
return n.id2
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user