UNPKG

@composita/compiler

Version:

Composita language compiler.

13 lines 537 B
import { SymbolTable, ProgramScopeSymbol } from '../symbols/symbols'; import { SymbolConstruction } from './symbol-construction'; import { SymbolFix } from './symbol-fix'; export class Checker { check(uri, ast) { const symbolTable = new SymbolTable(); const programScope = new ProgramScopeSymbol(symbolTable.globalScope, uri); SymbolConstruction.run(symbolTable, ast, programScope); SymbolFix.run(symbolTable, ast, programScope); return symbolTable; } } //# sourceMappingURL=checker.js.map