Lines Matching refs:decl
68 case *ast.Decl:
92 case *[]ast.Decl:
177 walkBeforeAfter(&n.Decl, before, after)
262 case []ast.Decl:
580 // Find an import decl to add to.
587 for i, decl := range f.Decls {
588 gen, ok := decl.(*ast.GenDecl)
610 // If no import decl found, add one after the last import.
620 // Ensure the import decl has parentheses, if needed.
649 for i, decl := range f.Decls {
650 gen, ok := decl.(*ast.GenDecl)
666 // If this was the last import spec in this decl,
667 // delete the decl, too.