Added scope package

This commit is contained in:
Eduard Urbach 2024-07-20 23:20:23 +02:00
parent fd66296826
commit 8e725da9c6
Signed by: eduard
GPG key ID: 49226B848C78F6C8
37 changed files with 416 additions and 371 deletions

View file

@ -12,6 +12,7 @@ import (
"git.akyoto.dev/cli/q/src/build/expression"
"git.akyoto.dev/cli/q/src/build/fs"
"git.akyoto.dev/cli/q/src/build/keyword"
"git.akyoto.dev/cli/q/src/build/scope"
"git.akyoto.dev/cli/q/src/build/token"
)
@ -214,7 +215,7 @@ func (s *Scanner) scanFile(path string, pkg string) error {
return errors.New(&errors.UnusedVariable{Name: name}, file, tokens[0].Position)
}
variable := &core.Variable{
variable := &scope.Variable{
Name: name,
Register: register,
Alive: uses,