mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Add some ast.Expr.IsEtc methods
This commit is contained in:
1 parent
b645180357
commit
41e407a774
7 files changed
+58
-48
No files matched your search
@@ -45,8 +45,8 @@ func (g *gen) needDerivedVar(name t.ID) bool {
|
||||
switch p.Kind() {
|
||||
case a.KExpr:
|
||||
// Look for p matching "args.name.etc(etc)".
|
||||
recv, meth, args := p.AsExpr().IsMethodCall()
|
||||
if recv == nil {
|
||||
recv, meth, args, ok := p.AsExpr().IsMethodCall()
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
if recv.IsArgsDotFoo() == name {
|
||||
|
||||
Reference in new issue
Block a user