[refactoring] scanner.Lexer.withHiddenTokens
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user