Skip to content

Commit d793e71

Browse files
authored
Merge pull request #23 from abeaumont/fix/make-it-build-again
driver: Update to reflect sdk name changes
2 parents 2dc123b + 18f7cea commit d793e71

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

driver/main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ var build string
1111

1212
func main() {
1313
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,
1818
}
1919
d.Exec()
2020
}

driver/normalizer/parser.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ var ToNoder = &native.ObjectToNoder{
1212
TokenKeys: map[string]bool{"text": true},
1313
}
1414

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) {
1817
parser, err := native.ExecParser(ToNoder, opts.NativeBin)
1918
if err != nil {
2019
return nil, err

0 commit comments

Comments
 (0)