Home | History | Annotate | Download | only in cgo

Lines Matching defs:File

3 // license that can be found in the LICENSE file.
50 // A File collects information about a single Go input file.
51 type File struct {
52 AST *ast.File // parsed AST
53 Comments []*ast.CommentGroup // comments from file
58 ExpFunc []*ExpFunc // exported functions for this file
64 func (f *File) offset(p token.Pos) int {
118 // Such functions are identified in the Go input file
150 fmt.Fprint(os.Stderr, "usage: cgo -- [compiler options] file.go ...\n")
189 var dynobj = flag.String("dynimport", "", "if non-empty, print dynamic import data for that file")
190 var dynout = flag.String("dynout", "", "write -dynimport output to this file")
197 var godefs = flag.Bool("godefs", false, "for bootstrap: write Go definitions for C file to standard output")
241 // Find first arg that looks like a go file and assume everything before
278 fs := make([]*File, len(goFiles))
292 f := new(File)
378 func (p *Package) Record(f *File) {