UNPKG

@composita/compiler

Version:

Composita language compiler.

17 lines 685 B
import { VariableListRegisterVisitor } from './register-variable-list'; import { FixStatementNodeVisitor } from './fix-statement-node'; export class SymbolFix { constructor(symbolTable, programScope) { this.symbolTable = symbolTable; this.programScope = programScope; } static run(symbolTable, program, scope) { const construction = new SymbolFix(symbolTable, scope); construction.fix(program); } fix(node) { node.accept(new FixStatementNodeVisitor(this.symbolTable, this.programScope)); node.accept(new VariableListRegisterVisitor(this.symbolTable, this.programScope)); } } //# sourceMappingURL=symbol-fix.js.map