Implemented package specific structs

This commit is contained in:
2025-02-08 16:06:39 +01:00
parent 91bafc0867
commit 97cdcbd1cb
15 changed files with 121 additions and 78 deletions

View File

@ -10,11 +10,11 @@ import (
)
// Scan scans the list of files.
func Scan(files []string) (<-chan *fs.File, <-chan *core.Function, <-chan types.Type, <-chan error) {
func Scan(files []string) (<-chan *fs.File, <-chan *core.Function, <-chan *types.Struct, <-chan error) {
scanner := Scanner{
files: make(chan *fs.File),
functions: make(chan *core.Function),
types: make(chan types.Type),
structs: make(chan *types.Struct),
errors: make(chan error),
}
@ -24,9 +24,9 @@ func Scan(files []string) (<-chan *fs.File, <-chan *core.Function, <-chan types.
scanner.group.Wait()
close(scanner.files)
close(scanner.functions)
close(scanner.types)
close(scanner.structs)
close(scanner.errors)
}()
return scanner.files, scanner.functions, scanner.types, scanner.errors
return scanner.files, scanner.functions, scanner.structs, scanner.errors
}