Lines Matching defs:File
64 type File struct { struct
65 AST *ast.File // parsed AST
66 Comments []*ast.CommentGroup // comments from file
67 Package string // Package name
68 Preamble string // C preamble (doc comment on import "C")
69 Ref []*Ref // all references to C.xxx in AST
70 Calls []*Call // all calls to C.xxx in AST
71 ExpFunc []*ExpFunc // exported functions for this file
72 Name map[string]*Name // map from Go name to Name
73 NamePos map[*Name]token.Pos // map from Name to position of the first reference
74 NoCallbacks map[string]bool // C function names that with #cgo nocallback directive
75 NoEscapes map[string]bool // C function names that with #cgo noescape directive
76 Edit *edit.Buffer
79 func (f *File) offset(p token.Pos) int {