Skip to content

Commit baa0a61

Browse files
committed
feat: add missing jsx_ methods to AcornJsxParser
1 parent dda96cc commit baa0a61

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

index.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,23 @@ export class AcornJsxParser extends acorn.Parser {
2626
tokContexts: typeof tokContexts
2727
};
2828

29+
jsx_readToken(): string;
30+
jsx_readNewLine(normalizeCRLF: boolean): void;
2931
jsx_readString(quote: number): void;
32+
jsx_readEntity(): string;
33+
jsx_readWord(): void;
34+
jsx_parseIdentifier(): acorn.Node;
35+
jsx_parseNamespacedName(): acorn.Node;
36+
jsx_parseElementName(): acorn.Node | string;
37+
jsx_parseAttributeValue(): acorn.Node;
38+
jsx_parseEmptyExpression(): acorn.Node;
39+
jsx_parseExpressionContainer(): acorn.Node;
40+
jsx_parseAttribute(): acorn.Node;
41+
jsx_parseOpeningElementAt(startPos: number, startLoc?: acorn.SourceLocation): acorn.Node;
42+
jsx_parseClosingElementAt(startPos: number, startLoc?: acorn.SourceLocation): acorn.Node;
43+
jsx_parseElementAt(startPos: number, startLoc?: acorn.SourceLocation): acorn.Node;
44+
jsx_parseText(): acorn.Node;
45+
jsx_parseElement(): acorn.Node;
3046
}
3147

3248
export as namespace jsx;

0 commit comments

Comments
 (0)