| | |
| | | startLine?: number; |
| | | |
| | | /** |
| | | * By default, the parsed code is treated as if it starts from line 1, column 0. |
| | | * You can provide a column number to alternatively start with. |
| | | * Useful for integration with other source tools. |
| | | */ |
| | | startColumn?: number; |
| | | |
| | | /** |
| | | * Array containing the plugins that you want to enable. |
| | | */ |
| | | plugins?: ParserPlugin[]; |
| | |
| | | | "classPrivateMethods" |
| | | | "classPrivateProperties" |
| | | | "classProperties" |
| | | | "classStaticBlock" |
| | | | "classStaticBlock" // Enabled by default |
| | | | "decimal" |
| | | | "decorators" |
| | | | "decorators-legacy" |
| | | | "decoratorAutoAccessors" |
| | | | "destructuringPrivate" |
| | | | "doExpressions" |
| | | | "dynamicImport" |
| | | | "estree" |
| | |
| | | | "pipelineOperator" |
| | | | "placeholders" |
| | | | "privateIn" // Enabled by default |
| | | | "regexpUnicodeSets" |
| | | | "throwExpressions" |
| | | | "topLevelAwait" |
| | | | "typescript" |
| | |
| | | |
| | | export interface PipelineOperatorPluginOptions { |
| | | proposal: "minimal" | "fsharp" | "hack" | "smart"; |
| | | topicToken?: "%" | "#"; |
| | | topicToken?: "%" | "#" | "@@" | "^^" | "^"; |
| | | } |
| | | |
| | | export interface RecordAndTuplePluginOptions { |
| | |
| | | |
| | | export interface FlowPluginOptions { |
| | | all?: boolean; |
| | | enums?: boolean; |
| | | } |
| | | |
| | | export interface TypeScriptPluginOptions { |
| | | dts?: boolean; |
| | | disallowAmbiguousJSXLike?: boolean; |
| | | } |
| | | |
| | | export const tokTypes: { |