LYR-RES0008
a module header
A file begins with a module header that names a path: module tools.gen;.
Explanation
A module is named by its file's path, and nothing else. A header that said the name again could only agree with the path or contradict it, so it is gone.
Remove the header; move the file to the path the module should have.
Wrong
module tools.gen;
fn main(): void {
}
Right
fn main(): void {
}