diff options
Diffstat (limited to 'Godeps/_workspace/src/golang.org/x/tools/go/ast/astutil/enclosing.go')
-rw-r--r-- | Godeps/_workspace/src/golang.org/x/tools/go/ast/astutil/enclosing.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Godeps/_workspace/src/golang.org/x/tools/go/ast/astutil/enclosing.go b/Godeps/_workspace/src/golang.org/x/tools/go/ast/astutil/enclosing.go index 340c9e6cd..6b7052b89 100644 --- a/Godeps/_workspace/src/golang.org/x/tools/go/ast/astutil/enclosing.go +++ b/Godeps/_workspace/src/golang.org/x/tools/go/ast/astutil/enclosing.go @@ -509,7 +509,10 @@ func NodeDescription(n ast.Node) string { return "fall-through statement" } case *ast.CallExpr: - return "function call (or conversion)" + if len(n.Args) == 1 && !n.Ellipsis.IsValid() { + return "function call (or conversion)" + } + return "function call" case *ast.CaseClause: return "case clause" case *ast.ChanType: |