/** * Checking a statement: what it declares, what it updates, and what it says * about the bars it runs on. * * The two rules of `language.md` 12.2 are the whole of scoping and they are * both here. A name is declared by its first assignment in a scope, and an * assignment to a name an enclosing scope already holds updates that name * rather than making a second one. Everything else about names follows from * those two: there is no shadowing to allow because there is no syntax that * could ask for it, and a name assigned inside a block and read outside it is * OS2001 rather than an absent value. */ import type { Block, Statement, TypeAnnotation } from '../ast/index.js'; import type { Checker, Placement } from './checker.js'; import type { Type } from './types.js'; /** Runs a block's statements in a scope of their own, `language.md` 12.1. */ export declare function checkBlock(checker: Checker, block: Block, placement: Placement): void; /** A run of statements, with the one thing that is about the run: reachability. */ export declare function checkStatements(checker: Checker, statements: readonly { readonly kind: string; }[], placement: Placement): void; export declare function checkStatement(checker: Checker, statement: Statement, placement: Placement): void; /** A type as written, `language.md` 5.1 and 14.1. OS2016 and OS2019 live here. */ export declare function resolveAnnotation(checker: Checker, annotation: TypeAnnotation): Type; //# sourceMappingURL=statements.d.ts.map