Skip to content

Commit

Permalink
during parsing, don't need deprecated objects in ast
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjit-bhat committed Jun 1, 2024
1 parent eeb6fc4 commit 24c3348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func translateErrorFile(assert *assert.Assertions, filePath string) *errorTestRe
pkgName := "example"
ctx := goose.NewCtx(pkgName, goose.Config{})
fset := ctx.Fset
f, err := parser.ParseFile(fset, filePath, nil, parser.ParseComments)
f, err := parser.ParseFile(fset, filePath, nil, parser.ParseComments|parser.SkipObjectResolution)
if err != nil {
fmt.Fprintln(os.Stderr, err)
assert.FailNowf("test code does not parse", "file: %s", filePath)
Expand Down

0 comments on commit 24c3348

Please sign in to comment.