Skip to content

Commit d99cb82

Browse files
committed
worker: change parser mode
1 parent b8518e6 commit d99cb82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyzer/check/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
// Check checks Go code and returns check result
1010
func Check(src string) (*Result, error) {
1111
fset := token.NewFileSet()
12-
_, err := parser.ParseFile(fset, "main.go", src, parser.AllErrors)
12+
_, err := parser.ParseFile(fset, "main.go", src, parser.DeclarationErrors)
1313
if err == nil {
1414
return &Result{HasErrors: false}, nil
1515
}

0 commit comments

Comments
 (0)