Beispiel #1
0
func parseFile(filename string, summary *Summary) {
        if *ignoreTestFiles && isTestFile(filename) {
                return
        }
	parser := NewParser(filename, summary)
	parser.Parse()
}
Beispiel #2
0
// 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()
}