()
| 18 | ) |
| 19 | |
| 20 | func init() { |
| 21 | scanner.NewNumValFn = func(a constant.Value, s string, b bool) interface{} { return tree.NewNumVal(a, s, b) } |
| 22 | scanner.NewPlaceholderFn = func(s string) (interface{}, error) { return tree.NewPlaceholder(s) } |
| 23 | parser.ParseDoBlockFn = func(options tree.DoBlockOptions) (tree.DoBlockBody, error) { |
| 24 | doBlockBody, err := makeDoStmt(options) |
| 25 | if err != nil { |
| 26 | return nil, err |
| 27 | } |
| 28 | return doBlockBody, nil |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | // Parser wraps a scanner, parser and other utilities present in the parser |
| 33 | // package. |
nothing calls this directly
no test coverage detected
searching dependent graphs…