Added a check for unused imports

This commit is contained in:
Eduard Urbach 2024-07-31 11:55:21 +02:00
parent 9ea99c97c4
commit 2d905c1ac0
Signed by: eduard
GPG key ID: 49226B848C78F6C8
14 changed files with 138 additions and 31 deletions

11
src/build/fs/Import.go Normal file
View file

@ -0,0 +1,11 @@
package fs
import "git.akyoto.dev/cli/q/src/build/token"
// Import represents an import statement in a file.
type Import struct {
Path string
FullPath string
Position token.Position
Used bool
}