UNPKG

573 BTypeScriptView Raw
1import { Lang } from "./lang";
2import * as ast from "./ast";
3import * as parsed from "./parsedsyntax";
4export declare function restrictType(lang: Lang, syn: ast.Type): ast.Type;
5export declare function restrictExpression(lang: Lang, syn: parsed.Expression): ast.Expression;
6export declare function restrictLValue(lang: Lang, syn: parsed.Expression): ast.LValue;
7export declare function restrictStatement(lang: Lang, syn: parsed.Statement): ast.Statement;
8export declare function restrictDeclaration(lang: Lang, decl: parsed.Declaration | string): string | ast.Declaration;