tsc-ts 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/tsc-ts.js +70 -1
- package/dist/api/compiler/ast-utilities.d.ts +19 -1
- package/dist/api/compiler/ast-utilities.js +180 -95
- package/dist/api/compiler/ast.d.ts +22 -15
- package/dist/api/compiler/ast.js +1026 -995
- package/dist/api/compiler/astnav.js +15 -15
- package/dist/api/compiler/binder-utilities.js +186 -186
- package/dist/api/compiler/binder.js +290 -263
- package/dist/api/compiler/character-codes.js +2 -2
- package/dist/api/compiler/checker-calls.js +178 -124
- package/dist/api/compiler/checker-classes.d.ts +14 -3
- package/dist/api/compiler/checker-classes.js +134 -90
- package/dist/api/compiler/checker-contextual.js +64 -61
- package/dist/api/compiler/checker-declaration-order.js +79 -79
- package/dist/api/compiler/checker-declarations.d.ts +1 -0
- package/dist/api/compiler/checker-declarations.js +160 -136
- package/dist/api/compiler/checker-declared-types.js +67 -65
- package/dist/api/compiler/checker-decorators.js +77 -77
- package/dist/api/compiler/checker-deprecation.d.ts +8 -3
- package/dist/api/compiler/checker-deprecation.js +76 -55
- package/dist/api/compiler/checker-destructuring.js +47 -45
- package/dist/api/compiler/checker-elaboration.js +24 -24
- package/dist/api/compiler/checker-emit-helpers.js +4 -4
- package/dist/api/compiler/checker-emit-resolver.d.ts +4 -2
- package/dist/api/compiler/checker-emit-resolver.js +25 -13
- package/dist/api/compiler/checker-evaluator.js +9 -9
- package/dist/api/compiler/checker-expressions.js +244 -211
- package/dist/api/compiler/checker-functions.js +113 -107
- package/dist/api/compiler/checker-generated-code.d.ts +0 -11
- package/dist/api/compiler/checker-generated-code.js +28 -52
- package/dist/api/compiler/checker-grammar.d.ts +1 -0
- package/dist/api/compiler/checker-grammar.js +472 -440
- package/dist/api/compiler/checker-heritage.js +91 -93
- package/dist/api/compiler/checker-inference.d.ts +77 -5
- package/dist/api/compiler/checker-inference.js +487 -107
- package/dist/api/compiler/checker-iteration.d.ts +0 -10
- package/dist/api/compiler/checker-iteration.js +35 -52
- package/dist/api/compiler/checker-javascript.js +14 -14
- package/dist/api/compiler/checker-jsdoc.d.ts +8 -10
- package/dist/api/compiler/checker-jsdoc.js +67 -58
- package/dist/api/compiler/checker-jsx.js +105 -88
- package/dist/api/compiler/checker-members.d.ts +9 -2
- package/dist/api/compiler/checker-members.js +212 -75
- package/dist/api/compiler/checker-modules.d.ts +15 -6
- package/dist/api/compiler/checker-modules.js +469 -309
- package/dist/api/compiler/checker-narrowing.js +273 -189
- package/dist/api/compiler/checker-object-literals.js +25 -22
- package/dist/api/compiler/checker-operators.js +126 -118
- package/dist/api/compiler/checker-overloads.js +27 -27
- package/dist/api/compiler/checker-property-access.js +59 -55
- package/dist/api/compiler/checker-services.d.ts +1 -0
- package/dist/api/compiler/checker-services.js +222 -210
- package/dist/api/compiler/checker-signatures.js +65 -49
- package/dist/api/compiler/checker-source-file.d.ts +5 -0
- package/dist/api/compiler/checker-source-file.js +154 -130
- package/dist/api/compiler/checker-statements.js +33 -32
- package/dist/api/compiler/checker-super.js +50 -50
- package/dist/api/compiler/checker-symbol-types.js +109 -93
- package/dist/api/compiler/checker-symbols.d.ts +13 -1
- package/dist/api/compiler/checker-symbols.js +264 -149
- package/dist/api/compiler/checker-type-factory.d.ts +5 -0
- package/dist/api/compiler/checker-type-factory.js +145 -36
- package/dist/api/compiler/checker-type-nodes.d.ts +1 -0
- package/dist/api/compiler/checker-type-nodes.js +179 -141
- package/dist/api/compiler/checker-type-operators.d.ts +2 -0
- package/dist/api/compiler/checker-type-operators.js +110 -63
- package/dist/api/compiler/checker-types.d.ts +80 -3
- package/dist/api/compiler/checker-types.js +121 -2
- package/dist/api/compiler/checker-unused.js +114 -118
- package/dist/api/compiler/checker-utilities.js +11 -11
- package/dist/api/compiler/checker.d.ts +104 -31
- package/dist/api/compiler/checker.js +181 -33
- package/dist/api/compiler/command-line.d.ts +1 -3
- package/dist/api/compiler/command-line.js +47 -44
- package/dist/api/compiler/compile-program.d.ts +42 -3
- package/dist/api/compiler/compile-program.js +139 -27
- package/dist/api/compiler/diagnostic-messages.d.ts +1849 -1774
- package/dist/api/compiler/diagnostic-messages.js +128 -122
- package/dist/api/compiler/diagnostics.d.ts +22 -0
- package/dist/api/compiler/diagnostics.js +93 -11
- package/dist/api/compiler/emitter.d.ts +7 -1
- package/dist/api/compiler/emitter.js +53 -11
- package/dist/api/compiler/file-include.d.ts +2 -1
- package/dist/api/compiler/file-include.js +11 -7
- package/dist/api/compiler/file-loader.d.ts +21 -1
- package/dist/api/compiler/file-loader.js +201 -48
- package/dist/api/compiler/instantiation.d.ts +7 -0
- package/dist/api/compiler/instantiation.js +101 -49
- package/dist/api/compiler/jsdoc.js +23 -23
- package/dist/api/compiler/link-tables.d.ts +48 -18
- package/dist/api/compiler/link-tables.js +80 -37
- package/dist/api/compiler/locales/cs-CZ.d.ts +1 -1
- package/dist/api/compiler/locales/cs-CZ.js +1 -1
- package/dist/api/compiler/locales/de-DE.d.ts +1 -1
- package/dist/api/compiler/locales/de-DE.js +1 -1
- package/dist/api/compiler/locales/es-ES.d.ts +1 -1
- package/dist/api/compiler/locales/es-ES.js +1 -1
- package/dist/api/compiler/locales/fr-FR.d.ts +1 -1
- package/dist/api/compiler/locales/fr-FR.js +1 -1
- package/dist/api/compiler/locales/it-IT.d.ts +1 -1
- package/dist/api/compiler/locales/it-IT.js +1 -1
- package/dist/api/compiler/locales/ja-JP.d.ts +1 -1
- package/dist/api/compiler/locales/ja-JP.js +1 -1
- package/dist/api/compiler/locales/ko-KR.d.ts +1 -1
- package/dist/api/compiler/locales/ko-KR.js +1 -1
- package/dist/api/compiler/locales/pl-PL.d.ts +1 -1
- package/dist/api/compiler/locales/pl-PL.js +1 -1
- package/dist/api/compiler/locales/pt-BR.d.ts +1 -1
- package/dist/api/compiler/locales/pt-BR.js +1 -1
- package/dist/api/compiler/locales/ru-RU.d.ts +1 -1
- package/dist/api/compiler/locales/ru-RU.js +1 -1
- package/dist/api/compiler/locales/tr-TR.d.ts +1 -1
- package/dist/api/compiler/locales/tr-TR.js +1 -1
- package/dist/api/compiler/locales/zh-CN.d.ts +1 -1
- package/dist/api/compiler/locales/zh-CN.js +1 -1
- package/dist/api/compiler/locales/zh-TW.d.ts +1 -1
- package/dist/api/compiler/locales/zh-TW.js +1 -1
- package/dist/api/compiler/module-resolution-types.js +6 -6
- package/dist/api/compiler/module-resolution.d.ts +10 -1
- package/dist/api/compiler/module-resolution.js +115 -84
- package/dist/api/compiler/module-specifiers.d.ts +15 -0
- package/dist/api/compiler/module-specifiers.js +24 -18
- package/dist/api/compiler/name-resolver.js +74 -65
- package/dist/api/compiler/node-builder-names.d.ts +11 -3
- package/dist/api/compiler/node-builder-names.js +210 -90
- package/dist/api/compiler/node-builder-pseudo.js +29 -31
- package/dist/api/compiler/node-builder-reuse.js +23 -22
- package/dist/api/compiler/node-builder.d.ts +18 -1
- package/dist/api/compiler/node-builder.js +191 -102
- package/dist/api/compiler/option-declarations.d.ts +2 -6
- package/dist/api/compiler/option-declarations.js +315 -375
- package/dist/api/compiler/options.d.ts +15 -33
- package/dist/api/compiler/options.js +21 -54
- package/dist/api/compiler/output-paths.d.ts +4 -1
- package/dist/api/compiler/output-paths.js +6 -11
- package/dist/api/compiler/package-json.d.ts +3 -3
- package/dist/api/compiler/package-json.js +11 -10
- package/dist/api/compiler/parallel-parse.d.ts +3 -2
- package/dist/api/compiler/parallel-parse.js +17 -5
- package/dist/api/compiler/parser.d.ts +40 -19
- package/dist/api/compiler/parser.js +308 -216
- package/dist/api/compiler/path.d.ts +9 -0
- package/dist/api/compiler/path.js +20 -3
- package/dist/api/compiler/printer/emit-context.d.ts +5 -1
- package/dist/api/compiler/printer/emit-context.js +20 -1
- package/dist/api/compiler/printer/factory-base.d.ts +2 -2
- package/dist/api/compiler/printer/factory-base.js +7 -3
- package/dist/api/compiler/printer/factory.js +3 -1
- package/dist/api/compiler/printer/helpers.js +10 -1
- package/dist/api/compiler/printer/name-generator.d.ts +1 -1
- package/dist/api/compiler/printer/name-generator.js +35 -16
- package/dist/api/compiler/printer/printer.d.ts +49 -2
- package/dist/api/compiler/printer/printer.js +539 -293
- package/dist/api/compiler/printer/utilities.js +149 -147
- package/dist/api/compiler/program-checker.d.ts +12 -2
- package/dist/api/compiler/program-checker.js +88 -34
- package/dist/api/compiler/program-utilities.d.ts +3 -1
- package/dist/api/compiler/program-utilities.js +28 -15
- package/dist/api/compiler/program.d.ts +4 -6
- package/dist/api/compiler/program.js +74 -87
- package/dist/api/compiler/pseudo-bigint.d.ts +2 -0
- package/dist/api/compiler/pseudo-bigint.js +18 -0
- package/dist/api/compiler/regexp-checker.d.ts +1 -1
- package/dist/api/compiler/regexp-checker.js +93 -76
- package/dist/api/compiler/relations.d.ts +27 -4
- package/dist/api/compiler/relations.js +347 -180
- package/dist/api/compiler/reparser.js +60 -56
- package/dist/api/compiler/scanner.d.ts +19 -2
- package/dist/api/compiler/scanner.js +123 -108
- package/dist/api/compiler/shared-results.d.ts +463 -0
- package/dist/api/compiler/shared-results.js +2128 -0
- package/dist/api/compiler/sourcemap.js +2 -2
- package/dist/api/compiler/symbol-accessibility.js +87 -74
- package/dist/api/compiler/symbol.d.ts +23 -14
- package/dist/api/compiler/symbol.js +23 -11
- package/dist/api/compiler/syntax-kind.d.ts +198 -197
- package/dist/api/compiler/transformers/alias-references.js +247 -139
- package/dist/api/compiler/transformers/async-utilities.js +25 -25
- package/dist/api/compiler/transformers/async.d.ts +0 -1
- package/dist/api/compiler/transformers/async.js +64 -77
- package/dist/api/compiler/transformers/class-fields.d.ts +1 -0
- package/dist/api/compiler/transformers/class-fields.js +81 -78
- package/dist/api/compiler/transformers/commonjs-module.js +18 -15
- package/dist/api/compiler/transformers/const-enum-inliner.js +1 -1
- package/dist/api/compiler/transformers/declarations-diagnostics.js +247 -244
- package/dist/api/compiler/transformers/declarations-pseudo.js +100 -100
- package/dist/api/compiler/transformers/declarations-resolver.d.ts +0 -3
- package/dist/api/compiler/transformers/declarations-syntactic.d.ts +1 -2
- package/dist/api/compiler/transformers/declarations-syntactic.js +134 -156
- package/dist/api/compiler/transformers/declarations-tracker.js +18 -18
- package/dist/api/compiler/transformers/declarations.d.ts +4 -1
- package/dist/api/compiler/transformers/declarations.js +305 -238
- package/dist/api/compiler/transformers/decorator-metadata.d.ts +1 -1
- package/dist/api/compiler/transformers/decorator-metadata.js +53 -45
- package/dist/api/compiler/transformers/decorator-utilities.js +24 -24
- package/dist/api/compiler/transformers/destructuring.js +19 -18
- package/dist/api/compiler/transformers/emit-resolver.js +1 -1
- package/dist/api/compiler/transformers/es-decorators.js +55 -55
- package/dist/api/compiler/transformers/external-module-info.js +3 -3
- package/dist/api/compiler/transformers/for-await.js +25 -25
- package/dist/api/compiler/transformers/import-elision.js +14 -14
- package/dist/api/compiler/transformers/jsx.js +12 -12
- package/dist/api/compiler/transformers/legacy-decorators.js +17 -17
- package/dist/api/compiler/transformers/module.js +8 -8
- package/dist/api/compiler/transformers/named-evaluation.js +4 -4
- package/dist/api/compiler/transformers/object-rest-spread.js +20 -20
- package/dist/api/compiler/transformers/optional-chain.js +10 -10
- package/dist/api/compiler/transformers/reference-resolver.d.ts +12 -1
- package/dist/api/compiler/transformers/reference-resolver.js +131 -69
- package/dist/api/compiler/transformers/runtime-syntax.js +35 -31
- package/dist/api/compiler/transformers/subtree-facts.js +47 -47
- package/dist/api/compiler/transformers/syntax-facts.js +56 -58
- package/dist/api/compiler/transformers/type-eraser.js +73 -66
- package/dist/api/compiler/transformers/type-serialization.js +24 -24
- package/dist/api/compiler/transformers/using.js +12 -12
- package/dist/api/compiler/transformers/utilities.js +77 -77
- package/dist/api/compiler/transformers/visitor-base.js +172 -172
- package/dist/api/compiler/transformers/visitor-hooks.js +6 -2
- package/dist/api/compiler/tsconfig.d.ts +10 -2
- package/dist/api/compiler/tsconfig.js +136 -48
- package/dist/api/compiler/type-printer.js +40 -3
- package/dist/api/compiler/types.d.ts +2 -1
- package/dist/api/library/ast.generated.d.ts +42 -39
- package/dist/api/library/ast.generated.js +1 -1
- package/dist/api/library/compiler-options.generated.d.ts +111 -100
- package/dist/api/library/compiler-options.generated.js +1 -1
- package/dist/api/library/disk.js +12 -1
- package/dist/api/library/enums.generated.d.ts +206 -206
- package/dist/api/library/enums.generated.js +206 -206
- package/dist/api/library/nodes.js +26 -26
- package/package.json +9 -9
- package/src/compiler/ast-utilities.ts +99 -7
- package/src/compiler/ast.ts +58 -26
- package/src/compiler/binder.ts +39 -4
- package/src/compiler/character-codes.ts +2 -2
- package/src/compiler/checker-calls.ts +79 -9
- package/src/compiler/checker-classes.ts +78 -24
- package/src/compiler/checker-contextual.ts +6 -1
- package/src/compiler/checker-declarations.ts +31 -4
- package/src/compiler/checker-declared-types.ts +8 -5
- package/src/compiler/checker-decorators.ts +1 -1
- package/src/compiler/checker-deprecation.ts +29 -8
- package/src/compiler/checker-destructuring.ts +10 -3
- package/src/compiler/checker-emit-helpers.ts +1 -0
- package/src/compiler/checker-emit-resolver.ts +16 -6
- package/src/compiler/checker-expressions.ts +79 -46
- package/src/compiler/checker-functions.ts +21 -6
- package/src/compiler/checker-generated-code.ts +2 -22
- package/src/compiler/checker-grammar.ts +136 -62
- package/src/compiler/checker-heritage.ts +22 -21
- package/src/compiler/checker-inference.ts +514 -82
- package/src/compiler/checker-iteration.ts +18 -31
- package/src/compiler/checker-javascript.ts +1 -1
- package/src/compiler/checker-jsdoc.ts +50 -27
- package/src/compiler/checker-jsx.ts +26 -4
- package/src/compiler/checker-members.ts +200 -56
- package/src/compiler/checker-modules.ts +332 -65
- package/src/compiler/checker-narrowing.ts +98 -19
- package/src/compiler/checker-object-literals.ts +3 -0
- package/src/compiler/checker-operators.ts +11 -4
- package/src/compiler/checker-property-access.ts +7 -2
- package/src/compiler/checker-services.ts +39 -12
- package/src/compiler/checker-signatures.ts +15 -1
- package/src/compiler/checker-source-file.ts +39 -13
- package/src/compiler/checker-statements.ts +3 -2
- package/src/compiler/checker-symbol-types.ts +29 -6
- package/src/compiler/checker-symbols.ts +158 -15
- package/src/compiler/checker-type-factory.ts +124 -23
- package/src/compiler/checker-type-nodes.ts +46 -3
- package/src/compiler/checker-type-operators.ts +83 -26
- package/src/compiler/checker-types.ts +147 -4
- package/src/compiler/checker-unused.ts +9 -14
- package/src/compiler/checker.ts +203 -39
- package/src/compiler/command-line.ts +28 -28
- package/src/compiler/compile-program.ts +167 -27
- package/src/compiler/decoder.ts +13 -4
- package/src/compiler/diagnostic-messages.ts +1973 -1892
- package/src/compiler/diagnostics.ts +84 -3
- package/src/compiler/emitter.ts +57 -8
- package/src/compiler/encoder.ts +23 -8
- package/src/compiler/file-include.ts +9 -3
- package/src/compiler/file-loader.ts +197 -38
- package/src/compiler/help.ts +10 -14
- package/src/compiler/incremental.ts +165 -30
- package/src/compiler/init.ts +2 -7
- package/src/compiler/instantiation.ts +77 -22
- package/src/compiler/jsdoc.ts +3 -1
- package/src/compiler/link-tables.ts +82 -37
- package/src/compiler/locales/cs-CZ.ts +1 -1
- package/src/compiler/locales/de-DE.ts +1 -1
- package/src/compiler/locales/es-ES.ts +1 -1
- package/src/compiler/locales/fr-FR.ts +1 -1
- package/src/compiler/locales/it-IT.ts +1 -1
- package/src/compiler/locales/ja-JP.ts +1 -1
- package/src/compiler/locales/ko-KR.ts +1 -1
- package/src/compiler/locales/pl-PL.ts +1 -1
- package/src/compiler/locales/pt-BR.ts +1 -1
- package/src/compiler/locales/ru-RU.ts +1 -1
- package/src/compiler/locales/tr-TR.ts +1 -1
- package/src/compiler/locales/zh-CN.ts +1 -1
- package/src/compiler/locales/zh-TW.ts +1 -1
- package/src/compiler/module-resolution.ts +44 -8
- package/src/compiler/module-specifiers.ts +62 -20
- package/src/compiler/name-resolver.ts +9 -1
- package/src/compiler/node-builder-names.ts +236 -54
- package/src/compiler/node-builder-pseudo.ts +4 -7
- package/src/compiler/node-builder-reuse.ts +5 -4
- package/src/compiler/node-builder.ts +130 -31
- package/src/compiler/option-declarations.ts +33 -103
- package/src/compiler/options.ts +23 -62
- package/src/compiler/output-paths.ts +5 -18
- package/src/compiler/package-entrypoints.ts +345 -0
- package/src/compiler/package-json.ts +4 -4
- package/src/compiler/parallel-check.ts +326 -52
- package/src/compiler/parallel-emit.ts +320 -0
- package/src/compiler/parallel-parse.ts +16 -5
- package/src/compiler/parse-thread.ts +3 -0
- package/src/compiler/parser.ts +156 -39
- package/src/compiler/path.ts +22 -2
- package/src/compiler/printer/emit-context.ts +21 -0
- package/src/compiler/printer/factory-base.ts +10 -3
- package/src/compiler/printer/factory.ts +4 -1
- package/src/compiler/printer/helpers.ts +10 -1
- package/src/compiler/printer/name-generator.ts +24 -2
- package/src/compiler/printer/printer.ts +266 -30
- package/src/compiler/printer/utilities.ts +8 -2
- package/src/compiler/program-checker.ts +57 -5
- package/src/compiler/program-utilities.ts +23 -10
- package/src/compiler/program.ts +18 -26
- package/src/compiler/pseudo-bigint.ts +17 -0
- package/src/compiler/regexp-checker.ts +63 -30
- package/src/compiler/relations.ts +240 -77
- package/src/compiler/reparser.ts +7 -2
- package/src/compiler/scanner.ts +109 -79
- package/src/compiler/shared-results.ts +2414 -0
- package/src/compiler/show-config.ts +18 -1
- package/src/compiler/sourcemap.ts +2 -2
- package/src/compiler/symbol-accessibility.ts +26 -3
- package/src/compiler/symbol.ts +46 -24
- package/src/compiler/syntax-kind.ts +188 -187
- package/src/compiler/thread-entry.ts +64 -4
- package/src/compiler/transformers/alias-references.ts +123 -4
- package/src/compiler/transformers/async.ts +2 -17
- package/src/compiler/transformers/class-fields.ts +13 -12
- package/src/compiler/transformers/commonjs-module.ts +11 -7
- package/src/compiler/transformers/declarations-diagnostics.ts +5 -3
- package/src/compiler/transformers/declarations-pseudo.ts +2 -4
- package/src/compiler/transformers/declarations-resolver.ts +0 -3
- package/src/compiler/transformers/declarations-syntactic.ts +1 -21
- package/src/compiler/transformers/declarations.ts +134 -48
- package/src/compiler/transformers/decorator-metadata.ts +9 -1
- package/src/compiler/transformers/destructuring.ts +4 -3
- package/src/compiler/transformers/external-module-info.ts +1 -1
- package/src/compiler/transformers/jsx.ts +2 -1
- package/src/compiler/transformers/reference-resolver.ts +83 -19
- package/src/compiler/transformers/runtime-syntax.ts +6 -1
- package/src/compiler/transformers/syntax-facts.ts +2 -7
- package/src/compiler/transformers/type-eraser.ts +10 -1
- package/src/compiler/transformers/type-serialization.ts +3 -2
- package/src/compiler/transformers/visitor-base.ts +2 -1
- package/src/compiler/transformers/visitor-hooks.ts +9 -4
- package/src/compiler/tsc-build.ts +66 -9
- package/src/compiler/tsc-cli.ts +7 -0
- package/src/compiler/tsc-compile.ts +284 -4
- package/src/compiler/tsc-watch.ts +74 -45
- package/src/compiler/tsconfig.ts +176 -19
- package/src/compiler/type-printer.ts +36 -2
- package/src/compiler/types.ts +2 -1
- package/src/library/ast.generated.ts +57 -41
- package/src/library/compiler-options.generated.ts +117 -103
- package/src/library/disk.ts +10 -1
- package/src/library/enums.generated.ts +196 -196
|
@@ -4,14 +4,14 @@ export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.M
|
|
|
4
4
|
export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
5
5
|
export type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
6
6
|
export type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.QuestionQuestionEqualsToken | SyntaxKind.CaretEqualsToken;
|
|
7
|
-
export type KeywordSyntaxKind = SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.LetKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.StaticKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.GetKeyword | SyntaxKind.ImmediateKeyword | SyntaxKind.InferKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.OutKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.TypeKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.UsingKeyword | SyntaxKind.FromKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.OfKeyword | SyntaxKind.DeferKeyword;
|
|
7
|
+
export type KeywordSyntaxKind = SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.LetKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.StaticKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.GetKeyword | SyntaxKind.ImmediateKeyword | SyntaxKind.InferKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.OutKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.TypeKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.UsingKeyword | SyntaxKind.FromKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.OfKeyword | SyntaxKind.DeferKeyword | SyntaxKind.SourceKeyword;
|
|
8
8
|
export type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
|
|
9
9
|
export type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword;
|
|
10
10
|
export type KeywordExpressionSyntaxKind = SyntaxKind.NullKeyword | SyntaxKind.TrueKeyword | SyntaxKind.FalseKeyword | SyntaxKind.ThisKeyword | SyntaxKind.SuperKeyword | SyntaxKind.ImportKeyword;
|
|
11
|
-
export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFile | SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.NonTextFileMarkerTrivia | SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.QuestionQuestionEqualsToken | SyntaxKind.CaretEqualsToken | SyntaxKind.Identifier | SyntaxKind.PrivateIdentifier | SyntaxKind.JSDocCommentTextToken | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.LetKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.StaticKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.GetKeyword | SyntaxKind.ImmediateKeyword | SyntaxKind.InferKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.OutKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.TypeKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.UsingKeyword | SyntaxKind.FromKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.OfKeyword | SyntaxKind.DeferKeyword;
|
|
11
|
+
export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFile | SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.NonTextFileMarkerTrivia | SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.QuestionQuestionEqualsToken | SyntaxKind.CaretEqualsToken | SyntaxKind.Identifier | SyntaxKind.PrivateIdentifier | SyntaxKind.JSDocCommentTextToken | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.LetKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.StaticKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.GetKeyword | SyntaxKind.ImmediateKeyword | SyntaxKind.InferKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.OutKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.TypeKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.UsingKeyword | SyntaxKind.FromKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.OfKeyword | SyntaxKind.DeferKeyword | SyntaxKind.SourceKeyword;
|
|
12
12
|
export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFile | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken;
|
|
13
13
|
export type JSDocNodeSyntaxKind = SyntaxKind.JSDocTypeExpression | SyntaxKind.JSDocNameReference | SyntaxKind.JSDocAllType | SyntaxKind.JSDocNullableType | SyntaxKind.JSDocNonNullableType | SyntaxKind.JSDocOptionalType | SyntaxKind.JSDocVariadicType | SyntaxKind.JSDoc | SyntaxKind.JSDocText | SyntaxKind.JSDocTypeLiteral | SyntaxKind.JSDocSignature | SyntaxKind.JSDocLink | SyntaxKind.JSDocLinkCode | SyntaxKind.JSDocLinkPlain | SyntaxKind.JSDocUnknownTag | SyntaxKind.JSDocAugmentsTag | SyntaxKind.JSDocImplementsTag | SyntaxKind.JSDocDeprecatedTag | SyntaxKind.JSDocPublicTag | SyntaxKind.JSDocPrivateTag | SyntaxKind.JSDocProtectedTag | SyntaxKind.JSDocReadonlyTag | SyntaxKind.JSDocOverrideTag | SyntaxKind.JSDocCallbackTag | SyntaxKind.JSDocOverloadTag | SyntaxKind.JSDocParameterTag | SyntaxKind.JSDocReturnTag | SyntaxKind.JSDocThisTag | SyntaxKind.JSDocTypeTag | SyntaxKind.JSDocTemplateTag | SyntaxKind.JSDocTypedefTag | SyntaxKind.JSDocSeeTag | SyntaxKind.JSDocPropertyTag | SyntaxKind.JSDocThrowsTag | SyntaxKind.JSDocSatisfiesTag | SyntaxKind.JSDocImportTag;
|
|
14
|
-
export type ImportPhaseModifierSyntaxKind = SyntaxKind.TypeKeyword | SyntaxKind.DeferKeyword;
|
|
14
|
+
export type ImportPhaseModifierSyntaxKind = SyntaxKind.TypeKeyword | SyntaxKind.DeferKeyword | SyntaxKind.SourceKeyword;
|
|
15
15
|
export type PostfixUnaryOperator = SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken;
|
|
16
16
|
export type PrefixUnaryOperator = SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.TildeToken | SyntaxKind.ExclamationToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken;
|
|
17
17
|
export type AssignmentOperator = SyntaxKind.EqualsToken | CompoundAssignmentOperator;
|
|
@@ -67,7 +67,7 @@ export interface ModifiersBase extends Node {
|
|
|
67
67
|
readonly modifiers?: ModifierList<ModifierLike> | undefined;
|
|
68
68
|
readonly modifierFlags: ModifierFlags;
|
|
69
69
|
}
|
|
70
|
-
export interface FunctionLikeBase extends
|
|
70
|
+
export interface FunctionLikeBase extends Node {
|
|
71
71
|
readonly typeParameters?: NodeList<TypeParameterDeclaration> | undefined;
|
|
72
72
|
readonly parameters: NodeList<ParameterDeclaration>;
|
|
73
73
|
readonly type?: TypeNode | undefined;
|
|
@@ -80,7 +80,7 @@ export interface BodyBase extends Node {
|
|
|
80
80
|
export interface FunctionLikeWithBodyBase extends FunctionLikeBase, BodyBase {
|
|
81
81
|
readonly body?: BlockOrExpression | undefined;
|
|
82
82
|
}
|
|
83
|
-
export interface ClassLikeBase extends
|
|
83
|
+
export interface ClassLikeBase extends ModifiersBase {
|
|
84
84
|
readonly name?: Identifier | undefined;
|
|
85
85
|
readonly typeParameters?: NodeList<TypeParameterDeclaration> | undefined;
|
|
86
86
|
readonly heritageClauses?: NodeList<HeritageClause> | undefined;
|
|
@@ -90,21 +90,21 @@ export interface LiteralLikeNodeBase extends Node {
|
|
|
90
90
|
readonly text: string;
|
|
91
91
|
readonly tokenFlags: TokenFlags;
|
|
92
92
|
}
|
|
93
|
-
export interface LiteralExpressionBase extends
|
|
93
|
+
export interface LiteralExpressionBase extends PrimaryExpressionBase, LiteralLikeNodeBase {
|
|
94
94
|
}
|
|
95
95
|
export interface TemplateLiteralLikeNodeBase extends LiteralLikeNodeBase {
|
|
96
96
|
readonly rawText?: string | undefined;
|
|
97
97
|
readonly templateFlags: TokenFlags;
|
|
98
98
|
}
|
|
99
|
-
export interface TypeElementBase extends
|
|
99
|
+
export interface TypeElementBase extends DeclarationBase {
|
|
100
100
|
}
|
|
101
|
-
export interface ClassElementBase extends
|
|
101
|
+
export interface ClassElementBase extends DeclarationBase {
|
|
102
102
|
}
|
|
103
|
-
export interface NamedMemberBase extends
|
|
103
|
+
export interface NamedMemberBase extends ModifiersBase {
|
|
104
104
|
readonly name: PropertyName;
|
|
105
105
|
readonly postfixToken?: QuestionToken | ExclamationToken | undefined;
|
|
106
106
|
}
|
|
107
|
-
export interface ObjectLiteralElementBase extends
|
|
107
|
+
export interface ObjectLiteralElementBase extends DeclarationBase {
|
|
108
108
|
}
|
|
109
109
|
export interface UnionOrIntersectionTypeNodeBase extends TypeNodeBase {
|
|
110
110
|
readonly types: NodeList<TypeNode>;
|
|
@@ -130,7 +130,7 @@ export interface PrivateIdentifier extends PrimaryExpressionBase {
|
|
|
130
130
|
export interface QualifiedName extends NodeBase {
|
|
131
131
|
readonly kind: SyntaxKind.QualifiedName;
|
|
132
132
|
readonly left: EntityName;
|
|
133
|
-
readonly right:
|
|
133
|
+
readonly right: MemberName;
|
|
134
134
|
}
|
|
135
135
|
export interface ComputedPropertyName extends NodeBase {
|
|
136
136
|
readonly kind: SyntaxKind.ComputedPropertyName;
|
|
@@ -254,40 +254,40 @@ export interface BindingElement extends NodeBase, DeclarationBase {
|
|
|
254
254
|
export interface MissingDeclaration extends StatementBase, DeclarationBase, ModifiersBase {
|
|
255
255
|
readonly kind: SyntaxKind.MissingDeclaration;
|
|
256
256
|
}
|
|
257
|
-
export interface FunctionDeclaration extends
|
|
257
|
+
export interface FunctionDeclaration extends StatementBase, DeclarationBase, ModifiersBase, FunctionLikeWithBodyBase {
|
|
258
258
|
readonly kind: SyntaxKind.FunctionDeclaration;
|
|
259
259
|
readonly name?: Identifier | undefined;
|
|
260
260
|
readonly body?: FunctionBody | undefined;
|
|
261
261
|
}
|
|
262
|
-
export interface ClassDeclaration extends
|
|
262
|
+
export interface ClassDeclaration extends StatementBase, DeclarationBase, ClassLikeBase {
|
|
263
263
|
readonly kind: SyntaxKind.ClassDeclaration;
|
|
264
264
|
}
|
|
265
|
-
export interface ClassExpression extends PrimaryExpressionBase, ClassLikeBase {
|
|
265
|
+
export interface ClassExpression extends PrimaryExpressionBase, DeclarationBase, ClassLikeBase {
|
|
266
266
|
readonly kind: SyntaxKind.ClassExpression;
|
|
267
267
|
}
|
|
268
268
|
export interface HeritageClause extends NodeBase {
|
|
269
269
|
readonly kind: SyntaxKind.HeritageClause;
|
|
270
270
|
readonly token: SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword;
|
|
271
|
-
readonly types: NodeList<
|
|
271
|
+
readonly types: NodeList<HeritageClauseElement>;
|
|
272
272
|
}
|
|
273
|
-
export interface InterfaceDeclaration extends
|
|
273
|
+
export interface InterfaceDeclaration extends StatementBase, DeclarationBase, ModifiersBase {
|
|
274
274
|
readonly kind: SyntaxKind.InterfaceDeclaration;
|
|
275
275
|
readonly name: Identifier;
|
|
276
276
|
readonly typeParameters?: NodeList<TypeParameterDeclaration> | undefined;
|
|
277
277
|
readonly heritageClauses?: NodeList<HeritageClause> | undefined;
|
|
278
278
|
readonly members: NodeList<TypeElement>;
|
|
279
279
|
}
|
|
280
|
-
export interface TypeAliasDeclaration extends
|
|
280
|
+
export interface TypeAliasDeclaration extends StatementBase, DeclarationBase, ModifiersBase {
|
|
281
281
|
readonly kind: SyntaxKind.TypeAliasDeclaration;
|
|
282
282
|
readonly name: Identifier;
|
|
283
283
|
readonly typeParameters?: NodeList<TypeParameterDeclaration> | undefined;
|
|
284
284
|
readonly type: TypeNode;
|
|
285
285
|
}
|
|
286
|
-
export interface EnumMember extends NodeBase, NamedMemberBase {
|
|
286
|
+
export interface EnumMember extends NodeBase, DeclarationBase, NamedMemberBase {
|
|
287
287
|
readonly kind: SyntaxKind.EnumMember;
|
|
288
288
|
readonly initializer?: Expression | undefined;
|
|
289
289
|
}
|
|
290
|
-
export interface EnumDeclaration extends
|
|
290
|
+
export interface EnumDeclaration extends StatementBase, DeclarationBase, ModifiersBase {
|
|
291
291
|
readonly kind: SyntaxKind.EnumDeclaration;
|
|
292
292
|
readonly name: Identifier;
|
|
293
293
|
readonly members: NodeList<EnumMember>;
|
|
@@ -320,13 +320,13 @@ export interface NamedImports extends NodeBase {
|
|
|
320
320
|
readonly kind: SyntaxKind.NamedImports;
|
|
321
321
|
readonly elements: NodeList<ImportSpecifier>;
|
|
322
322
|
}
|
|
323
|
-
export interface ExportAssignment extends
|
|
323
|
+
export interface ExportAssignment extends StatementBase, DeclarationBase, ModifiersBase {
|
|
324
324
|
readonly kind: SyntaxKind.ExportAssignment;
|
|
325
325
|
readonly isExportEquals: boolean;
|
|
326
326
|
readonly type?: TypeNode | undefined;
|
|
327
327
|
readonly expression: Expression;
|
|
328
328
|
}
|
|
329
|
-
export interface NamespaceExportDeclaration extends
|
|
329
|
+
export interface NamespaceExportDeclaration extends StatementBase, DeclarationBase, ModifiersBase {
|
|
330
330
|
readonly kind: SyntaxKind.NamespaceExportDeclaration;
|
|
331
331
|
readonly name: Identifier;
|
|
332
332
|
}
|
|
@@ -354,11 +354,11 @@ export interface ConstructorDeclaration extends NodeBase, DeclarationBase, Modif
|
|
|
354
354
|
readonly kind: SyntaxKind.Constructor;
|
|
355
355
|
readonly body?: FunctionBody | undefined;
|
|
356
356
|
}
|
|
357
|
-
export interface GetAccessorDeclaration extends NamedMemberBase, FunctionLikeWithBodyBase, TypeElementBase, ClassElementBase, ObjectLiteralElementBase
|
|
357
|
+
export interface GetAccessorDeclaration extends NodeBase, DeclarationBase, NamedMemberBase, FunctionLikeWithBodyBase, TypeElementBase, ClassElementBase, ObjectLiteralElementBase {
|
|
358
358
|
readonly kind: SyntaxKind.GetAccessor;
|
|
359
359
|
readonly body?: FunctionBody | undefined;
|
|
360
360
|
}
|
|
361
|
-
export interface SetAccessorDeclaration extends NamedMemberBase, FunctionLikeWithBodyBase, TypeElementBase, ClassElementBase, ObjectLiteralElementBase
|
|
361
|
+
export interface SetAccessorDeclaration extends NodeBase, DeclarationBase, NamedMemberBase, FunctionLikeWithBodyBase, TypeElementBase, ClassElementBase, ObjectLiteralElementBase {
|
|
362
362
|
readonly kind: SyntaxKind.SetAccessor;
|
|
363
363
|
readonly body?: FunctionBody | undefined;
|
|
364
364
|
}
|
|
@@ -366,19 +366,19 @@ export interface IndexSignatureDeclaration extends NodeBase, DeclarationBase, Mo
|
|
|
366
366
|
readonly kind: SyntaxKind.IndexSignature;
|
|
367
367
|
readonly type?: TypeNode | undefined;
|
|
368
368
|
}
|
|
369
|
-
export interface MethodSignatureDeclaration extends NodeBase, NamedMemberBase, FunctionLikeBase, TypeElementBase {
|
|
369
|
+
export interface MethodSignatureDeclaration extends NodeBase, DeclarationBase, NamedMemberBase, FunctionLikeBase, TypeElementBase {
|
|
370
370
|
readonly kind: SyntaxKind.MethodSignature;
|
|
371
371
|
}
|
|
372
|
-
export interface MethodDeclaration extends NodeBase, NamedMemberBase, FunctionLikeWithBodyBase, ClassElementBase, ObjectLiteralElementBase {
|
|
372
|
+
export interface MethodDeclaration extends NodeBase, DeclarationBase, NamedMemberBase, FunctionLikeWithBodyBase, ClassElementBase, ObjectLiteralElementBase {
|
|
373
373
|
readonly kind: SyntaxKind.MethodDeclaration;
|
|
374
374
|
readonly body?: FunctionBody | undefined;
|
|
375
375
|
}
|
|
376
|
-
export interface PropertySignatureDeclaration extends NodeBase, NamedMemberBase, TypeElementBase {
|
|
376
|
+
export interface PropertySignatureDeclaration extends NodeBase, DeclarationBase, NamedMemberBase, TypeElementBase {
|
|
377
377
|
readonly kind: SyntaxKind.PropertySignature;
|
|
378
378
|
readonly type?: TypeNode | undefined;
|
|
379
379
|
readonly initializer?: Expression | undefined;
|
|
380
380
|
}
|
|
381
|
-
export interface PropertyDeclaration extends NodeBase, NamedMemberBase, ClassElementBase {
|
|
381
|
+
export interface PropertyDeclaration extends NodeBase, DeclarationBase, NamedMemberBase, ClassElementBase {
|
|
382
382
|
readonly kind: SyntaxKind.PropertyDeclaration;
|
|
383
383
|
readonly type?: TypeNode | undefined;
|
|
384
384
|
readonly initializer?: Expression | undefined;
|
|
@@ -534,12 +534,12 @@ export interface SpreadAssignment extends NodeBase, DeclarationBase, ObjectLiter
|
|
|
534
534
|
readonly kind: SyntaxKind.SpreadAssignment;
|
|
535
535
|
readonly expression: Expression;
|
|
536
536
|
}
|
|
537
|
-
export interface PropertyAssignment extends NodeBase, NamedMemberBase, ObjectLiteralElementBase {
|
|
537
|
+
export interface PropertyAssignment extends NodeBase, DeclarationBase, NamedMemberBase, ObjectLiteralElementBase {
|
|
538
538
|
readonly kind: SyntaxKind.PropertyAssignment;
|
|
539
539
|
readonly type?: TypeNode | undefined;
|
|
540
540
|
readonly initializer: Expression;
|
|
541
541
|
}
|
|
542
|
-
export interface ShorthandPropertyAssignment extends NodeBase, NamedMemberBase, ObjectLiteralElementBase {
|
|
542
|
+
export interface ShorthandPropertyAssignment extends NodeBase, DeclarationBase, NamedMemberBase, ObjectLiteralElementBase {
|
|
543
543
|
readonly kind: SyntaxKind.ShorthandPropertyAssignment;
|
|
544
544
|
readonly type?: TypeNode | undefined;
|
|
545
545
|
readonly equalsToken?: EqualsToken | undefined;
|
|
@@ -569,10 +569,10 @@ export interface TypeAssertion extends UnaryExpressionBase {
|
|
|
569
569
|
export interface KeywordTypeNode<TKind extends KeywordTypeSyntaxKind = KeywordTypeSyntaxKind> extends TypeNodeBase {
|
|
570
570
|
readonly kind: TKind;
|
|
571
571
|
}
|
|
572
|
-
export interface UnionTypeNode extends
|
|
572
|
+
export interface UnionTypeNode extends UnionOrIntersectionTypeNodeBase {
|
|
573
573
|
readonly kind: SyntaxKind.UnionType;
|
|
574
574
|
}
|
|
575
|
-
export interface IntersectionTypeNode extends
|
|
575
|
+
export interface IntersectionTypeNode extends UnionOrIntersectionTypeNodeBase {
|
|
576
576
|
readonly kind: SyntaxKind.IntersectionType;
|
|
577
577
|
}
|
|
578
578
|
export interface ConditionalTypeNode extends TypeNodeBase {
|
|
@@ -673,10 +673,10 @@ export interface ParenthesizedTypeNode extends TypeNodeBase {
|
|
|
673
673
|
readonly kind: SyntaxKind.ParenthesizedType;
|
|
674
674
|
readonly type: TypeNode;
|
|
675
675
|
}
|
|
676
|
-
export interface FunctionTypeNode extends TypeNodeBase, ModifiersBase, FunctionLikeBase {
|
|
676
|
+
export interface FunctionTypeNode extends TypeNodeBase, DeclarationBase, ModifiersBase, FunctionLikeBase {
|
|
677
677
|
readonly kind: SyntaxKind.FunctionType;
|
|
678
678
|
}
|
|
679
|
-
export interface ConstructorTypeNode extends TypeNodeBase, ModifiersBase, FunctionLikeBase {
|
|
679
|
+
export interface ConstructorTypeNode extends TypeNodeBase, DeclarationBase, ModifiersBase, FunctionLikeBase {
|
|
680
680
|
readonly kind: SyntaxKind.ConstructorType;
|
|
681
681
|
}
|
|
682
682
|
export interface TemplateHead extends NodeBase, TemplateLiteralLikeNodeBase {
|
|
@@ -755,7 +755,7 @@ export interface JsxAttribute extends NodeBase, DeclarationBase {
|
|
|
755
755
|
readonly name: JsxAttributeName;
|
|
756
756
|
readonly initializer?: JsxAttributeValue | undefined;
|
|
757
757
|
}
|
|
758
|
-
export interface JsxSpreadAttribute extends
|
|
758
|
+
export interface JsxSpreadAttribute extends NodeBase, ObjectLiteralElementBase {
|
|
759
759
|
readonly kind: SyntaxKind.JsxSpreadAttribute;
|
|
760
760
|
readonly expression: Expression;
|
|
761
761
|
}
|
|
@@ -882,26 +882,27 @@ export interface JSDocTypedefTag extends JSDocTagBase {
|
|
|
882
882
|
readonly typeExpression?: Node | undefined;
|
|
883
883
|
readonly name?: JSDocFullName | undefined;
|
|
884
884
|
}
|
|
885
|
-
export interface JSDocSignature extends JSDocTypeBase, FunctionLikeBase {
|
|
885
|
+
export interface JSDocSignature extends JSDocTypeBase, DeclarationBase, FunctionLikeBase {
|
|
886
886
|
readonly kind: SyntaxKind.JSDocSignature;
|
|
887
887
|
}
|
|
888
888
|
export interface JSDocNameReference extends TypeNodeBase {
|
|
889
889
|
readonly kind: SyntaxKind.JSDocNameReference;
|
|
890
890
|
readonly name?: EntityName | undefined;
|
|
891
891
|
}
|
|
892
|
-
export interface ModuleDeclaration extends
|
|
892
|
+
export interface ModuleDeclaration extends StatementBase, DeclarationBase, ModifiersBase, BodyBase {
|
|
893
893
|
readonly kind: SyntaxKind.ModuleDeclaration;
|
|
894
894
|
readonly keyword: SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.GlobalKeyword;
|
|
895
895
|
readonly name: ModuleName;
|
|
896
|
+
readonly attributes?: TypeLiteralNode | undefined;
|
|
896
897
|
readonly body?: ModuleBody | undefined;
|
|
897
898
|
}
|
|
898
|
-
export interface ImportEqualsDeclaration extends
|
|
899
|
+
export interface ImportEqualsDeclaration extends StatementBase, DeclarationBase, ModifiersBase {
|
|
899
900
|
readonly kind: SyntaxKind.ImportEqualsDeclaration;
|
|
900
901
|
readonly isTypeOnly: boolean;
|
|
901
902
|
readonly name: Identifier;
|
|
902
903
|
readonly moduleReference: ModuleReference;
|
|
903
904
|
}
|
|
904
|
-
export interface ExportDeclaration extends
|
|
905
|
+
export interface ExportDeclaration extends StatementBase, DeclarationBase, ModifiersBase {
|
|
905
906
|
readonly kind: SyntaxKind.ExportDeclaration;
|
|
906
907
|
readonly isTypeOnly: boolean;
|
|
907
908
|
readonly exportClause?: NamedExportBindings | undefined;
|
|
@@ -962,10 +963,11 @@ export interface JSDocTypeLiteral extends JSDocTypeBase, DeclarationBase {
|
|
|
962
963
|
export type Expression = ExpressionBase;
|
|
963
964
|
export type Statement = StatementBase;
|
|
964
965
|
export type TypeNode = TypeNodeBase;
|
|
966
|
+
export type HeritageClauseElement = ExpressionWithTypeArguments | TypeReferenceNode;
|
|
965
967
|
export type BlockOrExpression = Block | Expression;
|
|
966
968
|
export type NodeBody = Block | Expression | ModuleBlock | ModuleDeclaration;
|
|
967
969
|
export type AccessExpression = PropertyAccessExpression | ElementAccessExpression;
|
|
968
|
-
export type DeclarationName = Identifier | PrivateIdentifier | StringLiteral | NumericLiteral | BigIntLiteral | NoSubstitutionTemplateLiteral | ComputedPropertyName | BindingPattern | ElementAccessExpression;
|
|
970
|
+
export type DeclarationName = Identifier | PrivateIdentifier | StringLiteral | NumericLiteral | BigIntLiteral | NoSubstitutionTemplateLiteral | ComputedPropertyName | BindingPattern | PropertyAccessExpression | ElementAccessExpression;
|
|
969
971
|
export type ModuleName = Identifier | StringLiteral;
|
|
970
972
|
export type ModuleExportName = Identifier | StringLiteral;
|
|
971
973
|
export type PropertyName = Identifier | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier | BigIntLiteral;
|
|
@@ -1130,6 +1132,7 @@ export type HeritageClauseList = NodeList<HeritageClause>;
|
|
|
1130
1132
|
export type ClassElementList = NodeList<ClassElement>;
|
|
1131
1133
|
export type TypeElementList = NodeList<TypeElement>;
|
|
1132
1134
|
export type ExpressionWithTypeArgumentsList = NodeList<ExpressionWithTypeArguments>;
|
|
1135
|
+
export type HeritageClauseElementList = NodeList<HeritageClauseElement>;
|
|
1133
1136
|
export type EnumMemberList = NodeList<EnumMember>;
|
|
1134
1137
|
export type ImportSpecifierList = NodeList<ImportSpecifier>;
|
|
1135
1138
|
export type ExportSpecifierList = NodeList<ExportSpecifier>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
// Generated by scripts/generate-api.mjs from
|
|
1
|
+
// Generated by scripts/generate-api.mjs from TypeScript tools/scripts/tsc/ast.json (TypeScript 7.1.0-beta).
|
|
2
2
|
// TypeScript is Copyright Microsoft Corporation, licensed under Apache-2.0. Do not edit.
|
|
3
3
|
export {};
|
|
@@ -4,105 +4,116 @@ import type { ModuleKind } from './enums.generated.js';
|
|
|
4
4
|
import type { ModuleResolutionKind } from './enums.generated.js';
|
|
5
5
|
import type { NewLineKind } from './enums.generated.js';
|
|
6
6
|
import type { ScriptTarget } from './enums.generated.js';
|
|
7
|
+
type RootedPath = string;
|
|
8
|
+
type RootedFilePath = string;
|
|
9
|
+
type RootedDirectoryPath = string;
|
|
10
|
+
/** CompilerOptions contains the compiler options exposed by the API. */
|
|
7
11
|
export interface CompilerOptions {
|
|
8
|
-
allowJs?: boolean;
|
|
9
|
-
allowArbitraryExtensions?: boolean;
|
|
10
|
-
allowImportingTsExtensions?: boolean;
|
|
11
|
-
allowNonTsExtensions?: boolean;
|
|
12
|
-
allowUmdGlobalAccess?: boolean;
|
|
13
|
-
allowUnreachableCode?: boolean;
|
|
14
|
-
allowUnusedLabels?: boolean;
|
|
15
|
-
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
16
|
-
checkJs?: boolean;
|
|
17
|
-
customConditions?: string[];
|
|
18
|
-
composite?: boolean;
|
|
19
|
-
emitDeclarationOnly?: boolean;
|
|
20
|
-
emitBOM?: boolean;
|
|
21
|
-
emitDecoratorMetadata?: boolean;
|
|
22
|
-
declaration?: boolean;
|
|
23
|
-
declarationDir?:
|
|
24
|
-
declarationMap?: boolean;
|
|
25
|
-
deduplicatePackages?: boolean;
|
|
26
|
-
disableSizeLimit?: boolean;
|
|
27
|
-
disableSourceOfProjectReferenceRedirect?: boolean;
|
|
28
|
-
disableSolutionSearching?: boolean;
|
|
29
|
-
disableReferencedProjectLoad?: boolean;
|
|
30
|
-
erasableSyntaxOnly?: boolean;
|
|
31
|
-
exactOptionalPropertyTypes?: boolean;
|
|
32
|
-
experimentalDecorators?: boolean;
|
|
33
|
-
forceConsistentCasingInFileNames?: boolean;
|
|
34
|
-
isolatedModules?: boolean;
|
|
35
|
-
isolatedDeclarations?: boolean;
|
|
36
|
-
ignoreConfig?: boolean;
|
|
37
|
-
ignoreDeprecations?: string;
|
|
38
|
-
importHelpers?: boolean;
|
|
39
|
-
inlineSourceMap?: boolean;
|
|
40
|
-
inlineSources?: boolean;
|
|
41
|
-
init?: boolean;
|
|
42
|
-
incremental?: boolean;
|
|
43
|
-
jsx?: JsxEmit;
|
|
44
|
-
jsxFactory?: string;
|
|
45
|
-
jsxFragmentFactory?: string;
|
|
46
|
-
jsxImportSource?: string;
|
|
47
|
-
lib?: string[];
|
|
48
|
-
libReplacement?: boolean;
|
|
49
|
-
locale?: string;
|
|
50
|
-
mapRoot?: string;
|
|
51
|
-
module?: ModuleKind;
|
|
52
|
-
moduleResolution?: ModuleResolutionKind;
|
|
53
|
-
moduleSuffixes?: string[];
|
|
54
|
-
moduleDetection?: ModuleDetectionKind;
|
|
55
|
-
newLine?: NewLineKind;
|
|
56
|
-
noEmit?: boolean;
|
|
57
|
-
noCheck?: boolean;
|
|
58
|
-
noErrorTruncation?: boolean;
|
|
59
|
-
noFallthroughCasesInSwitch?: boolean;
|
|
60
|
-
noImplicitAny?: boolean;
|
|
61
|
-
noImplicitThis?: boolean;
|
|
62
|
-
noImplicitReturns?: boolean;
|
|
63
|
-
noEmitHelpers?: boolean;
|
|
64
|
-
noLib?: boolean;
|
|
65
|
-
noPropertyAccessFromIndexSignature?: boolean;
|
|
66
|
-
noUncheckedIndexedAccess?: boolean;
|
|
67
|
-
noEmitOnError?: boolean;
|
|
68
|
-
noUnusedLocals?: boolean;
|
|
69
|
-
noUnusedParameters?: boolean;
|
|
70
|
-
noResolve?: boolean;
|
|
71
|
-
noImplicitOverride?: boolean;
|
|
72
|
-
noUncheckedSideEffectImports?: boolean;
|
|
73
|
-
outDir?:
|
|
74
|
-
paths?: Record<string, string[]
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
12
|
+
allowJs?: boolean | undefined;
|
|
13
|
+
allowArbitraryExtensions?: boolean | undefined;
|
|
14
|
+
allowImportingTsExtensions?: boolean | undefined;
|
|
15
|
+
allowNonTsExtensions?: boolean | undefined;
|
|
16
|
+
allowUmdGlobalAccess?: boolean | undefined;
|
|
17
|
+
allowUnreachableCode?: boolean | undefined;
|
|
18
|
+
allowUnusedLabels?: boolean | undefined;
|
|
19
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean | undefined;
|
|
20
|
+
checkJs?: boolean | undefined;
|
|
21
|
+
customConditions?: string[] | undefined;
|
|
22
|
+
composite?: boolean | undefined;
|
|
23
|
+
emitDeclarationOnly?: boolean | undefined;
|
|
24
|
+
emitBOM?: boolean | undefined;
|
|
25
|
+
emitDecoratorMetadata?: boolean | undefined;
|
|
26
|
+
declaration?: boolean | undefined;
|
|
27
|
+
declarationDir?: RootedDirectoryPath | undefined;
|
|
28
|
+
declarationMap?: boolean | undefined;
|
|
29
|
+
deduplicatePackages?: boolean | undefined;
|
|
30
|
+
disableSizeLimit?: boolean | undefined;
|
|
31
|
+
disableSourceOfProjectReferenceRedirect?: boolean | undefined;
|
|
32
|
+
disableSolutionSearching?: boolean | undefined;
|
|
33
|
+
disableReferencedProjectLoad?: boolean | undefined;
|
|
34
|
+
erasableSyntaxOnly?: boolean | undefined;
|
|
35
|
+
exactOptionalPropertyTypes?: boolean | undefined;
|
|
36
|
+
experimentalDecorators?: boolean | undefined;
|
|
37
|
+
forceConsistentCasingInFileNames?: boolean | undefined;
|
|
38
|
+
isolatedModules?: boolean | undefined;
|
|
39
|
+
isolatedDeclarations?: boolean | undefined;
|
|
40
|
+
ignoreConfig?: boolean | undefined;
|
|
41
|
+
ignoreDeprecations?: string | undefined;
|
|
42
|
+
importHelpers?: boolean | undefined;
|
|
43
|
+
inlineSourceMap?: boolean | undefined;
|
|
44
|
+
inlineSources?: boolean | undefined;
|
|
45
|
+
init?: boolean | undefined;
|
|
46
|
+
incremental?: boolean | undefined;
|
|
47
|
+
jsx?: JsxEmit | undefined;
|
|
48
|
+
jsxFactory?: string | undefined;
|
|
49
|
+
jsxFragmentFactory?: string | undefined;
|
|
50
|
+
jsxImportSource?: string | undefined;
|
|
51
|
+
lib?: string[] | undefined;
|
|
52
|
+
libReplacement?: boolean | undefined;
|
|
53
|
+
locale?: string | undefined;
|
|
54
|
+
mapRoot?: string | undefined;
|
|
55
|
+
module?: ModuleKind | undefined;
|
|
56
|
+
moduleResolution?: ModuleResolutionKind | undefined;
|
|
57
|
+
moduleSuffixes?: string[] | undefined;
|
|
58
|
+
moduleDetection?: ModuleDetectionKind | undefined;
|
|
59
|
+
newLine?: NewLineKind | undefined;
|
|
60
|
+
noEmit?: boolean | undefined;
|
|
61
|
+
noCheck?: boolean | undefined;
|
|
62
|
+
noErrorTruncation?: boolean | undefined;
|
|
63
|
+
noFallthroughCasesInSwitch?: boolean | undefined;
|
|
64
|
+
noImplicitAny?: boolean | undefined;
|
|
65
|
+
noImplicitThis?: boolean | undefined;
|
|
66
|
+
noImplicitReturns?: boolean | undefined;
|
|
67
|
+
noEmitHelpers?: boolean | undefined;
|
|
68
|
+
noLib?: boolean | undefined;
|
|
69
|
+
noPropertyAccessFromIndexSignature?: boolean | undefined;
|
|
70
|
+
noUncheckedIndexedAccess?: boolean | undefined;
|
|
71
|
+
noEmitOnError?: boolean | undefined;
|
|
72
|
+
noUnusedLocals?: boolean | undefined;
|
|
73
|
+
noUnusedParameters?: boolean | undefined;
|
|
74
|
+
noResolve?: boolean | undefined;
|
|
75
|
+
noImplicitOverride?: boolean | undefined;
|
|
76
|
+
noUncheckedSideEffectImports?: boolean | undefined;
|
|
77
|
+
outDir?: RootedDirectoryPath | undefined;
|
|
78
|
+
paths?: Record<string, string[]> | undefined;
|
|
79
|
+
/** Plugins are parsed only so tools can report that native TypeScript does not support them. */
|
|
80
|
+
plugins?: PluginImport[] | undefined;
|
|
81
|
+
preserveConstEnums?: boolean | undefined;
|
|
82
|
+
preserveSymlinks?: boolean | undefined;
|
|
83
|
+
project?: RootedPath | undefined;
|
|
84
|
+
resolveJsonModule?: boolean | undefined;
|
|
85
|
+
resolvePackageJsonExports?: boolean | undefined;
|
|
86
|
+
resolvePackageJsonImports?: boolean | undefined;
|
|
87
|
+
removeComments?: boolean | undefined;
|
|
88
|
+
rewriteRelativeImportExtensions?: boolean | undefined;
|
|
89
|
+
reactNamespace?: string | undefined;
|
|
90
|
+
rootDir?: RootedDirectoryPath | undefined;
|
|
91
|
+
rootDirs?: RootedDirectoryPath[] | undefined;
|
|
92
|
+
skipLibCheck?: boolean | undefined;
|
|
93
|
+
stableTypeOrdering?: boolean | undefined;
|
|
94
|
+
strict?: boolean | undefined;
|
|
95
|
+
strictBindCallApply?: boolean | undefined;
|
|
96
|
+
strictBuiltinIteratorReturn?: boolean | undefined;
|
|
97
|
+
strictFunctionTypes?: boolean | undefined;
|
|
98
|
+
strictNullChecks?: boolean | undefined;
|
|
99
|
+
strictPropertyInitialization?: boolean | undefined;
|
|
100
|
+
stripInternal?: boolean | undefined;
|
|
101
|
+
skipDefaultLibCheck?: boolean | undefined;
|
|
102
|
+
sourceMap?: boolean | undefined;
|
|
103
|
+
sourceRoot?: string | undefined;
|
|
104
|
+
suppressOutputPathCheck?: boolean | undefined;
|
|
105
|
+
target?: ScriptTarget | undefined;
|
|
106
|
+
traceResolution?: boolean | undefined;
|
|
107
|
+
tsBuildInfoFile?: RootedFilePath | undefined;
|
|
108
|
+
typeRoots?: RootedDirectoryPath[] | undefined;
|
|
109
|
+
types?: string[] | undefined;
|
|
110
|
+
useDefineForClassFields?: boolean | undefined;
|
|
111
|
+
useUnknownInCatchVariables?: boolean | undefined;
|
|
112
|
+
verbatimModuleSyntax?: boolean | undefined;
|
|
113
|
+
maxNodeModuleJsDepth?: number | undefined;
|
|
114
|
+
configFilePath?: RootedFilePath | undefined;
|
|
108
115
|
}
|
|
116
|
+
export interface PluginImport {
|
|
117
|
+
name: string;
|
|
118
|
+
}
|
|
119
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
// Generated by scripts/generate-api.mjs from
|
|
1
|
+
// Generated by scripts/generate-api.mjs from TypeScript packages/typescript/src/api/compilerOptions.generated.ts (TypeScript 7.1.0-beta).
|
|
2
2
|
// TypeScript is Copyright Microsoft Corporation, licensed under Apache-2.0. Do not edit.
|
|
3
3
|
export {};
|
package/dist/api/library/disk.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// The disk, as tsc-ts's public API and `tsc-ts --api` read it where a host doesn't answer.
|
|
2
2
|
import { readdirSync, readFileSync, realpathSync, statSync } from 'node:fs';
|
|
3
|
+
import { isNetworkPath } from '../compiler/path.js';
|
|
3
4
|
// Reads a text file, decoding UTF-16 byte order marks and dropping a UTF-8 one.
|
|
4
5
|
export function diskReadFile(path) {
|
|
6
|
+
if (isNetworkPath(path))
|
|
7
|
+
return undefined;
|
|
5
8
|
let bytes;
|
|
6
9
|
try {
|
|
7
10
|
bytes = readFileSync(path);
|
|
@@ -26,6 +29,8 @@ function utf16be(bytes) {
|
|
|
26
29
|
return new TextDecoder('utf-16le').decode(swapped);
|
|
27
30
|
}
|
|
28
31
|
export function diskStat(path) {
|
|
32
|
+
if (isNetworkPath(path))
|
|
33
|
+
return undefined;
|
|
29
34
|
try {
|
|
30
35
|
const s = statSync(path);
|
|
31
36
|
return { isDirectory: s.isDirectory(), size: s.size, mtimeMs: s.mtimeMs };
|
|
@@ -39,6 +44,8 @@ export function diskEntries(path) {
|
|
|
39
44
|
const files = [];
|
|
40
45
|
const directories = [];
|
|
41
46
|
let names;
|
|
47
|
+
if (isNetworkPath(path))
|
|
48
|
+
return { files, directories };
|
|
42
49
|
try {
|
|
43
50
|
names = readdirSync(path);
|
|
44
51
|
}
|
|
@@ -57,8 +64,12 @@ export function diskEntries(path) {
|
|
|
57
64
|
return { files, directories };
|
|
58
65
|
}
|
|
59
66
|
export function diskRealpath(path) {
|
|
67
|
+
if (isNetworkPath(path))
|
|
68
|
+
return path;
|
|
60
69
|
try {
|
|
61
|
-
|
|
70
|
+
// A local path may resolve to a network location (a mapped network drive): keep the original.
|
|
71
|
+
const real = realpathSync(path);
|
|
72
|
+
return isNetworkPath(real) ? path : real;
|
|
62
73
|
}
|
|
63
74
|
catch {
|
|
64
75
|
return path;
|