Home | History | Annotate | Download | only in cgo

Lines Matching refs:ast1

21 	ast1, err := parser.ParseFile(fset, name, nil, flags)
35 return ast1
58 // so we use ast1 to look for the doc comments on import "C"
61 ast1 := parse(name, parser.ParseComments)
64 f.Package = ast1.Name.Name
67 // In ast1, find the import "C" line and get any extra C preamble.
69 for _, decl := range ast1.Decls {
131 // The comments are only on ast1 but we need to
136 f.walk(ast1, "prog", (*File).saveExport)
139 f.Comments = ast1.Comments