mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 17:05:03 +01:00
Detect unused variables
This commit is contained in:
parent
f164aad631
commit
9270f52e6b
33 changed files with 340 additions and 63 deletions
|
|
@ -104,7 +104,7 @@ export const loadPkg: PkgLoader = (
|
|||
return dummyErrorPkg(
|
||||
pkgId,
|
||||
name,
|
||||
gcx.error.emit(
|
||||
gcx.error.emitError(
|
||||
new CompilerError(`cycle detected loading extern module ${name}`, span),
|
||||
),
|
||||
);
|
||||
|
|
@ -118,7 +118,7 @@ export const loadPkg: PkgLoader = (
|
|||
|
||||
const file = loadModuleFile(".", name, span);
|
||||
if (!file.ok) {
|
||||
return dummyErrorPkg(pkgId, name, gcx.error.emit(file.err));
|
||||
return dummyErrorPkg(pkgId, name, gcx.error.emitError(file.err));
|
||||
}
|
||||
|
||||
const tokens = tokenize(gcx.error, file.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue