Lines Matching defs:file

185 type file struct {  struct
186 pkg *pkg
187 f *ast.File
188 fset *token.FileSet
189 src []byte
190 filename string
193 func (f *file) isTest() bool { return strings.HasSuffix(f.filename, "_test.go") }
195 func (f *file) lint() {
221 func (f *file) errorf(n ast.Node, confidence float64, args ...interface{}) *Problem {
367 func (f *file) isMain() bool {
379 func (f *file) lintPackageComment() {
432 func (f *file) lintBlankImports() {
463 func (f *file) lintImports() {
483 func (f *file) lintExported() {
556 func (f *file) lintNames() {
814 func (f *file) lintTypeDoc(t *ast.TypeSpec, doc *ast.CommentGroup) {
847 func (f *file) lintFuncDoc(fn *ast.FuncDecl) {
887 …intValueSpecDoc(vs *ast.ValueSpec, gd *ast.GenDecl, genDeclMissingComments map[*ast.GenDecl]bool) {
937 func (f *file) checkStutter(id *ast.Ident, thing string) {
980 func (f *file) lintElses() {
1024 func (f *file) lintRanges() {
1055 func (f *file) lintErrorf() {
1096 func (f *file) lintErrors() {
1151 func (f *file) lintErrorStrings() {
1184 func (f *file) lintReceiverNames() {
1217 func (f *file) lintIncDec() {
1245 func (f *file) lintErrorReturn() {
1272 func (f *file) lintUnexportedReturn() {
1336 func (f *file) lintTimeNames() {
1372 func (f *file) lintContextKeyTypes() {
1385 func (f *file) checkContextKeyType(x *ast.CallExpr) {
1412 func (f *file) lintContextArgs() {
1432 func (f *file) containsComments(start, end token.Pos) bool {
1467 func (f *file) walk(fn func(ast.Node) bool) {
1471 func (f *file) render(x interface{}) string {
1479 func (f *file) debugRender(x interface{}) string {
1543 func (f *file) isUntypedConst(expr ast.Expr) (defType string, ok bool) {
1562 func (f *file) firstLineOf(node, match ast.Node) string {
1570 func (f *file) indentOf(node ast.Node) string {
1582 func (f *file) srcLineWithMatch(node ast.Node, pattern string) (m []string) {
1590 func (f *file) imports(importPath string) bool {