[refactoring] scanner.Lexer.withHiddenTokens

This commit is contained in:
Vadym Slizov
2020-05-18 21:15:07 +03:00
parent 291dc7e884
commit d9a7d20e73
16 changed files with 1394 additions and 1399 deletions

View File

@@ -108,15 +108,11 @@ func parserWorker(fileCh <-chan *file, r chan<- result) {
return
}
parserWorker, err := parser.NewParser(f.content, phpVersion)
parserWorker, err := parser.NewParser(f.content, phpVersion, *withFreeFloating)
if err != nil {
panic(err.Error())
}
if *withFreeFloating {
parserWorker.WithTokens()
}
parserWorker.Parse()
r <- result{path: f.path, parser: parserWorker}