func parseFile(filename string, summary *Summary) { if *ignoreTestFiles && isTestFile(filename) { return } parser := NewParser(filename, summary) parser.Parse() }
// parseAST walks the AST represented by the interface we wish to generate an implementation for. // Returns ParseResult which contains request and response implementation details. func parseAST(file *ast.File, pkg string) *parse.ParseResult { parser := parse.NewParser(file, pkg) return parser.Parse() }