Permalink
Browse files

Add missing Len method of ImportSpecs

  • Loading branch information...
jamesgarfield committed Jun 29, 2016
1 parent 9b02826 commit 7d16addab4f35e59d9e8b6086440bcf29e2922c3
Showing with 7 additions and 1 deletion.
  1. +7 −1 goast/context.go
@@ -6,10 +6,11 @@ import (
"go/parser"
"go/printer"
"go/token"
"golang.org/x/tools/go/ast/astutil"
"path"
"path/filepath"
"strconv"
"golang.org/x/tools/go/ast/astutil"
)
//go:generate goast write impl --prefix=goast_ goast.net/x/iter
@@ -36,6 +37,11 @@ func (c *Context) Clone() (clone *Context, err error) {
}
type ImportSpecs []*ast.ImportSpec
func (s ImportSpecs) Len() int {
return len(s)
}
type funcDecls []*ast.FuncDecl
type fileDecls []ast.Decl

0 comments on commit 7d16add

Please sign in to comment.