1 | export declare class StopState {
|
2 | stop: boolean;
|
3 | constructor(stop: boolean);
|
4 | }
|
5 | export 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 | */
|
13 | export declare function parseMaybeAssign(noIn?: boolean, isWithinParens?: boolean): boolean;
|
14 | export declare function baseParseMaybeAssign(noIn: boolean, isWithinParens: boolean): boolean;
|
15 | export declare function baseParseConditional(noIn: boolean): void;
|
16 | export declare function parseMaybeUnary(): boolean;
|
17 | export declare function parseExprSubscripts(): boolean;
|
18 | export declare function baseParseSubscripts(startPos: number, noCalls?: boolean): void;
|
19 | /** Set 'state.stop = true' to indicate that we should stop parsing subscripts. */
|
20 | export declare function baseParseSubscript(startPos: number, noCalls: boolean, stopState: StopState): void;
|
21 | export declare function atPossibleAsync(): boolean;
|
22 | export declare function parseCallExpressionArguments(): void;
|
23 | export declare function parseExprAtom(): boolean;
|
24 | export declare function parseLiteral(): void;
|
25 | export declare function parseParenExpression(): void;
|
26 | export declare function parseArrow(): boolean;
|
27 | export declare function parseTemplate(): void;
|
28 | export declare function parseObj(isPattern: boolean, isBlockScope: boolean): void;
|
29 | export declare function parsePropertyName(objectContextId: number): void;
|
30 | export declare function parseMethod(functionStart: number, isGenerator: boolean, isConstructor: boolean): void;
|
31 | export declare function parseArrowExpression(functionStart: number, startTokenIndex: number): void;
|
32 | export declare function parseFunctionBodyAndFinish(functionStart: number, isGenerator: boolean, allowExpressionBody?: boolean, funcContextId?: number): void;
|
33 | export declare function parseFunctionBody(functionStart: number, isGenerator: boolean, allowExpression: boolean, funcContextId?: number): void;
|
34 | export declare function parseIdentifier(): void;
|