File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ var build string
11
11
12
12
func main () {
13
13
d := driver.Driver {
14
- Version : version ,
15
- Build : build ,
16
- UASTParserBuilder : normalizer .UASTParserBuilder ,
17
- Annotate : normalizer .AnnotationRules ,
14
+ Version : version ,
15
+ Build : build ,
16
+ ParserBuilder : normalizer .ParserBuilder ,
17
+ Annotate : normalizer .AnnotationRules ,
18
18
}
19
19
d .Exec ()
20
20
}
Original file line number Diff line number Diff line change @@ -12,9 +12,8 @@ var ToNoder = &native.ObjectToNoder{
12
12
TokenKeys : map [string ]bool {"text" : true },
13
13
}
14
14
15
- // ASTParserBuilder creates a parser that transform source code files
16
- // into *uast.Node.
17
- func UASTParserBuilder (opts driver.UASTParserOptions ) (driver.UASTParser , error ) {
15
+ // Creates a parser that transform source code files into *uast.Node.
16
+ func ParserBuilder (opts driver.ParserOptions ) (driver.Parser , error ) {
18
17
parser , err := native .ExecParser (ToNoder , opts .NativeBin )
19
18
if err != nil {
20
19
return nil , err
You can’t perform that action at this time.
0 commit comments