Added errors package
All checks were successful
/ test (push) Successful in 13s

This commit is contained in:
Eduard Urbach 2025-06-19 16:56:30 +02:00
parent 1405d2b8b1
commit b7fdd56a8b
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
6 changed files with 172 additions and 0 deletions

View file

@ -8,6 +8,7 @@ import (
"git.urbach.dev/cli/q/src/build"
"git.urbach.dev/cli/q/src/fs"
"git.urbach.dev/cli/q/src/token"
)
// scanner is used to scan files before the actual compilation step.
@ -130,10 +131,13 @@ func (s *scanner) scanFile(path string, pkg string) error {
return err
}
tokens := token.Tokenize(contents)
file := &fs.File{
Path: path,
Package: pkg,
Bytes: contents,
Tokens: tokens,
}
s.files <- file