UNPKG

2.27 kBTypeScriptView Raw
1export declare class StopState {
2 stop: boolean;
3 constructor(stop: boolean);
4}
5export declare function parseExpression(noIn?: boolean): void;
6/**
7 * noIn is used when parsing a for loop so that we don't interpret a following "in" as the binary
8 * operatior.
9 * isWithinParens is used to indicate that we're parsing something that might be a comma expression
10 * or might be an arrow function or might be a Flow type assertion (which requires explicit parens).
11 * In these cases, we should allow : and ?: after the initial "left" part.
12 */
13export declare function parseMaybeAssign(noIn?: boolean, isWithinParens?: boolean): boolean;
14export declare function baseParseMaybeAssign(noIn: boolean, isWithinParens: boolean): boolean;
15export declare function baseParseConditional(noIn: boolean): void;
16export declare function parseMaybeUnary(): boolean;
17export declare function parseExprSubscripts(): boolean;
18export declare function baseParseSubscripts(startPos: number, noCalls?: boolean): void;
19/** Set 'state.stop = true' to indicate that we should stop parsing subscripts. */
20export declare function baseParseSubscript(startPos: number, noCalls: boolean, stopState: StopState): void;
21export declare function atPossibleAsync(): boolean;
22export declare function parseCallExpressionArguments(): void;
23export declare function parseExprAtom(): boolean;
24export declare function parseLiteral(): void;
25export declare function parseParenExpression(): void;
26export declare function parseArrow(): boolean;
27export declare function parseTemplate(): void;
28export declare function parseObj(isPattern: boolean, isBlockScope: boolean): void;
29export declare function parsePropertyName(objectContextId: number): void;
30export declare function parseMethod(functionStart: number, isGenerator: boolean, isConstructor: boolean): void;
31export declare function parseArrowExpression(functionStart: number, startTokenIndex: number): void;
32export declare function parseFunctionBodyAndFinish(functionStart: number, isGenerator: boolean, allowExpressionBody?: boolean, funcContextId?: number): void;
33export declare function parseFunctionBody(functionStart: number, isGenerator: boolean, allowExpression: boolean, funcContextId?: number): void;
34export declare function parseIdentifier(): void;