Added main prefix

This commit is contained in:
Eduard Urbach 2024-07-30 20:02:55 +02:00
parent e537e543cc
commit 6510166ae0
Signed by: eduard
GPG key ID: 49226B848C78F6C8
9 changed files with 34 additions and 20 deletions

View file

@ -198,7 +198,7 @@ func (s *Scanner) scanFile(path string, pkg string) error {
name = fmt.Sprintf("%s.%s", pkg, name)
}
function := core.NewFunction(name, file, body)
function := core.NewFunction(pkg, name, file, body)
parameters := tokens[paramsStart:paramsEnd]
count := 0