Skip to content

Commit

Permalink
feat(compiler): add @ts-ignore comments to temporarily disable TS e…
Browse files Browse the repository at this point in the history
…rrors
  • Loading branch information
bytexenon committed Nov 19, 2024
1 parent 71f9af9 commit 05982b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/compiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,12 @@ export class LuaPrototype {

/* Compiler */
export class Compiler {
// @ts-ignore
private currentProto: LuaPrototype;
// @ts-ignore
private currentChunk: ASTNode;
private nextRegister: number; // next free register
// @ts-ignore
private numVars: number; // number of active variables

/* Constructor */
Expand All @@ -105,14 +108,17 @@ export class Compiler {
}

/* Stack Management */
// @ts-ignore
private allocateRegister(): number {
// eslint-disable-next-line no-plusplus
return this.nextRegister++;
}
// @ts-ignore
private freeRegister(): void {
// eslint-disable-next-line no-plusplus
this.nextRegister--;
}
// @ts-ignore
private freeRegisters(n: number): void {
this.nextRegister -= n;
}
Expand Down

0 comments on commit 05982b5

Please sign in to comment.