/** * The checker, from a syntax tree to a checked one. * * The order the passes run in is the order the language asks for. The header is * read first, because whether a file is a strategy and whether it acts on a * moving bar are facts every later rule consults, including about lines above * the declaration. Declarations of `fn` are collected next, because a function * may be called before the line it is written on. Then the file runs top to * bottom, which is the order a bar runs in and the order a name has to be * assigned before it is read. * * What is left over is the small set of things that can only be known once * everything has been seen: whether a name was ever read, whether an empty * array literal ever received an element, whether two columns were given one * title, whether a tag a `close` names is one this file can place, and which * names need a series register rather than a slot. */ import type { Script } from '../ast/index.js'; import type { DiagnosticSink } from '../diagnostics/index.js'; import type { SourceFile } from '../source/index.js'; import type { CheckedScript } from './checked.js'; export declare function check(file: SourceFile, script: Script, sink: DiagnosticSink): CheckedScript; //# sourceMappingURL=check.d.ts.map