mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Rename ast.Node methods from Foo to AsFoo
This commit is contained in:
1 parent
12773ce74a
commit
ccb78f5db7
21 files changed
+461
-458
No files matched your search
+2
-2
@@ -248,7 +248,7 @@ var reasons = [...]struct {
|
||||
if xc0 == nil {
|
||||
return errFailed
|
||||
}
|
||||
t1 := a.NewExpr(0, t.IDXBinaryPlus, 0, 0, xb0.Node(), nil, xc0.Node(), nil)
|
||||
t1 := a.NewExpr(0, t.IDXBinaryPlus, 0, 0, xb0.AsNode(), nil, xc0.AsNode(), nil)
|
||||
if err := proveReasonRequirement(q, t.IDXBinaryLessThan, xa, t1); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -273,7 +273,7 @@ var reasons = [...]struct {
|
||||
return errFailed
|
||||
}
|
||||
// a <= (c - b)
|
||||
t1 := a.NewExpr(0, t.IDXBinaryMinus, 0, 0, xc.Node(), nil, xb.Node(), nil)
|
||||
t1 := a.NewExpr(0, t.IDXBinaryMinus, 0, 0, xc.AsNode(), nil, xb.AsNode(), nil)
|
||||
if err := proveReasonRequirement(q, t.IDXBinaryLessEq, xa, t1); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user