Improved performance
This commit is contained in:
parent
c67056d405
commit
270e7e27a0
11 changed files with 29 additions and 32 deletions
|
@ -1,7 +1,6 @@
|
|||
package scanner
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
|
@ -209,10 +208,6 @@ func (s *Scanner) scanFile(path string, pkg string) error {
|
|||
name := tokens[nameStart].Text(contents)
|
||||
body := tokens[bodyStart:i]
|
||||
|
||||
if pkg != "" {
|
||||
name = fmt.Sprintf("%s.%s", pkg, name)
|
||||
}
|
||||
|
||||
function := core.NewFunction(pkg, name, file, body)
|
||||
parameters := tokens[paramsStart:paramsEnd]
|
||||
count := 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue