UNPKG

2.43 kBTypeScriptView Raw
1import { ContextualKeyword } from "../tokenizer/keywords";
2import { StopState } from "../traverser/expression";
3/** Parses a modifier matching one the given modifier names. */
4export declare function tsParseModifier(allowedModifiers: Array<ContextualKeyword>): ContextualKeyword | null;
5export declare function tsTryParseTypeParameters(): void;
6export declare function tsTryParseTypeAnnotation(): void;
7export declare function tsParseTypeAnnotation(): void;
8export declare function tsParseType(): void;
9export declare function tsParseNonConditionalType(): void;
10export declare function tsParseTypeAssertion(): void;
11export declare function tsTryParseJSXTypeArgument(): void;
12export declare function tsParseImportEqualsDeclaration(): void;
13export declare function tsIsDeclarationStart(): boolean;
14export declare function tsParseFunctionBodyAndFinish(functionStart: number, isGenerator: boolean, allowExpressionBody: boolean | undefined, funcContextId: number): void;
15export declare function tsParseSubscript(startPos: number, noCalls: boolean, stopState: StopState): void;
16export declare function tsStartParseNewArguments(): void;
17export declare function tsTryParseExport(): boolean;
18export declare function tsTryParseExportDefaultExpression(): boolean;
19export declare function tsTryParseStatementContent(): boolean;
20export declare function tsParseAccessModifier(): void;
21export declare function tsTryParseClassMemberWithIsStatic(isStatic: boolean, classContextId: number): boolean;
22export declare function tsParseIdentifierStatement(contextualKeyword: ContextualKeyword): void;
23export declare function tsParseExportDeclaration(): void;
24export declare function tsAfterParseClassSuper(hasSuper: boolean): void;
25export declare function tsStartParseObjPropValue(): void;
26export declare function tsStartParseFunctionParams(): void;
27export declare function tsAfterParseVarHead(): void;
28export declare function tsStartParseAsyncArrowFromCallExpression(): void;
29export declare function tsParseMaybeAssign(noIn: boolean, isWithinParens: boolean): boolean;
30export declare function tsParseMaybeAssignWithJSX(noIn: boolean, isWithinParens: boolean): boolean;
31export declare function tsParseMaybeAssignWithoutJSX(noIn: boolean, isWithinParens: boolean): boolean;
32export declare function tsParseArrow(): boolean;
33export declare function tsParseAssignableListItemTypes(): void;
34export declare function tsParseMaybeDecoratorArguments(): void;