mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
loader: skip object resolution
This is deprecated, see: https://pkg.go.dev/go/ast#Object Removing it might speed up TinyGo a little bit.
This commit is contained in:
+1
-1
@@ -485,7 +485,7 @@ func (p *Package) parseFiles() ([]*ast.File, error) {
|
||||
if !filepath.IsAbs(file) {
|
||||
file = filepath.Join(p.Dir, file)
|
||||
}
|
||||
f, err := p.parseFile(file, parser.ParseComments)
|
||||
f, err := p.parseFile(file, parser.ParseComments|parser.SkipObjectResolution)
|
||||
if err != nil {
|
||||
fileErrs = append(fileErrs, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user