typescript 7.0.2 → 7.1.0-beta
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/NOTICE.txt +5 -36
- package/dist/api/async/api.d.ts +597 -122
- package/dist/api/async/api.d.ts.map +1 -1
- package/dist/api/async/api.js +1775 -333
- package/dist/api/async/api.js.map +1 -1
- package/dist/api/async/client.d.ts +18 -2
- package/dist/api/async/client.d.ts.map +1 -1
- package/dist/api/async/client.js +255 -68
- package/dist/api/async/client.js.map +1 -1
- package/dist/api/async/types.d.ts +99 -34
- package/dist/api/async/types.d.ts.map +1 -1
- package/dist/api/compilerOptions.generated.d.ts +123 -0
- package/dist/api/compilerOptions.generated.d.ts.map +1 -0
- package/dist/api/compilerOptions.generated.js +8 -0
- package/dist/api/compilerOptions.generated.js.map +1 -0
- package/dist/api/diagnosticFormatter.d.ts +9 -0
- package/dist/api/diagnosticFormatter.d.ts.map +1 -0
- package/dist/api/diagnosticFormatter.js +169 -0
- package/dist/api/diagnosticFormatter.js.map +1 -0
- package/dist/api/fs.d.ts +68 -13
- package/dist/api/fs.d.ts.map +1 -1
- package/dist/api/fs.js +62 -101
- package/dist/api/fs.js.map +1 -1
- package/dist/api/fsCallbacks.d.ts +27 -0
- package/dist/api/fsCallbacks.d.ts.map +1 -0
- package/dist/api/fsCallbacks.js +111 -0
- package/dist/api/fsCallbacks.js.map +1 -0
- package/dist/api/node/encoder.d.ts +3 -0
- package/dist/api/node/encoder.d.ts.map +1 -1
- package/dist/api/node/encoder.generated.js +2 -2
- package/dist/api/node/encoder.generated.js.map +1 -1
- package/dist/api/node/encoder.js +20 -15
- package/dist/api/node/encoder.js.map +1 -1
- package/dist/api/node/msgpack.d.ts.map +1 -1
- package/dist/api/node/msgpack.js +2 -3
- package/dist/api/node/msgpack.js.map +1 -1
- package/dist/api/node/node.d.ts +28 -9
- package/dist/api/node/node.d.ts.map +1 -1
- package/dist/api/node/node.generated.d.ts +9 -2
- package/dist/api/node/node.generated.d.ts.map +1 -1
- package/dist/api/node/node.generated.js +55 -6
- package/dist/api/node/node.generated.js.map +1 -1
- package/dist/api/node/node.infrastructure.d.ts +6 -4
- package/dist/api/node/node.infrastructure.d.ts.map +1 -1
- package/dist/api/node/node.infrastructure.js +20 -40
- package/dist/api/node/node.infrastructure.js.map +1 -1
- package/dist/api/node/node.js +178 -23
- package/dist/api/node/node.js.map +1 -1
- package/dist/api/node/protocol.d.ts +5 -2
- package/dist/api/node/protocol.d.ts.map +1 -1
- package/dist/api/node/protocol.generated.js +2 -2
- package/dist/api/node/protocol.generated.js.map +1 -1
- package/dist/api/node/protocol.js +5 -2
- package/dist/api/node/protocol.js.map +1 -1
- package/dist/api/node/wtf8.d.ts +6 -2
- package/dist/api/node/wtf8.d.ts.map +1 -1
- package/dist/api/node/wtf8.js +71 -2
- package/dist/api/node/wtf8.js.map +1 -1
- package/dist/api/options.d.ts +19 -7
- package/dist/api/options.d.ts.map +1 -1
- package/dist/api/options.js +21 -0
- package/dist/api/options.js.map +1 -1
- package/dist/api/path.d.ts +49 -39
- package/dist/api/path.d.ts.map +1 -1
- package/dist/api/path.js +409 -33
- package/dist/api/path.js.map +1 -1
- package/dist/api/prepareCompilerOptions.generated.d.ts +5 -0
- package/dist/api/prepareCompilerOptions.generated.d.ts.map +1 -0
- package/dist/api/prepareCompilerOptions.generated.js +24 -0
- package/dist/api/prepareCompilerOptions.generated.js.map +1 -0
- package/dist/api/proto.d.ts +58 -217
- package/dist/api/proto.d.ts.map +1 -1
- package/dist/api/proto.generated.d.ts +1419 -0
- package/dist/api/proto.generated.d.ts.map +1 -0
- package/dist/api/proto.generated.js +21 -0
- package/dist/api/proto.generated.js.map +1 -0
- package/dist/api/proto.js +28 -15
- package/dist/api/proto.js.map +1 -1
- package/dist/api/sourceFileCache.d.ts +51 -20
- package/dist/api/sourceFileCache.d.ts.map +1 -1
- package/dist/api/sourceFileCache.js +168 -37
- package/dist/api/sourceFileCache.js.map +1 -1
- package/dist/api/sync/api.d.ts +1365 -220
- package/dist/api/sync/api.d.ts.map +1 -1
- package/dist/api/sync/api.js +4673 -930
- package/dist/api/sync/api.js.map +1 -1
- package/dist/api/sync/client.d.ts +8 -2
- package/dist/api/sync/client.d.ts.map +1 -1
- package/dist/api/sync/client.js +80 -30
- package/dist/api/sync/client.js.map +1 -1
- package/dist/api/sync/generatorSupport.d.ts +32 -0
- package/dist/api/sync/generatorSupport.d.ts.map +1 -0
- package/dist/api/sync/generatorSupport.js +338 -0
- package/dist/api/sync/generatorSupport.js.map +1 -0
- package/dist/api/sync/types.d.ts +248 -56
- package/dist/api/sync/types.d.ts.map +1 -1
- package/dist/api/syncChannel.d.ts +3 -0
- package/dist/api/syncChannel.d.ts.map +1 -1
- package/dist/api/syncChannel.js +20 -2
- package/dist/api/syncChannel.js.map +1 -1
- package/dist/api/timing.d.ts +2 -2
- package/dist/api/timing.d.ts.map +1 -1
- package/dist/api/timing.js +1 -1
- package/dist/api/timing.js.map +1 -1
- package/dist/api/timingDump.d.ts +13 -0
- package/dist/api/timingDump.d.ts.map +1 -0
- package/dist/api/timingDump.js +38 -0
- package/dist/api/timingDump.js.map +1 -0
- package/dist/api/typedPaths.d.ts +3 -0
- package/dist/api/typedPaths.d.ts.map +1 -0
- package/dist/api/typedPaths.js +2 -0
- package/dist/api/typedPaths.js.map +1 -0
- package/dist/api/userPreferences.generated.d.ts +195 -0
- package/dist/api/userPreferences.generated.d.ts.map +1 -0
- package/dist/api/userPreferences.generated.js +3 -0
- package/dist/api/userPreferences.generated.js.map +1 -0
- package/dist/ast/ast.d.ts +90 -7
- package/dist/ast/ast.d.ts.map +1 -1
- package/dist/ast/ast.generated.d.ts +45 -39
- package/dist/ast/ast.generated.d.ts.map +1 -1
- package/dist/ast/ast.generated.js +1 -1
- package/dist/ast/ast.generated.js.map +1 -1
- package/dist/ast/ast.js +1 -0
- package/dist/ast/ast.js.map +1 -1
- package/dist/ast/astnav.d.ts +3 -2
- package/dist/ast/astnav.d.ts.map +1 -1
- package/dist/ast/astnav.js +148 -3
- package/dist/ast/astnav.js.map +1 -1
- package/dist/ast/factory.generated.d.ts +8 -154
- package/dist/ast/factory.generated.d.ts.map +1 -1
- package/dist/ast/factory.generated.js +2701 -7
- package/dist/ast/factory.generated.js.map +1 -1
- package/dist/ast/index.d.ts +5 -0
- package/dist/ast/index.d.ts.map +1 -1
- package/dist/ast/index.js +5 -0
- package/dist/ast/index.js.map +1 -1
- package/dist/ast/is.d.ts +2 -12
- package/dist/ast/is.d.ts.map +1 -1
- package/dist/ast/is.generated.d.ts +889 -1
- package/dist/ast/is.generated.d.ts.map +1 -1
- package/dist/ast/is.generated.js +300 -3
- package/dist/ast/is.generated.js.map +1 -1
- package/dist/ast/is.js +224 -1
- package/dist/ast/is.js.map +1 -1
- package/dist/ast/jsdoc.d.ts +2 -1
- package/dist/ast/jsdoc.d.ts.map +1 -1
- package/dist/ast/jsdoc.js +14 -8
- package/dist/ast/jsdoc.js.map +1 -1
- package/dist/ast/modifiers.d.ts +4 -0
- package/dist/ast/modifiers.d.ts.map +1 -0
- package/dist/ast/modifiers.js +41 -0
- package/dist/ast/modifiers.js.map +1 -0
- package/dist/ast/scanner.d.ts.map +1 -1
- package/dist/ast/scanner.js +2 -1
- package/dist/ast/scanner.js.map +1 -1
- package/dist/ast/spanMap.d.ts +88 -0
- package/dist/ast/spanMap.d.ts.map +1 -0
- package/dist/ast/spanMap.js +417 -0
- package/dist/ast/spanMap.js.map +1 -0
- package/dist/ast/utils.d.ts +14 -1
- package/dist/ast/utils.d.ts.map +1 -1
- package/dist/ast/utils.js +251 -0
- package/dist/ast/utils.js.map +1 -1
- package/dist/ast/visitor.d.ts +2 -0
- package/dist/ast/visitor.d.ts.map +1 -1
- package/dist/ast/visitor.generated.d.ts.map +1 -1
- package/dist/ast/visitor.generated.js +5 -4
- package/dist/ast/visitor.generated.js.map +1 -1
- package/dist/ast/visitor.js +40 -0
- package/dist/ast/visitor.js.map +1 -1
- package/dist/enums/caseSensitivity.d.ts +2 -0
- package/dist/enums/caseSensitivity.d.ts.map +1 -0
- package/dist/enums/caseSensitivity.enum.d.ts +5 -0
- package/dist/enums/caseSensitivity.enum.d.ts.map +1 -0
- package/dist/enums/caseSensitivity.enum.js +7 -0
- package/dist/enums/caseSensitivity.enum.js.map +1 -0
- package/dist/enums/caseSensitivity.js +7 -0
- package/dist/enums/caseSensitivity.js.map +1 -0
- package/dist/enums/checkFlags.d.ts +2 -0
- package/dist/enums/checkFlags.d.ts.map +1 -0
- package/dist/enums/checkFlags.enum.d.ts +34 -0
- package/dist/enums/checkFlags.enum.d.ts.map +1 -0
- package/dist/enums/checkFlags.enum.js +36 -0
- package/dist/enums/checkFlags.enum.js.map +1 -0
- package/dist/enums/checkFlags.js +36 -0
- package/dist/enums/checkFlags.js.map +1 -0
- package/dist/enums/completionItemKind.enum.js +1 -1
- package/dist/enums/completionItemKind.enum.js.map +1 -1
- package/dist/enums/completionItemKind.js +1 -1
- package/dist/enums/completionItemKind.js.map +1 -1
- package/dist/enums/diagnosticCategory.enum.js +1 -1
- package/dist/enums/diagnosticCategory.enum.js.map +1 -1
- package/dist/enums/diagnosticCategory.js +1 -1
- package/dist/enums/diagnosticCategory.js.map +1 -1
- package/dist/enums/diagnosticDirectivePolicy.d.ts +2 -0
- package/dist/enums/diagnosticDirectivePolicy.d.ts.map +1 -0
- package/dist/enums/diagnosticDirectivePolicy.enum.d.ts +5 -0
- package/dist/enums/diagnosticDirectivePolicy.enum.d.ts.map +1 -0
- package/dist/enums/diagnosticDirectivePolicy.enum.js +7 -0
- package/dist/enums/diagnosticDirectivePolicy.enum.js.map +1 -0
- package/dist/enums/diagnosticDirectivePolicy.js +7 -0
- package/dist/enums/diagnosticDirectivePolicy.js.map +1 -0
- package/dist/enums/elementFlags.enum.js +1 -1
- package/dist/enums/elementFlags.enum.js.map +1 -1
- package/dist/enums/elementFlags.js +1 -1
- package/dist/enums/elementFlags.js.map +1 -1
- package/dist/enums/emitOnly.d.ts +2 -0
- package/dist/enums/emitOnly.d.ts.map +1 -0
- package/dist/enums/emitOnly.enum.d.ts +6 -0
- package/dist/enums/emitOnly.enum.d.ts.map +1 -0
- package/dist/enums/emitOnly.enum.js +8 -0
- package/dist/enums/emitOnly.enum.js.map +1 -0
- package/dist/enums/emitOnly.js +8 -0
- package/dist/enums/emitOnly.js.map +1 -0
- package/dist/enums/indexKind.d.ts +2 -0
- package/dist/enums/indexKind.d.ts.map +1 -0
- package/dist/enums/indexKind.enum.d.ts +5 -0
- package/dist/enums/indexKind.enum.d.ts.map +1 -0
- package/dist/enums/indexKind.enum.js +7 -0
- package/dist/enums/indexKind.enum.js.map +1 -0
- package/dist/enums/indexKind.js +7 -0
- package/dist/enums/indexKind.js.map +1 -0
- package/dist/enums/internalSymbolName.enum.js +1 -1
- package/dist/enums/internalSymbolName.enum.js.map +1 -1
- package/dist/enums/internalSymbolName.js +1 -1
- package/dist/enums/internalSymbolName.js.map +1 -1
- package/dist/enums/jsDeclarationKind.d.ts +2 -0
- package/dist/enums/jsDeclarationKind.d.ts.map +1 -0
- package/dist/enums/jsDeclarationKind.enum.d.ts +10 -0
- package/dist/enums/jsDeclarationKind.enum.d.ts.map +1 -0
- package/dist/enums/jsDeclarationKind.enum.js +12 -0
- package/dist/enums/jsDeclarationKind.enum.js.map +1 -0
- package/dist/enums/jsDeclarationKind.js +12 -0
- package/dist/enums/jsDeclarationKind.js.map +1 -0
- package/dist/enums/jsxEmit.enum.d.ts +2 -2
- package/dist/enums/jsxEmit.enum.d.ts.map +1 -1
- package/dist/enums/jsxEmit.enum.js +3 -3
- package/dist/enums/jsxEmit.enum.js.map +1 -1
- package/dist/enums/jsxEmit.js +3 -3
- package/dist/enums/jsxEmit.js.map +1 -1
- package/dist/enums/modifierFlags.enum.js +1 -1
- package/dist/enums/modifierFlags.enum.js.map +1 -1
- package/dist/enums/modifierFlags.js +1 -1
- package/dist/enums/modifierFlags.js.map +1 -1
- package/dist/enums/moduleDetectionKind.enum.js +1 -1
- package/dist/enums/moduleDetectionKind.enum.js.map +1 -1
- package/dist/enums/moduleDetectionKind.js +1 -1
- package/dist/enums/moduleDetectionKind.js.map +1 -1
- package/dist/enums/moduleKind.enum.js +1 -1
- package/dist/enums/moduleKind.enum.js.map +1 -1
- package/dist/enums/moduleKind.js +1 -1
- package/dist/enums/moduleKind.js.map +1 -1
- package/dist/enums/moduleResolutionKind.enum.js +1 -1
- package/dist/enums/moduleResolutionKind.enum.js.map +1 -1
- package/dist/enums/moduleResolutionKind.js +1 -1
- package/dist/enums/moduleResolutionKind.js.map +1 -1
- package/dist/enums/newLineKind.enum.js +1 -1
- package/dist/enums/newLineKind.enum.js.map +1 -1
- package/dist/enums/newLineKind.js +1 -1
- package/dist/enums/newLineKind.js.map +1 -1
- package/dist/enums/nodeBuilderFlags.enum.js +1 -1
- package/dist/enums/nodeBuilderFlags.enum.js.map +1 -1
- package/dist/enums/nodeBuilderFlags.js +1 -1
- package/dist/enums/nodeBuilderFlags.js.map +1 -1
- package/dist/enums/nodeFlags.enum.js +1 -1
- package/dist/enums/nodeFlags.enum.js.map +1 -1
- package/dist/enums/nodeFlags.js +1 -1
- package/dist/enums/nodeFlags.js.map +1 -1
- package/dist/enums/objectFlags.enum.d.ts +3 -2
- package/dist/enums/objectFlags.enum.d.ts.map +1 -1
- package/dist/enums/objectFlags.enum.js +4 -3
- package/dist/enums/objectFlags.enum.js.map +1 -1
- package/dist/enums/objectFlags.js +4 -3
- package/dist/enums/objectFlags.js.map +1 -1
- package/dist/enums/outerExpressionKinds.enum.js +1 -1
- package/dist/enums/outerExpressionKinds.enum.js.map +1 -1
- package/dist/enums/outerExpressionKinds.js +1 -1
- package/dist/enums/outerExpressionKinds.js.map +1 -1
- package/dist/enums/scriptKind.d.ts.map +1 -1
- package/dist/enums/scriptKind.enum.d.ts +1 -3
- package/dist/enums/scriptKind.enum.d.ts.map +1 -1
- package/dist/enums/scriptKind.enum.js +1 -2
- package/dist/enums/scriptKind.enum.js.map +1 -1
- package/dist/enums/scriptKind.js +1 -2
- package/dist/enums/scriptKind.js.map +1 -1
- package/dist/enums/scriptTarget.d.ts.map +1 -1
- package/dist/enums/scriptTarget.enum.d.ts +1 -0
- package/dist/enums/scriptTarget.enum.d.ts.map +1 -1
- package/dist/enums/scriptTarget.enum.js +2 -0
- package/dist/enums/scriptTarget.enum.js.map +1 -1
- package/dist/enums/scriptTarget.js +2 -0
- package/dist/enums/scriptTarget.js.map +1 -1
- package/dist/enums/signatureFlags.enum.js +1 -1
- package/dist/enums/signatureFlags.enum.js.map +1 -1
- package/dist/enums/signatureFlags.js +1 -1
- package/dist/enums/signatureFlags.js.map +1 -1
- package/dist/enums/signatureKind.enum.js +1 -1
- package/dist/enums/signatureKind.enum.js.map +1 -1
- package/dist/enums/signatureKind.js +1 -1
- package/dist/enums/signatureKind.js.map +1 -1
- package/dist/enums/spanMapFeature.d.ts +2 -0
- package/dist/enums/spanMapFeature.d.ts.map +1 -0
- package/dist/enums/spanMapFeature.enum.d.ts +25 -0
- package/dist/enums/spanMapFeature.enum.d.ts.map +1 -0
- package/dist/enums/spanMapFeature.enum.js +27 -0
- package/dist/enums/spanMapFeature.enum.js.map +1 -0
- package/dist/enums/spanMapFeature.js +27 -0
- package/dist/enums/spanMapFeature.js.map +1 -0
- package/dist/enums/spanMapFidelity.d.ts +2 -0
- package/dist/enums/spanMapFidelity.d.ts.map +1 -0
- package/dist/enums/spanMapFidelity.enum.d.ts +7 -0
- package/dist/enums/spanMapFidelity.enum.d.ts.map +1 -0
- package/dist/enums/spanMapFidelity.enum.js +9 -0
- package/dist/enums/spanMapFidelity.enum.js.map +1 -0
- package/dist/enums/spanMapFidelity.js +9 -0
- package/dist/enums/spanMapFidelity.js.map +1 -0
- package/dist/enums/spanMapKind.d.ts +2 -0
- package/dist/enums/spanMapKind.d.ts.map +1 -0
- package/dist/enums/spanMapKind.enum.d.ts +6 -0
- package/dist/enums/spanMapKind.enum.d.ts.map +1 -0
- package/dist/enums/spanMapKind.enum.js +8 -0
- package/dist/enums/spanMapKind.enum.js.map +1 -0
- package/dist/enums/spanMapKind.js +8 -0
- package/dist/enums/spanMapKind.js.map +1 -0
- package/dist/enums/symbolFlags.enum.d.ts +1 -2
- package/dist/enums/symbolFlags.enum.d.ts.map +1 -1
- package/dist/enums/symbolFlags.enum.js +2 -3
- package/dist/enums/symbolFlags.enum.js.map +1 -1
- package/dist/enums/symbolFlags.js +2 -3
- package/dist/enums/symbolFlags.js.map +1 -1
- package/dist/enums/symbolOwnerKind.d.ts +2 -0
- package/dist/enums/symbolOwnerKind.d.ts.map +1 -0
- package/dist/enums/symbolOwnerKind.enum.d.ts +5 -0
- package/dist/enums/symbolOwnerKind.enum.d.ts.map +1 -0
- package/dist/enums/symbolOwnerKind.enum.js +7 -0
- package/dist/enums/symbolOwnerKind.enum.js.map +1 -0
- package/dist/enums/symbolOwnerKind.js +7 -0
- package/dist/enums/symbolOwnerKind.js.map +1 -0
- package/dist/enums/syntaxKind.enum.d.ts +198 -197
- package/dist/enums/syntaxKind.enum.d.ts.map +1 -1
- package/dist/enums/syntaxKind.enum.js +199 -198
- package/dist/enums/syntaxKind.enum.js.map +1 -1
- package/dist/enums/syntaxKind.js +199 -198
- package/dist/enums/syntaxKind.js.map +1 -1
- package/dist/enums/tokenFlags.enum.js +1 -1
- package/dist/enums/tokenFlags.enum.js.map +1 -1
- package/dist/enums/tokenFlags.js +1 -1
- package/dist/enums/tokenFlags.js.map +1 -1
- package/dist/enums/typeFlags.enum.js +1 -1
- package/dist/enums/typeFlags.enum.js.map +1 -1
- package/dist/enums/typeFlags.js +1 -1
- package/dist/enums/typeFlags.js.map +1 -1
- package/dist/enums/typeFormatFlags.d.ts +2 -0
- package/dist/enums/typeFormatFlags.d.ts.map +1 -0
- package/dist/enums/typeFormatFlags.enum.d.ts +29 -0
- package/dist/enums/typeFormatFlags.enum.d.ts.map +1 -0
- package/dist/enums/typeFormatFlags.enum.js +31 -0
- package/dist/enums/typeFormatFlags.enum.js.map +1 -0
- package/dist/enums/typeFormatFlags.js +31 -0
- package/dist/enums/typeFormatFlags.js.map +1 -0
- package/dist/enums/typePredicateKind.enum.js +1 -1
- package/dist/enums/typePredicateKind.enum.js.map +1 -1
- package/dist/enums/typePredicateKind.js +1 -1
- package/dist/enums/typePredicateKind.js.map +1 -1
- package/dist/internal/utils.js.map +1 -1
- package/dist/vscode/extensionApi.d.ts +101 -0
- package/dist/vscode/extensionApi.d.ts.map +1 -0
- package/dist/vscode/extensionApi.js +2 -0
- package/dist/vscode/extensionApi.js.map +1 -0
- package/dist/vscode/moduleLoader.d.ts +14 -0
- package/dist/vscode/moduleLoader.d.ts.map +1 -0
- package/dist/vscode/moduleLoader.js +36 -0
- package/dist/vscode/moduleLoader.js.map +1 -0
- package/dist/vscode/protocol.generated.d.ts +2886 -0
- package/dist/vscode/protocol.generated.d.ts.map +1 -0
- package/dist/vscode/protocol.generated.js +4 -0
- package/dist/vscode/protocol.generated.js.map +1 -0
- package/lib/getExePath.js +2 -2
- package/lib/version.cjs +1 -1
- package/lib/version.d.cts +1 -1
- package/package.json +40 -34
- package/schemas/jsconfig.schema.json +2207 -0
- package/schemas/tsconfig.schema.json +2206 -0
- package/vendor/vscode-jsonrpc/lib/node/main.js +1 -1
- package/vendor/vscode-jsonrpc/package.json +1 -1
- package/dist/api/compilerOptions.d.ts +0 -109
- package/dist/api/compilerOptions.d.ts.map +0 -1
- package/dist/api/compilerOptions.js +0 -2
- package/dist/api/compilerOptions.js.map +0 -1
package/dist/ast/is.generated.js
CHANGED
|
@@ -1,110 +1,145 @@
|
|
|
1
|
-
// Code generated by
|
|
1
|
+
// Code generated by tools/scripts/tsc/generate-ts-ast.ts. DO NOT EDIT.
|
|
2
2
|
import { SyntaxKind } from "#enums/syntaxKind";
|
|
3
3
|
export function isToken(node) {
|
|
4
4
|
return isTokenKind(node.kind);
|
|
5
5
|
}
|
|
6
|
+
isToken.Handle = isToken;
|
|
6
7
|
export function isIdentifier(node) {
|
|
7
8
|
return node.kind === SyntaxKind.Identifier;
|
|
8
9
|
}
|
|
10
|
+
isIdentifier.Handle = isIdentifier;
|
|
9
11
|
export function isPrivateIdentifier(node) {
|
|
10
12
|
return node.kind === SyntaxKind.PrivateIdentifier;
|
|
11
13
|
}
|
|
14
|
+
isPrivateIdentifier.Handle = isPrivateIdentifier;
|
|
12
15
|
export function isQualifiedName(node) {
|
|
13
16
|
return node.kind === SyntaxKind.QualifiedName;
|
|
14
17
|
}
|
|
18
|
+
isQualifiedName.Handle = isQualifiedName;
|
|
15
19
|
export function isComputedPropertyName(node) {
|
|
16
20
|
return node.kind === SyntaxKind.ComputedPropertyName;
|
|
17
21
|
}
|
|
22
|
+
isComputedPropertyName.Handle = isComputedPropertyName;
|
|
18
23
|
export function isDecorator(node) {
|
|
19
24
|
return node.kind === SyntaxKind.Decorator;
|
|
20
25
|
}
|
|
26
|
+
isDecorator.Handle = isDecorator;
|
|
21
27
|
export function isEmptyStatement(node) {
|
|
22
28
|
return node.kind === SyntaxKind.EmptyStatement;
|
|
23
29
|
}
|
|
30
|
+
isEmptyStatement.Handle = isEmptyStatement;
|
|
24
31
|
export function isIfStatement(node) {
|
|
25
32
|
return node.kind === SyntaxKind.IfStatement;
|
|
26
33
|
}
|
|
34
|
+
isIfStatement.Handle = isIfStatement;
|
|
27
35
|
export function isDoStatement(node) {
|
|
28
36
|
return node.kind === SyntaxKind.DoStatement;
|
|
29
37
|
}
|
|
38
|
+
isDoStatement.Handle = isDoStatement;
|
|
30
39
|
export function isWhileStatement(node) {
|
|
31
40
|
return node.kind === SyntaxKind.WhileStatement;
|
|
32
41
|
}
|
|
42
|
+
isWhileStatement.Handle = isWhileStatement;
|
|
33
43
|
export function isForStatement(node) {
|
|
34
44
|
return node.kind === SyntaxKind.ForStatement;
|
|
35
45
|
}
|
|
46
|
+
isForStatement.Handle = isForStatement;
|
|
36
47
|
export function isBreakStatement(node) {
|
|
37
48
|
return node.kind === SyntaxKind.BreakStatement;
|
|
38
49
|
}
|
|
50
|
+
isBreakStatement.Handle = isBreakStatement;
|
|
39
51
|
export function isContinueStatement(node) {
|
|
40
52
|
return node.kind === SyntaxKind.ContinueStatement;
|
|
41
53
|
}
|
|
54
|
+
isContinueStatement.Handle = isContinueStatement;
|
|
42
55
|
export function isReturnStatement(node) {
|
|
43
56
|
return node.kind === SyntaxKind.ReturnStatement;
|
|
44
57
|
}
|
|
58
|
+
isReturnStatement.Handle = isReturnStatement;
|
|
45
59
|
export function isWithStatement(node) {
|
|
46
60
|
return node.kind === SyntaxKind.WithStatement;
|
|
47
61
|
}
|
|
62
|
+
isWithStatement.Handle = isWithStatement;
|
|
48
63
|
export function isSwitchStatement(node) {
|
|
49
64
|
return node.kind === SyntaxKind.SwitchStatement;
|
|
50
65
|
}
|
|
66
|
+
isSwitchStatement.Handle = isSwitchStatement;
|
|
51
67
|
export function isCaseBlock(node) {
|
|
52
68
|
return node.kind === SyntaxKind.CaseBlock;
|
|
53
69
|
}
|
|
70
|
+
isCaseBlock.Handle = isCaseBlock;
|
|
54
71
|
export function isThrowStatement(node) {
|
|
55
72
|
return node.kind === SyntaxKind.ThrowStatement;
|
|
56
73
|
}
|
|
74
|
+
isThrowStatement.Handle = isThrowStatement;
|
|
57
75
|
export function isTryStatement(node) {
|
|
58
76
|
return node.kind === SyntaxKind.TryStatement;
|
|
59
77
|
}
|
|
78
|
+
isTryStatement.Handle = isTryStatement;
|
|
60
79
|
export function isCatchClause(node) {
|
|
61
80
|
return node.kind === SyntaxKind.CatchClause;
|
|
62
81
|
}
|
|
82
|
+
isCatchClause.Handle = isCatchClause;
|
|
63
83
|
export function isDebuggerStatement(node) {
|
|
64
84
|
return node.kind === SyntaxKind.DebuggerStatement;
|
|
65
85
|
}
|
|
86
|
+
isDebuggerStatement.Handle = isDebuggerStatement;
|
|
66
87
|
export function isLabeledStatement(node) {
|
|
67
88
|
return node.kind === SyntaxKind.LabeledStatement;
|
|
68
89
|
}
|
|
90
|
+
isLabeledStatement.Handle = isLabeledStatement;
|
|
69
91
|
export function isExpressionStatement(node) {
|
|
70
92
|
return node.kind === SyntaxKind.ExpressionStatement;
|
|
71
93
|
}
|
|
94
|
+
isExpressionStatement.Handle = isExpressionStatement;
|
|
72
95
|
export function isBlock(node) {
|
|
73
96
|
return node.kind === SyntaxKind.Block;
|
|
74
97
|
}
|
|
98
|
+
isBlock.Handle = isBlock;
|
|
75
99
|
export function isVariableStatement(node) {
|
|
76
100
|
return node.kind === SyntaxKind.VariableStatement;
|
|
77
101
|
}
|
|
102
|
+
isVariableStatement.Handle = isVariableStatement;
|
|
78
103
|
export function isVariableDeclaration(node) {
|
|
79
104
|
return node.kind === SyntaxKind.VariableDeclaration;
|
|
80
105
|
}
|
|
106
|
+
isVariableDeclaration.Handle = isVariableDeclaration;
|
|
81
107
|
export function isVariableDeclarationList(node) {
|
|
82
108
|
return node.kind === SyntaxKind.VariableDeclarationList;
|
|
83
109
|
}
|
|
110
|
+
isVariableDeclarationList.Handle = isVariableDeclarationList;
|
|
84
111
|
export function isParameterDeclaration(node) {
|
|
85
112
|
return node.kind === SyntaxKind.Parameter;
|
|
86
113
|
}
|
|
114
|
+
isParameterDeclaration.Handle = isParameterDeclaration;
|
|
87
115
|
export function isBindingElement(node) {
|
|
88
116
|
return node.kind === SyntaxKind.BindingElement;
|
|
89
117
|
}
|
|
118
|
+
isBindingElement.Handle = isBindingElement;
|
|
90
119
|
export function isMissingDeclaration(node) {
|
|
91
120
|
return node.kind === SyntaxKind.MissingDeclaration;
|
|
92
121
|
}
|
|
122
|
+
isMissingDeclaration.Handle = isMissingDeclaration;
|
|
93
123
|
export function isFunctionDeclaration(node) {
|
|
94
124
|
return node.kind === SyntaxKind.FunctionDeclaration;
|
|
95
125
|
}
|
|
126
|
+
isFunctionDeclaration.Handle = isFunctionDeclaration;
|
|
96
127
|
export function isClassDeclaration(node) {
|
|
97
128
|
return node.kind === SyntaxKind.ClassDeclaration;
|
|
98
129
|
}
|
|
130
|
+
isClassDeclaration.Handle = isClassDeclaration;
|
|
99
131
|
export function isClassExpression(node) {
|
|
100
132
|
return node.kind === SyntaxKind.ClassExpression;
|
|
101
133
|
}
|
|
134
|
+
isClassExpression.Handle = isClassExpression;
|
|
102
135
|
export function isHeritageClause(node) {
|
|
103
136
|
return node.kind === SyntaxKind.HeritageClause;
|
|
104
137
|
}
|
|
138
|
+
isHeritageClause.Handle = isHeritageClause;
|
|
105
139
|
export function isInterfaceDeclaration(node) {
|
|
106
140
|
return node.kind === SyntaxKind.InterfaceDeclaration;
|
|
107
141
|
}
|
|
142
|
+
isInterfaceDeclaration.Handle = isInterfaceDeclaration;
|
|
108
143
|
export function isTypeAliasDeclaration(node) {
|
|
109
144
|
switch (node.kind) {
|
|
110
145
|
case SyntaxKind.TypeAliasDeclaration:
|
|
@@ -114,21 +149,27 @@ export function isTypeAliasDeclaration(node) {
|
|
|
114
149
|
return false;
|
|
115
150
|
}
|
|
116
151
|
}
|
|
152
|
+
isTypeAliasDeclaration.Handle = isTypeAliasDeclaration;
|
|
117
153
|
export function isEnumMember(node) {
|
|
118
154
|
return node.kind === SyntaxKind.EnumMember;
|
|
119
155
|
}
|
|
156
|
+
isEnumMember.Handle = isEnumMember;
|
|
120
157
|
export function isEnumDeclaration(node) {
|
|
121
158
|
return node.kind === SyntaxKind.EnumDeclaration;
|
|
122
159
|
}
|
|
160
|
+
isEnumDeclaration.Handle = isEnumDeclaration;
|
|
123
161
|
export function isModuleBlock(node) {
|
|
124
162
|
return node.kind === SyntaxKind.ModuleBlock;
|
|
125
163
|
}
|
|
164
|
+
isModuleBlock.Handle = isModuleBlock;
|
|
126
165
|
export function isNotEmittedStatement(node) {
|
|
127
166
|
return node.kind === SyntaxKind.NotEmittedStatement;
|
|
128
167
|
}
|
|
168
|
+
isNotEmittedStatement.Handle = isNotEmittedStatement;
|
|
129
169
|
export function isNotEmittedTypeElement(node) {
|
|
130
170
|
return node.kind === SyntaxKind.NotEmittedTypeElement;
|
|
131
171
|
}
|
|
172
|
+
isNotEmittedTypeElement.Handle = isNotEmittedTypeElement;
|
|
132
173
|
export function isImportDeclaration(node) {
|
|
133
174
|
switch (node.kind) {
|
|
134
175
|
case SyntaxKind.ImportDeclaration:
|
|
@@ -138,657 +179,873 @@ export function isImportDeclaration(node) {
|
|
|
138
179
|
return false;
|
|
139
180
|
}
|
|
140
181
|
}
|
|
182
|
+
isImportDeclaration.Handle = isImportDeclaration;
|
|
141
183
|
export function isExternalModuleReference(node) {
|
|
142
184
|
return node.kind === SyntaxKind.ExternalModuleReference;
|
|
143
185
|
}
|
|
186
|
+
isExternalModuleReference.Handle = isExternalModuleReference;
|
|
144
187
|
export function isNamespaceImport(node) {
|
|
145
188
|
return node.kind === SyntaxKind.NamespaceImport;
|
|
146
189
|
}
|
|
190
|
+
isNamespaceImport.Handle = isNamespaceImport;
|
|
147
191
|
export function isNamedImports(node) {
|
|
148
192
|
return node.kind === SyntaxKind.NamedImports;
|
|
149
193
|
}
|
|
194
|
+
isNamedImports.Handle = isNamedImports;
|
|
150
195
|
export function isExportAssignment(node) {
|
|
151
196
|
return node.kind === SyntaxKind.ExportAssignment;
|
|
152
197
|
}
|
|
198
|
+
isExportAssignment.Handle = isExportAssignment;
|
|
153
199
|
export function isNamespaceExportDeclaration(node) {
|
|
154
200
|
return node.kind === SyntaxKind.NamespaceExportDeclaration;
|
|
155
201
|
}
|
|
202
|
+
isNamespaceExportDeclaration.Handle = isNamespaceExportDeclaration;
|
|
156
203
|
export function isNamespaceExport(node) {
|
|
157
204
|
return node.kind === SyntaxKind.NamespaceExport;
|
|
158
205
|
}
|
|
206
|
+
isNamespaceExport.Handle = isNamespaceExport;
|
|
159
207
|
export function isNamedExports(node) {
|
|
160
208
|
return node.kind === SyntaxKind.NamedExports;
|
|
161
209
|
}
|
|
210
|
+
isNamedExports.Handle = isNamedExports;
|
|
162
211
|
export function isExportSpecifier(node) {
|
|
163
212
|
return node.kind === SyntaxKind.ExportSpecifier;
|
|
164
213
|
}
|
|
214
|
+
isExportSpecifier.Handle = isExportSpecifier;
|
|
165
215
|
export function isCallSignatureDeclaration(node) {
|
|
166
216
|
return node.kind === SyntaxKind.CallSignature;
|
|
167
217
|
}
|
|
218
|
+
isCallSignatureDeclaration.Handle = isCallSignatureDeclaration;
|
|
168
219
|
export function isConstructSignatureDeclaration(node) {
|
|
169
220
|
return node.kind === SyntaxKind.ConstructSignature;
|
|
170
221
|
}
|
|
222
|
+
isConstructSignatureDeclaration.Handle = isConstructSignatureDeclaration;
|
|
171
223
|
export function isConstructorDeclaration(node) {
|
|
172
224
|
return node.kind === SyntaxKind.Constructor;
|
|
173
225
|
}
|
|
226
|
+
isConstructorDeclaration.Handle = isConstructorDeclaration;
|
|
174
227
|
export function isGetAccessorDeclaration(node) {
|
|
175
228
|
return node.kind === SyntaxKind.GetAccessor;
|
|
176
229
|
}
|
|
230
|
+
isGetAccessorDeclaration.Handle = isGetAccessorDeclaration;
|
|
177
231
|
export function isSetAccessorDeclaration(node) {
|
|
178
232
|
return node.kind === SyntaxKind.SetAccessor;
|
|
179
233
|
}
|
|
234
|
+
isSetAccessorDeclaration.Handle = isSetAccessorDeclaration;
|
|
180
235
|
export function isIndexSignatureDeclaration(node) {
|
|
181
236
|
return node.kind === SyntaxKind.IndexSignature;
|
|
182
237
|
}
|
|
238
|
+
isIndexSignatureDeclaration.Handle = isIndexSignatureDeclaration;
|
|
183
239
|
export function isMethodSignatureDeclaration(node) {
|
|
184
240
|
return node.kind === SyntaxKind.MethodSignature;
|
|
185
241
|
}
|
|
242
|
+
isMethodSignatureDeclaration.Handle = isMethodSignatureDeclaration;
|
|
186
243
|
export function isMethodDeclaration(node) {
|
|
187
244
|
return node.kind === SyntaxKind.MethodDeclaration;
|
|
188
245
|
}
|
|
246
|
+
isMethodDeclaration.Handle = isMethodDeclaration;
|
|
189
247
|
export function isPropertySignatureDeclaration(node) {
|
|
190
248
|
return node.kind === SyntaxKind.PropertySignature;
|
|
191
249
|
}
|
|
250
|
+
isPropertySignatureDeclaration.Handle = isPropertySignatureDeclaration;
|
|
192
251
|
export function isPropertyDeclaration(node) {
|
|
193
252
|
return node.kind === SyntaxKind.PropertyDeclaration;
|
|
194
253
|
}
|
|
254
|
+
isPropertyDeclaration.Handle = isPropertyDeclaration;
|
|
195
255
|
export function isSemicolonClassElement(node) {
|
|
196
256
|
return node.kind === SyntaxKind.SemicolonClassElement;
|
|
197
257
|
}
|
|
258
|
+
isSemicolonClassElement.Handle = isSemicolonClassElement;
|
|
198
259
|
export function isClassStaticBlockDeclaration(node) {
|
|
199
260
|
return node.kind === SyntaxKind.ClassStaticBlockDeclaration;
|
|
200
261
|
}
|
|
262
|
+
isClassStaticBlockDeclaration.Handle = isClassStaticBlockDeclaration;
|
|
201
263
|
export function isOmittedExpression(node) {
|
|
202
264
|
return node.kind === SyntaxKind.OmittedExpression;
|
|
203
265
|
}
|
|
266
|
+
isOmittedExpression.Handle = isOmittedExpression;
|
|
204
267
|
export function isKeywordExpression(node) {
|
|
205
268
|
return isKeywordExpressionKind(node.kind);
|
|
206
269
|
}
|
|
270
|
+
isKeywordExpression.Handle = isKeywordExpression;
|
|
207
271
|
export function isStringLiteral(node) {
|
|
208
272
|
return node.kind === SyntaxKind.StringLiteral;
|
|
209
273
|
}
|
|
274
|
+
isStringLiteral.Handle = isStringLiteral;
|
|
210
275
|
export function isNumericLiteral(node) {
|
|
211
276
|
return node.kind === SyntaxKind.NumericLiteral;
|
|
212
277
|
}
|
|
278
|
+
isNumericLiteral.Handle = isNumericLiteral;
|
|
213
279
|
export function isBigIntLiteral(node) {
|
|
214
280
|
return node.kind === SyntaxKind.BigIntLiteral;
|
|
215
281
|
}
|
|
282
|
+
isBigIntLiteral.Handle = isBigIntLiteral;
|
|
216
283
|
export function isRegularExpressionLiteral(node) {
|
|
217
284
|
return node.kind === SyntaxKind.RegularExpressionLiteral;
|
|
218
285
|
}
|
|
286
|
+
isRegularExpressionLiteral.Handle = isRegularExpressionLiteral;
|
|
219
287
|
export function isNoSubstitutionTemplateLiteral(node) {
|
|
220
288
|
return node.kind === SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
221
289
|
}
|
|
290
|
+
isNoSubstitutionTemplateLiteral.Handle = isNoSubstitutionTemplateLiteral;
|
|
222
291
|
export function isBinaryExpression(node) {
|
|
223
292
|
return node.kind === SyntaxKind.BinaryExpression;
|
|
224
293
|
}
|
|
294
|
+
isBinaryExpression.Handle = isBinaryExpression;
|
|
225
295
|
export function isPrefixUnaryExpression(node) {
|
|
226
296
|
return node.kind === SyntaxKind.PrefixUnaryExpression;
|
|
227
297
|
}
|
|
298
|
+
isPrefixUnaryExpression.Handle = isPrefixUnaryExpression;
|
|
228
299
|
export function isPostfixUnaryExpression(node) {
|
|
229
300
|
return node.kind === SyntaxKind.PostfixUnaryExpression;
|
|
230
301
|
}
|
|
302
|
+
isPostfixUnaryExpression.Handle = isPostfixUnaryExpression;
|
|
231
303
|
export function isYieldExpression(node) {
|
|
232
304
|
return node.kind === SyntaxKind.YieldExpression;
|
|
233
305
|
}
|
|
306
|
+
isYieldExpression.Handle = isYieldExpression;
|
|
234
307
|
export function isArrowFunction(node) {
|
|
235
308
|
return node.kind === SyntaxKind.ArrowFunction;
|
|
236
309
|
}
|
|
310
|
+
isArrowFunction.Handle = isArrowFunction;
|
|
237
311
|
export function isFunctionExpression(node) {
|
|
238
312
|
return node.kind === SyntaxKind.FunctionExpression;
|
|
239
313
|
}
|
|
314
|
+
isFunctionExpression.Handle = isFunctionExpression;
|
|
240
315
|
export function isAsExpression(node) {
|
|
241
316
|
return node.kind === SyntaxKind.AsExpression;
|
|
242
317
|
}
|
|
318
|
+
isAsExpression.Handle = isAsExpression;
|
|
243
319
|
export function isSatisfiesExpression(node) {
|
|
244
320
|
return node.kind === SyntaxKind.SatisfiesExpression;
|
|
245
321
|
}
|
|
322
|
+
isSatisfiesExpression.Handle = isSatisfiesExpression;
|
|
246
323
|
export function isConditionalExpression(node) {
|
|
247
324
|
return node.kind === SyntaxKind.ConditionalExpression;
|
|
248
325
|
}
|
|
326
|
+
isConditionalExpression.Handle = isConditionalExpression;
|
|
249
327
|
export function isPropertyAccessExpression(node) {
|
|
250
328
|
return node.kind === SyntaxKind.PropertyAccessExpression;
|
|
251
329
|
}
|
|
330
|
+
isPropertyAccessExpression.Handle = isPropertyAccessExpression;
|
|
252
331
|
export function isElementAccessExpression(node) {
|
|
253
332
|
return node.kind === SyntaxKind.ElementAccessExpression;
|
|
254
333
|
}
|
|
334
|
+
isElementAccessExpression.Handle = isElementAccessExpression;
|
|
255
335
|
export function isCallExpression(node) {
|
|
256
336
|
return node.kind === SyntaxKind.CallExpression;
|
|
257
337
|
}
|
|
338
|
+
isCallExpression.Handle = isCallExpression;
|
|
258
339
|
export function isNewExpression(node) {
|
|
259
340
|
return node.kind === SyntaxKind.NewExpression;
|
|
260
341
|
}
|
|
342
|
+
isNewExpression.Handle = isNewExpression;
|
|
261
343
|
export function isMetaProperty(node) {
|
|
262
344
|
return node.kind === SyntaxKind.MetaProperty;
|
|
263
345
|
}
|
|
346
|
+
isMetaProperty.Handle = isMetaProperty;
|
|
264
347
|
export function isNonNullExpression(node) {
|
|
265
348
|
return node.kind === SyntaxKind.NonNullExpression;
|
|
266
349
|
}
|
|
350
|
+
isNonNullExpression.Handle = isNonNullExpression;
|
|
267
351
|
export function isSpreadElement(node) {
|
|
268
352
|
return node.kind === SyntaxKind.SpreadElement;
|
|
269
353
|
}
|
|
354
|
+
isSpreadElement.Handle = isSpreadElement;
|
|
270
355
|
export function isTemplateExpression(node) {
|
|
271
356
|
return node.kind === SyntaxKind.TemplateExpression;
|
|
272
357
|
}
|
|
358
|
+
isTemplateExpression.Handle = isTemplateExpression;
|
|
273
359
|
export function isTemplateSpan(node) {
|
|
274
360
|
return node.kind === SyntaxKind.TemplateSpan;
|
|
275
361
|
}
|
|
362
|
+
isTemplateSpan.Handle = isTemplateSpan;
|
|
276
363
|
export function isTaggedTemplateExpression(node) {
|
|
277
364
|
return node.kind === SyntaxKind.TaggedTemplateExpression;
|
|
278
365
|
}
|
|
366
|
+
isTaggedTemplateExpression.Handle = isTaggedTemplateExpression;
|
|
279
367
|
export function isParenthesizedExpression(node) {
|
|
280
368
|
return node.kind === SyntaxKind.ParenthesizedExpression;
|
|
281
369
|
}
|
|
370
|
+
isParenthesizedExpression.Handle = isParenthesizedExpression;
|
|
282
371
|
export function isArrayLiteralExpression(node) {
|
|
283
372
|
return node.kind === SyntaxKind.ArrayLiteralExpression;
|
|
284
373
|
}
|
|
374
|
+
isArrayLiteralExpression.Handle = isArrayLiteralExpression;
|
|
285
375
|
export function isObjectLiteralExpression(node) {
|
|
286
376
|
return node.kind === SyntaxKind.ObjectLiteralExpression;
|
|
287
377
|
}
|
|
378
|
+
isObjectLiteralExpression.Handle = isObjectLiteralExpression;
|
|
288
379
|
export function isSpreadAssignment(node) {
|
|
289
380
|
return node.kind === SyntaxKind.SpreadAssignment;
|
|
290
381
|
}
|
|
382
|
+
isSpreadAssignment.Handle = isSpreadAssignment;
|
|
291
383
|
export function isPropertyAssignment(node) {
|
|
292
384
|
return node.kind === SyntaxKind.PropertyAssignment;
|
|
293
385
|
}
|
|
386
|
+
isPropertyAssignment.Handle = isPropertyAssignment;
|
|
294
387
|
export function isShorthandPropertyAssignment(node) {
|
|
295
388
|
return node.kind === SyntaxKind.ShorthandPropertyAssignment;
|
|
296
389
|
}
|
|
390
|
+
isShorthandPropertyAssignment.Handle = isShorthandPropertyAssignment;
|
|
297
391
|
export function isDeleteExpression(node) {
|
|
298
392
|
return node.kind === SyntaxKind.DeleteExpression;
|
|
299
393
|
}
|
|
394
|
+
isDeleteExpression.Handle = isDeleteExpression;
|
|
300
395
|
export function isTypeOfExpression(node) {
|
|
301
396
|
return node.kind === SyntaxKind.TypeOfExpression;
|
|
302
397
|
}
|
|
398
|
+
isTypeOfExpression.Handle = isTypeOfExpression;
|
|
303
399
|
export function isVoidExpression(node) {
|
|
304
400
|
return node.kind === SyntaxKind.VoidExpression;
|
|
305
401
|
}
|
|
402
|
+
isVoidExpression.Handle = isVoidExpression;
|
|
306
403
|
export function isAwaitExpression(node) {
|
|
307
404
|
return node.kind === SyntaxKind.AwaitExpression;
|
|
308
405
|
}
|
|
406
|
+
isAwaitExpression.Handle = isAwaitExpression;
|
|
309
407
|
export function isTypeAssertion(node) {
|
|
310
408
|
return node.kind === SyntaxKind.TypeAssertionExpression;
|
|
311
409
|
}
|
|
410
|
+
isTypeAssertion.Handle = isTypeAssertion;
|
|
312
411
|
export function isKeywordTypeNode(node) {
|
|
313
412
|
return isKeywordTypeKind(node.kind);
|
|
314
413
|
}
|
|
414
|
+
isKeywordTypeNode.Handle = isKeywordTypeNode;
|
|
315
415
|
export function isUnionTypeNode(node) {
|
|
316
416
|
return node.kind === SyntaxKind.UnionType;
|
|
317
417
|
}
|
|
418
|
+
isUnionTypeNode.Handle = isUnionTypeNode;
|
|
318
419
|
export function isIntersectionTypeNode(node) {
|
|
319
420
|
return node.kind === SyntaxKind.IntersectionType;
|
|
320
421
|
}
|
|
422
|
+
isIntersectionTypeNode.Handle = isIntersectionTypeNode;
|
|
321
423
|
export function isConditionalTypeNode(node) {
|
|
322
424
|
return node.kind === SyntaxKind.ConditionalType;
|
|
323
425
|
}
|
|
426
|
+
isConditionalTypeNode.Handle = isConditionalTypeNode;
|
|
324
427
|
export function isTypeOperatorNode(node) {
|
|
325
428
|
return node.kind === SyntaxKind.TypeOperator;
|
|
326
429
|
}
|
|
430
|
+
isTypeOperatorNode.Handle = isTypeOperatorNode;
|
|
327
431
|
export function isInferTypeNode(node) {
|
|
328
432
|
return node.kind === SyntaxKind.InferType;
|
|
329
433
|
}
|
|
434
|
+
isInferTypeNode.Handle = isInferTypeNode;
|
|
330
435
|
export function isArrayTypeNode(node) {
|
|
331
436
|
return node.kind === SyntaxKind.ArrayType;
|
|
332
437
|
}
|
|
438
|
+
isArrayTypeNode.Handle = isArrayTypeNode;
|
|
333
439
|
export function isIndexedAccessTypeNode(node) {
|
|
334
440
|
return node.kind === SyntaxKind.IndexedAccessType;
|
|
335
441
|
}
|
|
442
|
+
isIndexedAccessTypeNode.Handle = isIndexedAccessTypeNode;
|
|
336
443
|
export function isTypeReferenceNode(node) {
|
|
337
444
|
return node.kind === SyntaxKind.TypeReference;
|
|
338
445
|
}
|
|
446
|
+
isTypeReferenceNode.Handle = isTypeReferenceNode;
|
|
339
447
|
export function isExpressionWithTypeArguments(node) {
|
|
340
448
|
return node.kind === SyntaxKind.ExpressionWithTypeArguments;
|
|
341
449
|
}
|
|
450
|
+
isExpressionWithTypeArguments.Handle = isExpressionWithTypeArguments;
|
|
342
451
|
export function isLiteralTypeNode(node) {
|
|
343
452
|
return node.kind === SyntaxKind.LiteralType;
|
|
344
453
|
}
|
|
454
|
+
isLiteralTypeNode.Handle = isLiteralTypeNode;
|
|
345
455
|
export function isThisTypeNode(node) {
|
|
346
456
|
return node.kind === SyntaxKind.ThisType;
|
|
347
457
|
}
|
|
458
|
+
isThisTypeNode.Handle = isThisTypeNode;
|
|
348
459
|
export function isTypePredicateNode(node) {
|
|
349
460
|
return node.kind === SyntaxKind.TypePredicate;
|
|
350
461
|
}
|
|
462
|
+
isTypePredicateNode.Handle = isTypePredicateNode;
|
|
351
463
|
export function isImportAttribute(node) {
|
|
352
464
|
return node.kind === SyntaxKind.ImportAttribute;
|
|
353
465
|
}
|
|
466
|
+
isImportAttribute.Handle = isImportAttribute;
|
|
354
467
|
export function isImportAttributes(node) {
|
|
355
468
|
return node.kind === SyntaxKind.ImportAttributes;
|
|
356
469
|
}
|
|
470
|
+
isImportAttributes.Handle = isImportAttributes;
|
|
357
471
|
export function isTypeQueryNode(node) {
|
|
358
472
|
return node.kind === SyntaxKind.TypeQuery;
|
|
359
473
|
}
|
|
474
|
+
isTypeQueryNode.Handle = isTypeQueryNode;
|
|
360
475
|
export function isMappedTypeNode(node) {
|
|
361
476
|
return node.kind === SyntaxKind.MappedType;
|
|
362
477
|
}
|
|
478
|
+
isMappedTypeNode.Handle = isMappedTypeNode;
|
|
363
479
|
export function isTypeLiteralNode(node) {
|
|
364
480
|
return node.kind === SyntaxKind.TypeLiteral;
|
|
365
481
|
}
|
|
482
|
+
isTypeLiteralNode.Handle = isTypeLiteralNode;
|
|
366
483
|
export function isTupleTypeNode(node) {
|
|
367
484
|
return node.kind === SyntaxKind.TupleType;
|
|
368
485
|
}
|
|
486
|
+
isTupleTypeNode.Handle = isTupleTypeNode;
|
|
369
487
|
export function isNamedTupleMember(node) {
|
|
370
488
|
return node.kind === SyntaxKind.NamedTupleMember;
|
|
371
489
|
}
|
|
490
|
+
isNamedTupleMember.Handle = isNamedTupleMember;
|
|
372
491
|
export function isOptionalTypeNode(node) {
|
|
373
492
|
return node.kind === SyntaxKind.OptionalType;
|
|
374
493
|
}
|
|
494
|
+
isOptionalTypeNode.Handle = isOptionalTypeNode;
|
|
375
495
|
export function isRestTypeNode(node) {
|
|
376
496
|
return node.kind === SyntaxKind.RestType;
|
|
377
497
|
}
|
|
498
|
+
isRestTypeNode.Handle = isRestTypeNode;
|
|
378
499
|
export function isParenthesizedTypeNode(node) {
|
|
379
500
|
return node.kind === SyntaxKind.ParenthesizedType;
|
|
380
501
|
}
|
|
502
|
+
isParenthesizedTypeNode.Handle = isParenthesizedTypeNode;
|
|
381
503
|
export function isFunctionTypeNode(node) {
|
|
382
504
|
return node.kind === SyntaxKind.FunctionType;
|
|
383
505
|
}
|
|
506
|
+
isFunctionTypeNode.Handle = isFunctionTypeNode;
|
|
384
507
|
export function isConstructorTypeNode(node) {
|
|
385
508
|
return node.kind === SyntaxKind.ConstructorType;
|
|
386
509
|
}
|
|
510
|
+
isConstructorTypeNode.Handle = isConstructorTypeNode;
|
|
387
511
|
export function isTemplateHead(node) {
|
|
388
512
|
return node.kind === SyntaxKind.TemplateHead;
|
|
389
513
|
}
|
|
514
|
+
isTemplateHead.Handle = isTemplateHead;
|
|
390
515
|
export function isTemplateMiddle(node) {
|
|
391
516
|
return node.kind === SyntaxKind.TemplateMiddle;
|
|
392
517
|
}
|
|
518
|
+
isTemplateMiddle.Handle = isTemplateMiddle;
|
|
393
519
|
export function isTemplateTail(node) {
|
|
394
520
|
return node.kind === SyntaxKind.TemplateTail;
|
|
395
521
|
}
|
|
522
|
+
isTemplateTail.Handle = isTemplateTail;
|
|
396
523
|
export function isTemplateLiteralTypeNode(node) {
|
|
397
524
|
return node.kind === SyntaxKind.TemplateLiteralType;
|
|
398
525
|
}
|
|
526
|
+
isTemplateLiteralTypeNode.Handle = isTemplateLiteralTypeNode;
|
|
399
527
|
export function isTemplateLiteralTypeSpan(node) {
|
|
400
528
|
return node.kind === SyntaxKind.TemplateLiteralTypeSpan;
|
|
401
529
|
}
|
|
530
|
+
isTemplateLiteralTypeSpan.Handle = isTemplateLiteralTypeSpan;
|
|
402
531
|
export function isSyntheticExpression(node) {
|
|
403
532
|
return node.kind === SyntaxKind.SyntheticExpression;
|
|
404
533
|
}
|
|
534
|
+
isSyntheticExpression.Handle = isSyntheticExpression;
|
|
405
535
|
export function isPartiallyEmittedExpression(node) {
|
|
406
536
|
return node.kind === SyntaxKind.PartiallyEmittedExpression;
|
|
407
537
|
}
|
|
538
|
+
isPartiallyEmittedExpression.Handle = isPartiallyEmittedExpression;
|
|
408
539
|
export function isJsxElement(node) {
|
|
409
540
|
return node.kind === SyntaxKind.JsxElement;
|
|
410
541
|
}
|
|
542
|
+
isJsxElement.Handle = isJsxElement;
|
|
411
543
|
export function isJsxAttributes(node) {
|
|
412
544
|
return node.kind === SyntaxKind.JsxAttributes;
|
|
413
545
|
}
|
|
546
|
+
isJsxAttributes.Handle = isJsxAttributes;
|
|
414
547
|
export function isJsxNamespacedName(node) {
|
|
415
548
|
return node.kind === SyntaxKind.JsxNamespacedName;
|
|
416
549
|
}
|
|
550
|
+
isJsxNamespacedName.Handle = isJsxNamespacedName;
|
|
417
551
|
export function isJsxOpeningElement(node) {
|
|
418
552
|
return node.kind === SyntaxKind.JsxOpeningElement;
|
|
419
553
|
}
|
|
554
|
+
isJsxOpeningElement.Handle = isJsxOpeningElement;
|
|
420
555
|
export function isJsxSelfClosingElement(node) {
|
|
421
556
|
return node.kind === SyntaxKind.JsxSelfClosingElement;
|
|
422
557
|
}
|
|
558
|
+
isJsxSelfClosingElement.Handle = isJsxSelfClosingElement;
|
|
423
559
|
export function isJsxFragment(node) {
|
|
424
560
|
return node.kind === SyntaxKind.JsxFragment;
|
|
425
561
|
}
|
|
562
|
+
isJsxFragment.Handle = isJsxFragment;
|
|
426
563
|
export function isJsxOpeningFragment(node) {
|
|
427
564
|
return node.kind === SyntaxKind.JsxOpeningFragment;
|
|
428
565
|
}
|
|
566
|
+
isJsxOpeningFragment.Handle = isJsxOpeningFragment;
|
|
429
567
|
export function isJsxClosingFragment(node) {
|
|
430
568
|
return node.kind === SyntaxKind.JsxClosingFragment;
|
|
431
569
|
}
|
|
570
|
+
isJsxClosingFragment.Handle = isJsxClosingFragment;
|
|
432
571
|
export function isJsxAttribute(node) {
|
|
433
572
|
return node.kind === SyntaxKind.JsxAttribute;
|
|
434
573
|
}
|
|
574
|
+
isJsxAttribute.Handle = isJsxAttribute;
|
|
435
575
|
export function isJsxSpreadAttribute(node) {
|
|
436
576
|
return node.kind === SyntaxKind.JsxSpreadAttribute;
|
|
437
577
|
}
|
|
578
|
+
isJsxSpreadAttribute.Handle = isJsxSpreadAttribute;
|
|
438
579
|
export function isJsxClosingElement(node) {
|
|
439
580
|
return node.kind === SyntaxKind.JsxClosingElement;
|
|
440
581
|
}
|
|
582
|
+
isJsxClosingElement.Handle = isJsxClosingElement;
|
|
441
583
|
export function isJsxExpression(node) {
|
|
442
584
|
return node.kind === SyntaxKind.JsxExpression;
|
|
443
585
|
}
|
|
586
|
+
isJsxExpression.Handle = isJsxExpression;
|
|
444
587
|
export function isJsxText(node) {
|
|
445
588
|
return node.kind === SyntaxKind.JsxText;
|
|
446
589
|
}
|
|
590
|
+
isJsxText.Handle = isJsxText;
|
|
447
591
|
export function isSyntaxList(node) {
|
|
448
592
|
return node.kind === SyntaxKind.SyntaxList;
|
|
449
593
|
}
|
|
594
|
+
isSyntaxList.Handle = isSyntaxList;
|
|
450
595
|
export function isJSDoc(node) {
|
|
451
596
|
return node.kind === SyntaxKind.JSDoc;
|
|
452
597
|
}
|
|
598
|
+
isJSDoc.Handle = isJSDoc;
|
|
453
599
|
export function isJSDocTypeExpression(node) {
|
|
454
600
|
return node.kind === SyntaxKind.JSDocTypeExpression;
|
|
455
601
|
}
|
|
602
|
+
isJSDocTypeExpression.Handle = isJSDocTypeExpression;
|
|
456
603
|
export function isJSDocNonNullableType(node) {
|
|
457
604
|
return node.kind === SyntaxKind.JSDocNonNullableType;
|
|
458
605
|
}
|
|
606
|
+
isJSDocNonNullableType.Handle = isJSDocNonNullableType;
|
|
459
607
|
export function isJSDocNullableType(node) {
|
|
460
608
|
return node.kind === SyntaxKind.JSDocNullableType;
|
|
461
609
|
}
|
|
610
|
+
isJSDocNullableType.Handle = isJSDocNullableType;
|
|
462
611
|
export function isJSDocAllType(node) {
|
|
463
612
|
return node.kind === SyntaxKind.JSDocAllType;
|
|
464
613
|
}
|
|
614
|
+
isJSDocAllType.Handle = isJSDocAllType;
|
|
465
615
|
export function isJSDocVariadicType(node) {
|
|
466
616
|
return node.kind === SyntaxKind.JSDocVariadicType;
|
|
467
617
|
}
|
|
618
|
+
isJSDocVariadicType.Handle = isJSDocVariadicType;
|
|
468
619
|
export function isJSDocOptionalType(node) {
|
|
469
620
|
return node.kind === SyntaxKind.JSDocOptionalType;
|
|
470
621
|
}
|
|
622
|
+
isJSDocOptionalType.Handle = isJSDocOptionalType;
|
|
471
623
|
export function isJSDocTypeTag(node) {
|
|
472
624
|
return node.kind === SyntaxKind.JSDocTypeTag;
|
|
473
625
|
}
|
|
626
|
+
isJSDocTypeTag.Handle = isJSDocTypeTag;
|
|
474
627
|
export function isJSDocUnknownTag(node) {
|
|
475
628
|
return node.kind === SyntaxKind.JSDocUnknownTag;
|
|
476
629
|
}
|
|
630
|
+
isJSDocUnknownTag.Handle = isJSDocUnknownTag;
|
|
477
631
|
export function isJSDocTemplateTag(node) {
|
|
478
632
|
return node.kind === SyntaxKind.JSDocTemplateTag;
|
|
479
633
|
}
|
|
634
|
+
isJSDocTemplateTag.Handle = isJSDocTemplateTag;
|
|
480
635
|
export function isJSDocReturnTag(node) {
|
|
481
636
|
return node.kind === SyntaxKind.JSDocReturnTag;
|
|
482
637
|
}
|
|
638
|
+
isJSDocReturnTag.Handle = isJSDocReturnTag;
|
|
483
639
|
export function isJSDocPublicTag(node) {
|
|
484
640
|
return node.kind === SyntaxKind.JSDocPublicTag;
|
|
485
641
|
}
|
|
642
|
+
isJSDocPublicTag.Handle = isJSDocPublicTag;
|
|
486
643
|
export function isJSDocPrivateTag(node) {
|
|
487
644
|
return node.kind === SyntaxKind.JSDocPrivateTag;
|
|
488
645
|
}
|
|
646
|
+
isJSDocPrivateTag.Handle = isJSDocPrivateTag;
|
|
489
647
|
export function isJSDocProtectedTag(node) {
|
|
490
648
|
return node.kind === SyntaxKind.JSDocProtectedTag;
|
|
491
649
|
}
|
|
650
|
+
isJSDocProtectedTag.Handle = isJSDocProtectedTag;
|
|
492
651
|
export function isJSDocReadonlyTag(node) {
|
|
493
652
|
return node.kind === SyntaxKind.JSDocReadonlyTag;
|
|
494
653
|
}
|
|
654
|
+
isJSDocReadonlyTag.Handle = isJSDocReadonlyTag;
|
|
495
655
|
export function isJSDocOverrideTag(node) {
|
|
496
656
|
return node.kind === SyntaxKind.JSDocOverrideTag;
|
|
497
657
|
}
|
|
658
|
+
isJSDocOverrideTag.Handle = isJSDocOverrideTag;
|
|
498
659
|
export function isJSDocDeprecatedTag(node) {
|
|
499
660
|
return node.kind === SyntaxKind.JSDocDeprecatedTag;
|
|
500
661
|
}
|
|
662
|
+
isJSDocDeprecatedTag.Handle = isJSDocDeprecatedTag;
|
|
501
663
|
export function isJSDocSeeTag(node) {
|
|
502
664
|
return node.kind === SyntaxKind.JSDocSeeTag;
|
|
503
665
|
}
|
|
666
|
+
isJSDocSeeTag.Handle = isJSDocSeeTag;
|
|
504
667
|
export function isJSDocImplementsTag(node) {
|
|
505
668
|
return node.kind === SyntaxKind.JSDocImplementsTag;
|
|
506
669
|
}
|
|
670
|
+
isJSDocImplementsTag.Handle = isJSDocImplementsTag;
|
|
507
671
|
export function isJSDocAugmentsTag(node) {
|
|
508
672
|
return node.kind === SyntaxKind.JSDocAugmentsTag;
|
|
509
673
|
}
|
|
674
|
+
isJSDocAugmentsTag.Handle = isJSDocAugmentsTag;
|
|
510
675
|
export function isJSDocSatisfiesTag(node) {
|
|
511
676
|
return node.kind === SyntaxKind.JSDocSatisfiesTag;
|
|
512
677
|
}
|
|
678
|
+
isJSDocSatisfiesTag.Handle = isJSDocSatisfiesTag;
|
|
513
679
|
export function isJSDocThrowsTag(node) {
|
|
514
680
|
return node.kind === SyntaxKind.JSDocThrowsTag;
|
|
515
681
|
}
|
|
682
|
+
isJSDocThrowsTag.Handle = isJSDocThrowsTag;
|
|
516
683
|
export function isJSDocThisTag(node) {
|
|
517
684
|
return node.kind === SyntaxKind.JSDocThisTag;
|
|
518
685
|
}
|
|
686
|
+
isJSDocThisTag.Handle = isJSDocThisTag;
|
|
519
687
|
export function isJSDocImportTag(node) {
|
|
520
688
|
return node.kind === SyntaxKind.JSDocImportTag;
|
|
521
689
|
}
|
|
690
|
+
isJSDocImportTag.Handle = isJSDocImportTag;
|
|
522
691
|
export function isJSDocCallbackTag(node) {
|
|
523
692
|
return node.kind === SyntaxKind.JSDocCallbackTag;
|
|
524
693
|
}
|
|
694
|
+
isJSDocCallbackTag.Handle = isJSDocCallbackTag;
|
|
525
695
|
export function isJSDocOverloadTag(node) {
|
|
526
696
|
return node.kind === SyntaxKind.JSDocOverloadTag;
|
|
527
697
|
}
|
|
698
|
+
isJSDocOverloadTag.Handle = isJSDocOverloadTag;
|
|
528
699
|
export function isJSDocTypedefTag(node) {
|
|
529
700
|
return node.kind === SyntaxKind.JSDocTypedefTag;
|
|
530
701
|
}
|
|
702
|
+
isJSDocTypedefTag.Handle = isJSDocTypedefTag;
|
|
531
703
|
export function isJSDocSignature(node) {
|
|
532
704
|
return node.kind === SyntaxKind.JSDocSignature;
|
|
533
705
|
}
|
|
706
|
+
isJSDocSignature.Handle = isJSDocSignature;
|
|
534
707
|
export function isJSDocNameReference(node) {
|
|
535
708
|
return node.kind === SyntaxKind.JSDocNameReference;
|
|
536
709
|
}
|
|
710
|
+
isJSDocNameReference.Handle = isJSDocNameReference;
|
|
537
711
|
export function isSourceFile(node) {
|
|
538
712
|
return node.kind === SyntaxKind.SourceFile;
|
|
539
713
|
}
|
|
714
|
+
isSourceFile.Handle = isSourceFile;
|
|
540
715
|
export function isModuleDeclaration(node) {
|
|
541
716
|
return node.kind === SyntaxKind.ModuleDeclaration;
|
|
542
717
|
}
|
|
718
|
+
isModuleDeclaration.Handle = isModuleDeclaration;
|
|
543
719
|
export function isImportEqualsDeclaration(node) {
|
|
544
720
|
return node.kind === SyntaxKind.ImportEqualsDeclaration;
|
|
545
721
|
}
|
|
722
|
+
isImportEqualsDeclaration.Handle = isImportEqualsDeclaration;
|
|
546
723
|
export function isExportDeclaration(node) {
|
|
547
724
|
return node.kind === SyntaxKind.ExportDeclaration;
|
|
548
725
|
}
|
|
726
|
+
isExportDeclaration.Handle = isExportDeclaration;
|
|
549
727
|
export function isImportTypeNode(node) {
|
|
550
728
|
return node.kind === SyntaxKind.ImportType;
|
|
551
729
|
}
|
|
730
|
+
isImportTypeNode.Handle = isImportTypeNode;
|
|
552
731
|
export function isImportClause(node) {
|
|
553
732
|
return node.kind === SyntaxKind.ImportClause;
|
|
554
733
|
}
|
|
734
|
+
isImportClause.Handle = isImportClause;
|
|
555
735
|
export function isImportSpecifier(node) {
|
|
556
736
|
return node.kind === SyntaxKind.ImportSpecifier;
|
|
557
737
|
}
|
|
738
|
+
isImportSpecifier.Handle = isImportSpecifier;
|
|
558
739
|
export function isJSDocText(node) {
|
|
559
740
|
return node.kind === SyntaxKind.JSDocText;
|
|
560
741
|
}
|
|
742
|
+
isJSDocText.Handle = isJSDocText;
|
|
561
743
|
export function isJSDocLink(node) {
|
|
562
744
|
return node.kind === SyntaxKind.JSDocLink;
|
|
563
745
|
}
|
|
746
|
+
isJSDocLink.Handle = isJSDocLink;
|
|
564
747
|
export function isJSDocLinkPlain(node) {
|
|
565
748
|
return node.kind === SyntaxKind.JSDocLinkPlain;
|
|
566
749
|
}
|
|
750
|
+
isJSDocLinkPlain.Handle = isJSDocLinkPlain;
|
|
567
751
|
export function isJSDocLinkCode(node) {
|
|
568
752
|
return node.kind === SyntaxKind.JSDocLinkCode;
|
|
569
753
|
}
|
|
754
|
+
isJSDocLinkCode.Handle = isJSDocLinkCode;
|
|
570
755
|
export function isTypeParameterDeclaration(node) {
|
|
571
756
|
return node.kind === SyntaxKind.TypeParameter;
|
|
572
757
|
}
|
|
758
|
+
isTypeParameterDeclaration.Handle = isTypeParameterDeclaration;
|
|
573
759
|
export function isSyntheticReferenceExpression(node) {
|
|
574
760
|
return node.kind === SyntaxKind.SyntheticReferenceExpression;
|
|
575
761
|
}
|
|
762
|
+
isSyntheticReferenceExpression.Handle = isSyntheticReferenceExpression;
|
|
576
763
|
export function isJSDocTypeLiteral(node) {
|
|
577
764
|
return node.kind === SyntaxKind.JSDocTypeLiteral;
|
|
578
765
|
}
|
|
766
|
+
isJSDocTypeLiteral.Handle = isJSDocTypeLiteral;
|
|
579
767
|
export function isForInStatement(node) {
|
|
580
768
|
return node.kind === SyntaxKind.ForInStatement;
|
|
581
769
|
}
|
|
770
|
+
isForInStatement.Handle = isForInStatement;
|
|
582
771
|
export function isForOfStatement(node) {
|
|
583
772
|
return node.kind === SyntaxKind.ForOfStatement;
|
|
584
773
|
}
|
|
774
|
+
isForOfStatement.Handle = isForOfStatement;
|
|
585
775
|
export function isCaseClause(node) {
|
|
586
776
|
return node.kind === SyntaxKind.CaseClause;
|
|
587
777
|
}
|
|
778
|
+
isCaseClause.Handle = isCaseClause;
|
|
588
779
|
export function isDefaultClause(node) {
|
|
589
780
|
return node.kind === SyntaxKind.DefaultClause;
|
|
590
781
|
}
|
|
782
|
+
isDefaultClause.Handle = isDefaultClause;
|
|
591
783
|
export function isObjectBindingPattern(node) {
|
|
592
784
|
return node.kind === SyntaxKind.ObjectBindingPattern;
|
|
593
785
|
}
|
|
786
|
+
isObjectBindingPattern.Handle = isObjectBindingPattern;
|
|
594
787
|
export function isArrayBindingPattern(node) {
|
|
595
788
|
return node.kind === SyntaxKind.ArrayBindingPattern;
|
|
596
789
|
}
|
|
790
|
+
isArrayBindingPattern.Handle = isArrayBindingPattern;
|
|
597
791
|
export function isJSDocParameterTag(node) {
|
|
598
792
|
return node.kind === SyntaxKind.JSDocParameterTag;
|
|
599
793
|
}
|
|
794
|
+
isJSDocParameterTag.Handle = isJSDocParameterTag;
|
|
600
795
|
export function isJSDocPropertyTag(node) {
|
|
601
796
|
return node.kind === SyntaxKind.JSDocPropertyTag;
|
|
602
797
|
}
|
|
798
|
+
isJSDocPropertyTag.Handle = isJSDocPropertyTag;
|
|
799
|
+
export function isHeritageClauseElement(node) {
|
|
800
|
+
return node.kind === SyntaxKind.ExpressionWithTypeArguments || node.kind === SyntaxKind.TypeReference;
|
|
801
|
+
}
|
|
802
|
+
isHeritageClauseElement.Handle = isHeritageClauseElement;
|
|
603
803
|
export function isAccessExpression(node) {
|
|
604
804
|
return node.kind === SyntaxKind.PropertyAccessExpression || node.kind === SyntaxKind.ElementAccessExpression;
|
|
605
805
|
}
|
|
806
|
+
isAccessExpression.Handle = isAccessExpression;
|
|
606
807
|
export function isDeclarationName(node) {
|
|
607
808
|
const kind = node.kind;
|
|
608
|
-
return kind === SyntaxKind.Identifier || kind === SyntaxKind.PrivateIdentifier || kind === SyntaxKind.StringLiteral || kind === SyntaxKind.NumericLiteral || kind === SyntaxKind.BigIntLiteral || kind === SyntaxKind.NoSubstitutionTemplateLiteral || kind === SyntaxKind.ComputedPropertyName || kind === SyntaxKind.ObjectBindingPattern || kind === SyntaxKind.ArrayBindingPattern || kind === SyntaxKind.ElementAccessExpression;
|
|
809
|
+
return kind === SyntaxKind.Identifier || kind === SyntaxKind.PrivateIdentifier || kind === SyntaxKind.StringLiteral || kind === SyntaxKind.NumericLiteral || kind === SyntaxKind.BigIntLiteral || kind === SyntaxKind.NoSubstitutionTemplateLiteral || kind === SyntaxKind.ComputedPropertyName || kind === SyntaxKind.ObjectBindingPattern || kind === SyntaxKind.ArrayBindingPattern || kind === SyntaxKind.PropertyAccessExpression || kind === SyntaxKind.ElementAccessExpression;
|
|
609
810
|
}
|
|
811
|
+
isDeclarationName.Handle = isDeclarationName;
|
|
610
812
|
export function isModuleName(node) {
|
|
611
813
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.StringLiteral;
|
|
612
814
|
}
|
|
815
|
+
isModuleName.Handle = isModuleName;
|
|
613
816
|
export function isModuleExportName(node) {
|
|
614
817
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.StringLiteral;
|
|
615
818
|
}
|
|
819
|
+
isModuleExportName.Handle = isModuleExportName;
|
|
616
820
|
export function isPropertyName(node) {
|
|
617
821
|
const kind = node.kind;
|
|
618
822
|
return kind === SyntaxKind.Identifier || kind === SyntaxKind.StringLiteral || kind === SyntaxKind.NoSubstitutionTemplateLiteral || kind === SyntaxKind.NumericLiteral || kind === SyntaxKind.ComputedPropertyName || kind === SyntaxKind.PrivateIdentifier || kind === SyntaxKind.BigIntLiteral;
|
|
619
823
|
}
|
|
824
|
+
isPropertyName.Handle = isPropertyName;
|
|
620
825
|
export function isModuleBody(node) {
|
|
621
826
|
return node.kind === SyntaxKind.ModuleBlock || node.kind === SyntaxKind.ModuleDeclaration;
|
|
622
827
|
}
|
|
828
|
+
isModuleBody.Handle = isModuleBody;
|
|
623
829
|
export function isJSDocFullName(node) {
|
|
624
830
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.ModuleDeclaration;
|
|
625
831
|
}
|
|
832
|
+
isJSDocFullName.Handle = isJSDocFullName;
|
|
626
833
|
export function isModuleReference(node) {
|
|
627
834
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.QualifiedName || node.kind === SyntaxKind.ExternalModuleReference;
|
|
628
835
|
}
|
|
836
|
+
isModuleReference.Handle = isModuleReference;
|
|
629
837
|
export function isNamedImportBindings(node) {
|
|
630
838
|
return node.kind === SyntaxKind.NamespaceImport || node.kind === SyntaxKind.NamedImports;
|
|
631
839
|
}
|
|
840
|
+
isNamedImportBindings.Handle = isNamedImportBindings;
|
|
632
841
|
export function isNamedExportBindings(node) {
|
|
633
842
|
return node.kind === SyntaxKind.NamespaceExport || node.kind === SyntaxKind.NamedExports;
|
|
634
843
|
}
|
|
844
|
+
isNamedExportBindings.Handle = isNamedExportBindings;
|
|
635
845
|
export function isMemberName(node) {
|
|
636
846
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.PrivateIdentifier;
|
|
637
847
|
}
|
|
848
|
+
isMemberName.Handle = isMemberName;
|
|
638
849
|
export function isEntityName(node) {
|
|
639
850
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.QualifiedName;
|
|
640
851
|
}
|
|
852
|
+
isEntityName.Handle = isEntityName;
|
|
641
853
|
export function isBindingName(node) {
|
|
642
854
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.ObjectBindingPattern || node.kind === SyntaxKind.ArrayBindingPattern;
|
|
643
855
|
}
|
|
856
|
+
isBindingName.Handle = isBindingName;
|
|
644
857
|
export function isModifierLike(node) {
|
|
645
858
|
const kind = node.kind;
|
|
646
859
|
return kind === SyntaxKind.AbstractKeyword || kind === SyntaxKind.AccessorKeyword || kind === SyntaxKind.AsyncKeyword || kind === SyntaxKind.ConstKeyword || kind === SyntaxKind.DeclareKeyword || kind === SyntaxKind.DefaultKeyword || kind === SyntaxKind.ExportKeyword || kind === SyntaxKind.InKeyword || kind === SyntaxKind.PrivateKeyword || kind === SyntaxKind.ProtectedKeyword || kind === SyntaxKind.PublicKeyword || kind === SyntaxKind.ReadonlyKeyword || kind === SyntaxKind.OutKeyword || kind === SyntaxKind.OverrideKeyword || kind === SyntaxKind.StaticKeyword || kind === SyntaxKind.Decorator;
|
|
647
860
|
}
|
|
861
|
+
isModifierLike.Handle = isModifierLike;
|
|
648
862
|
export function isJsxChild(node) {
|
|
649
863
|
const kind = node.kind;
|
|
650
864
|
return kind === SyntaxKind.JsxText || kind === SyntaxKind.JsxExpression || kind === SyntaxKind.JsxElement || kind === SyntaxKind.JsxSelfClosingElement || kind === SyntaxKind.JsxFragment;
|
|
651
865
|
}
|
|
866
|
+
isJsxChild.Handle = isJsxChild;
|
|
652
867
|
export function isJsxAttributeLike(node) {
|
|
653
868
|
return node.kind === SyntaxKind.JsxAttribute || node.kind === SyntaxKind.JsxSpreadAttribute;
|
|
654
869
|
}
|
|
870
|
+
isJsxAttributeLike.Handle = isJsxAttributeLike;
|
|
655
871
|
export function isJsxAttributeName(node) {
|
|
656
872
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.JsxNamespacedName;
|
|
657
873
|
}
|
|
874
|
+
isJsxAttributeName.Handle = isJsxAttributeName;
|
|
658
875
|
export function isJsxAttributeValue(node) {
|
|
659
876
|
const kind = node.kind;
|
|
660
877
|
return kind === SyntaxKind.StringLiteral || kind === SyntaxKind.JsxExpression || kind === SyntaxKind.JsxElement || kind === SyntaxKind.JsxSelfClosingElement || kind === SyntaxKind.JsxFragment;
|
|
661
878
|
}
|
|
879
|
+
isJsxAttributeValue.Handle = isJsxAttributeValue;
|
|
662
880
|
export function isClassLikeDeclaration(node) {
|
|
663
881
|
return node.kind === SyntaxKind.ClassDeclaration || node.kind === SyntaxKind.ClassExpression;
|
|
664
882
|
}
|
|
883
|
+
isClassLikeDeclaration.Handle = isClassLikeDeclaration;
|
|
665
884
|
export function isAccessorDeclaration(node) {
|
|
666
885
|
return node.kind === SyntaxKind.GetAccessor || node.kind === SyntaxKind.SetAccessor;
|
|
667
886
|
}
|
|
887
|
+
isAccessorDeclaration.Handle = isAccessorDeclaration;
|
|
668
888
|
export function isLiteralLikeNode(node) {
|
|
669
889
|
const kind = node.kind;
|
|
670
890
|
return kind === SyntaxKind.StringLiteral || kind === SyntaxKind.NumericLiteral || kind === SyntaxKind.BigIntLiteral || kind === SyntaxKind.RegularExpressionLiteral || kind === SyntaxKind.TemplateHead || kind === SyntaxKind.TemplateMiddle || kind === SyntaxKind.TemplateTail || kind === SyntaxKind.JsxText;
|
|
671
891
|
}
|
|
892
|
+
isLiteralLikeNode.Handle = isLiteralLikeNode;
|
|
672
893
|
export function isLiteralExpression(node) {
|
|
673
894
|
const kind = node.kind;
|
|
674
895
|
return kind === SyntaxKind.StringLiteral || kind === SyntaxKind.NumericLiteral || kind === SyntaxKind.BigIntLiteral || kind === SyntaxKind.RegularExpressionLiteral || kind === SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
675
896
|
}
|
|
897
|
+
isLiteralExpression.Handle = isLiteralExpression;
|
|
676
898
|
export function isUnionOrIntersectionTypeNode(node) {
|
|
677
899
|
return node.kind === SyntaxKind.UnionType || node.kind === SyntaxKind.IntersectionType;
|
|
678
900
|
}
|
|
901
|
+
isUnionOrIntersectionTypeNode.Handle = isUnionOrIntersectionTypeNode;
|
|
679
902
|
export function isTemplateLiteralLikeNode(node) {
|
|
680
903
|
const kind = node.kind;
|
|
681
904
|
return isPseudoLiteralKind(kind);
|
|
682
905
|
}
|
|
906
|
+
isTemplateLiteralLikeNode.Handle = isTemplateLiteralLikeNode;
|
|
683
907
|
export function isTemplateMiddleOrTail(node) {
|
|
684
908
|
return node.kind === SyntaxKind.TemplateMiddle || node.kind === SyntaxKind.TemplateTail;
|
|
685
909
|
}
|
|
910
|
+
isTemplateMiddleOrTail.Handle = isTemplateMiddleOrTail;
|
|
686
911
|
export function isTemplateLiteral(node) {
|
|
687
912
|
return node.kind === SyntaxKind.TemplateExpression || node.kind === SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
688
913
|
}
|
|
914
|
+
isTemplateLiteral.Handle = isTemplateLiteral;
|
|
689
915
|
export function isTypePredicateParameterName(node) {
|
|
690
916
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.ThisType;
|
|
691
917
|
}
|
|
918
|
+
isTypePredicateParameterName.Handle = isTypePredicateParameterName;
|
|
692
919
|
export function isImportAttributeName(node) {
|
|
693
920
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.StringLiteral;
|
|
694
921
|
}
|
|
922
|
+
isImportAttributeName.Handle = isImportAttributeName;
|
|
695
923
|
export function isJSDocComment(node) {
|
|
696
924
|
const kind = node.kind;
|
|
697
925
|
return kind === SyntaxKind.JSDocText || kind === SyntaxKind.JSDocLink || kind === SyntaxKind.JSDocLinkCode || kind === SyntaxKind.JSDocLinkPlain;
|
|
698
926
|
}
|
|
927
|
+
isJSDocComment.Handle = isJSDocComment;
|
|
699
928
|
export function isSignatureDeclaration(node) {
|
|
700
929
|
const kind = node.kind;
|
|
701
930
|
return kind === SyntaxKind.CallSignature || kind === SyntaxKind.ConstructSignature || kind === SyntaxKind.MethodSignature || kind === SyntaxKind.IndexSignature || kind === SyntaxKind.FunctionType || kind === SyntaxKind.ConstructorType || kind === SyntaxKind.FunctionDeclaration || kind === SyntaxKind.MethodDeclaration || kind === SyntaxKind.Constructor || kind === SyntaxKind.GetAccessor || kind === SyntaxKind.SetAccessor || kind === SyntaxKind.FunctionExpression || kind === SyntaxKind.ArrowFunction;
|
|
702
931
|
}
|
|
932
|
+
isSignatureDeclaration.Handle = isSignatureDeclaration;
|
|
703
933
|
export function isStringLiteralLikeNode(node) {
|
|
704
934
|
return node.kind === SyntaxKind.StringLiteral || node.kind === SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
705
935
|
}
|
|
936
|
+
isStringLiteralLikeNode.Handle = isStringLiteralLikeNode;
|
|
706
937
|
export function isNumericOrStringLikeLiteral(node) {
|
|
707
938
|
return node.kind === SyntaxKind.StringLiteral || node.kind === SyntaxKind.NoSubstitutionTemplateLiteral || node.kind === SyntaxKind.NumericLiteral;
|
|
708
939
|
}
|
|
940
|
+
isNumericOrStringLikeLiteral.Handle = isNumericOrStringLikeLiteral;
|
|
709
941
|
export function isObjectLiteralLikeNode(node) {
|
|
710
942
|
return node.kind === SyntaxKind.ObjectLiteralExpression || node.kind === SyntaxKind.ObjectBindingPattern;
|
|
711
943
|
}
|
|
944
|
+
isObjectLiteralLikeNode.Handle = isObjectLiteralLikeNode;
|
|
712
945
|
export function isObjectTypeDeclaration(node) {
|
|
713
946
|
const kind = node.kind;
|
|
714
947
|
return kind === SyntaxKind.ClassDeclaration || kind === SyntaxKind.ClassExpression || kind === SyntaxKind.InterfaceDeclaration || kind === SyntaxKind.TypeLiteral;
|
|
715
948
|
}
|
|
949
|
+
isObjectTypeDeclaration.Handle = isObjectTypeDeclaration;
|
|
716
950
|
export function isJsxOpeningLikeElement(node) {
|
|
717
951
|
return node.kind === SyntaxKind.JsxOpeningElement || node.kind === SyntaxKind.JsxSelfClosingElement;
|
|
718
952
|
}
|
|
953
|
+
isJsxOpeningLikeElement.Handle = isJsxOpeningLikeElement;
|
|
719
954
|
export function isNamedImportsOrExports(node) {
|
|
720
955
|
return node.kind === SyntaxKind.NamedImports || node.kind === SyntaxKind.NamedExports;
|
|
721
956
|
}
|
|
957
|
+
isNamedImportsOrExports.Handle = isNamedImportsOrExports;
|
|
722
958
|
export function isBreakOrContinueStatement(node) {
|
|
723
959
|
return node.kind === SyntaxKind.BreakStatement || node.kind === SyntaxKind.ContinueStatement;
|
|
724
960
|
}
|
|
961
|
+
isBreakOrContinueStatement.Handle = isBreakOrContinueStatement;
|
|
725
962
|
export function isCallLikeExpression(node) {
|
|
726
963
|
const kind = node.kind;
|
|
727
964
|
return kind === SyntaxKind.CallExpression || kind === SyntaxKind.NewExpression || kind === SyntaxKind.TaggedTemplateExpression || kind === SyntaxKind.Decorator || kind === SyntaxKind.JsxOpeningElement || kind === SyntaxKind.JsxSelfClosingElement || kind === SyntaxKind.BinaryExpression;
|
|
728
965
|
}
|
|
966
|
+
isCallLikeExpression.Handle = isCallLikeExpression;
|
|
729
967
|
export function isFunctionLikeDeclaration(node) {
|
|
730
968
|
const kind = node.kind;
|
|
731
969
|
return kind === SyntaxKind.FunctionDeclaration || kind === SyntaxKind.MethodDeclaration || kind === SyntaxKind.GetAccessor || kind === SyntaxKind.SetAccessor || kind === SyntaxKind.Constructor || kind === SyntaxKind.FunctionExpression || kind === SyntaxKind.ArrowFunction;
|
|
732
970
|
}
|
|
971
|
+
isFunctionLikeDeclaration.Handle = isFunctionLikeDeclaration;
|
|
733
972
|
export function isVariableOrParameterDeclaration(node) {
|
|
734
973
|
return node.kind === SyntaxKind.VariableDeclaration || node.kind === SyntaxKind.Parameter;
|
|
735
974
|
}
|
|
975
|
+
isVariableOrParameterDeclaration.Handle = isVariableOrParameterDeclaration;
|
|
736
976
|
export function isVariableOrPropertyDeclaration(node) {
|
|
737
977
|
return node.kind === SyntaxKind.VariableDeclaration || node.kind === SyntaxKind.PropertyDeclaration;
|
|
738
978
|
}
|
|
979
|
+
isVariableOrPropertyDeclaration.Handle = isVariableOrPropertyDeclaration;
|
|
739
980
|
export function isCallOrNewExpression(node) {
|
|
740
981
|
return node.kind === SyntaxKind.CallExpression || node.kind === SyntaxKind.NewExpression;
|
|
741
982
|
}
|
|
983
|
+
isCallOrNewExpression.Handle = isCallOrNewExpression;
|
|
742
984
|
export function isImportClauseOrBindingPattern(node) {
|
|
743
985
|
return node.kind === SyntaxKind.ImportClause || node.kind === SyntaxKind.ObjectBindingPattern || node.kind === SyntaxKind.ArrayBindingPattern;
|
|
744
986
|
}
|
|
987
|
+
isImportClauseOrBindingPattern.Handle = isImportClauseOrBindingPattern;
|
|
745
988
|
export function isAnyImportSyntax(node) {
|
|
746
989
|
return node.kind === SyntaxKind.ImportDeclaration || node.kind === SyntaxKind.JSImportDeclaration || node.kind === SyntaxKind.ImportEqualsDeclaration;
|
|
747
990
|
}
|
|
991
|
+
isAnyImportSyntax.Handle = isAnyImportSyntax;
|
|
748
992
|
export function isArrayBindingElement(node) {
|
|
749
993
|
return node.kind === SyntaxKind.BindingElement || node.kind === SyntaxKind.OmittedExpression;
|
|
750
994
|
}
|
|
995
|
+
isArrayBindingElement.Handle = isArrayBindingElement;
|
|
751
996
|
export function isAssertionExpression(node) {
|
|
752
997
|
return node.kind === SyntaxKind.TypeAssertionExpression || node.kind === SyntaxKind.AsExpression;
|
|
753
998
|
}
|
|
999
|
+
isAssertionExpression.Handle = isAssertionExpression;
|
|
754
1000
|
export function isBooleanLiteral(node) {
|
|
755
1001
|
return node.kind === SyntaxKind.TrueKeyword || node.kind === SyntaxKind.FalseKeyword;
|
|
756
1002
|
}
|
|
1003
|
+
isBooleanLiteral.Handle = isBooleanLiteral;
|
|
757
1004
|
export function isDestructuringAssignment(node) {
|
|
758
1005
|
return node.kind === SyntaxKind.BinaryExpression;
|
|
759
1006
|
}
|
|
1007
|
+
isDestructuringAssignment.Handle = isDestructuringAssignment;
|
|
760
1008
|
export function isLiteralToken(node) {
|
|
761
1009
|
const kind = node.kind;
|
|
762
1010
|
return kind === SyntaxKind.NumericLiteral || kind === SyntaxKind.BigIntLiteral || kind === SyntaxKind.StringLiteral || kind === SyntaxKind.JsxText || kind === SyntaxKind.RegularExpressionLiteral || kind === SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
763
1011
|
}
|
|
1012
|
+
isLiteralToken.Handle = isLiteralToken;
|
|
764
1013
|
export function isModifier(node) {
|
|
765
1014
|
const kind = node.kind;
|
|
766
1015
|
return isModifierKind(kind);
|
|
767
1016
|
}
|
|
1017
|
+
isModifier.Handle = isModifier;
|
|
768
1018
|
export function isObjectLiteralElementLike(node) {
|
|
769
1019
|
const kind = node.kind;
|
|
770
1020
|
return kind === SyntaxKind.PropertyAssignment || kind === SyntaxKind.ShorthandPropertyAssignment || kind === SyntaxKind.SpreadAssignment || kind === SyntaxKind.MethodDeclaration || kind === SyntaxKind.GetAccessor || kind === SyntaxKind.SetAccessor;
|
|
771
1021
|
}
|
|
1022
|
+
isObjectLiteralElementLike.Handle = isObjectLiteralElementLike;
|
|
772
1023
|
export function isPropertyNameLiteral(node) {
|
|
773
1024
|
return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.StringLiteral || node.kind === SyntaxKind.NumericLiteral;
|
|
774
1025
|
}
|
|
1026
|
+
isPropertyNameLiteral.Handle = isPropertyNameLiteral;
|
|
775
1027
|
export function isPseudoLiteralToken(node) {
|
|
776
1028
|
const kind = node.kind;
|
|
777
1029
|
return isPseudoLiteralKind(kind);
|
|
778
1030
|
}
|
|
1031
|
+
isPseudoLiteralToken.Handle = isPseudoLiteralToken;
|
|
779
1032
|
export function isTemplateLiteralToken(node) {
|
|
780
1033
|
const kind = node.kind;
|
|
781
1034
|
return kind === SyntaxKind.NoSubstitutionTemplateLiteral || kind === SyntaxKind.TemplateHead || kind === SyntaxKind.TemplateMiddle || kind === SyntaxKind.TemplateTail;
|
|
782
1035
|
}
|
|
1036
|
+
isTemplateLiteralToken.Handle = isTemplateLiteralToken;
|
|
783
1037
|
export function isArrayDestructuringAssignment(node) {
|
|
784
1038
|
return node.kind === SyntaxKind.BinaryExpression;
|
|
785
1039
|
}
|
|
1040
|
+
isArrayDestructuringAssignment.Handle = isArrayDestructuringAssignment;
|
|
786
1041
|
export function isObjectDestructuringAssignment(node) {
|
|
787
1042
|
return node.kind === SyntaxKind.BinaryExpression;
|
|
788
1043
|
}
|
|
1044
|
+
isObjectDestructuringAssignment.Handle = isObjectDestructuringAssignment;
|
|
789
1045
|
export function isFunctionBody(node) {
|
|
790
1046
|
return node.kind === SyntaxKind.Block;
|
|
791
1047
|
}
|
|
1048
|
+
isFunctionBody.Handle = isFunctionBody;
|
|
792
1049
|
export function isTriviaKind(kind) {
|
|
793
1050
|
return kind === SyntaxKind.SingleLineCommentTrivia
|
|
794
1051
|
|| kind === SyntaxKind.MultiLineCommentTrivia
|
|
@@ -851,7 +1108,8 @@ export function isJsxTokenKind(kind) {
|
|
|
851
1108
|
}
|
|
852
1109
|
export function isImportPhaseModifierKind(kind) {
|
|
853
1110
|
return kind === SyntaxKind.TypeKeyword
|
|
854
|
-
|| kind === SyntaxKind.DeferKeyword
|
|
1111
|
+
|| kind === SyntaxKind.DeferKeyword
|
|
1112
|
+
|| kind === SyntaxKind.SourceKeyword;
|
|
855
1113
|
}
|
|
856
1114
|
export function isPostfixUnaryOperator(kind) {
|
|
857
1115
|
return kind === SyntaxKind.PlusPlusToken
|
|
@@ -986,118 +1244,157 @@ export function isJSDocNodeKind(kind) {
|
|
|
986
1244
|
export function isEndOfFile(node) {
|
|
987
1245
|
return node.kind === SyntaxKind.EndOfFile;
|
|
988
1246
|
}
|
|
1247
|
+
isEndOfFile.Handle = isEndOfFile;
|
|
989
1248
|
export function isDotToken(node) {
|
|
990
1249
|
return node.kind === SyntaxKind.DotToken;
|
|
991
1250
|
}
|
|
1251
|
+
isDotToken.Handle = isDotToken;
|
|
992
1252
|
export function isDotDotDotToken(node) {
|
|
993
1253
|
return node.kind === SyntaxKind.DotDotDotToken;
|
|
994
1254
|
}
|
|
1255
|
+
isDotDotDotToken.Handle = isDotDotDotToken;
|
|
995
1256
|
export function isQuestionToken(node) {
|
|
996
1257
|
return node.kind === SyntaxKind.QuestionToken;
|
|
997
1258
|
}
|
|
1259
|
+
isQuestionToken.Handle = isQuestionToken;
|
|
998
1260
|
export function isExclamationToken(node) {
|
|
999
1261
|
return node.kind === SyntaxKind.ExclamationToken;
|
|
1000
1262
|
}
|
|
1263
|
+
isExclamationToken.Handle = isExclamationToken;
|
|
1001
1264
|
export function isColonToken(node) {
|
|
1002
1265
|
return node.kind === SyntaxKind.ColonToken;
|
|
1003
1266
|
}
|
|
1267
|
+
isColonToken.Handle = isColonToken;
|
|
1004
1268
|
export function isEqualsToken(node) {
|
|
1005
1269
|
return node.kind === SyntaxKind.EqualsToken;
|
|
1006
1270
|
}
|
|
1271
|
+
isEqualsToken.Handle = isEqualsToken;
|
|
1007
1272
|
export function isAsteriskToken(node) {
|
|
1008
1273
|
return node.kind === SyntaxKind.AsteriskToken;
|
|
1009
1274
|
}
|
|
1275
|
+
isAsteriskToken.Handle = isAsteriskToken;
|
|
1010
1276
|
export function isEqualsGreaterThanToken(node) {
|
|
1011
1277
|
return node.kind === SyntaxKind.EqualsGreaterThanToken;
|
|
1012
1278
|
}
|
|
1279
|
+
isEqualsGreaterThanToken.Handle = isEqualsGreaterThanToken;
|
|
1013
1280
|
export function isPlusToken(node) {
|
|
1014
1281
|
return node.kind === SyntaxKind.PlusToken;
|
|
1015
1282
|
}
|
|
1283
|
+
isPlusToken.Handle = isPlusToken;
|
|
1016
1284
|
export function isMinusToken(node) {
|
|
1017
1285
|
return node.kind === SyntaxKind.MinusToken;
|
|
1018
1286
|
}
|
|
1287
|
+
isMinusToken.Handle = isMinusToken;
|
|
1019
1288
|
export function isQuestionDotToken(node) {
|
|
1020
1289
|
return node.kind === SyntaxKind.QuestionDotToken;
|
|
1021
1290
|
}
|
|
1291
|
+
isQuestionDotToken.Handle = isQuestionDotToken;
|
|
1022
1292
|
export function isAssertsKeyword(node) {
|
|
1023
1293
|
return node.kind === SyntaxKind.AssertsKeyword;
|
|
1024
1294
|
}
|
|
1295
|
+
isAssertsKeyword.Handle = isAssertsKeyword;
|
|
1025
1296
|
export function isAssertKeyword(node) {
|
|
1026
1297
|
return node.kind === SyntaxKind.AssertKeyword;
|
|
1027
1298
|
}
|
|
1299
|
+
isAssertKeyword.Handle = isAssertKeyword;
|
|
1028
1300
|
export function isAwaitKeyword(node) {
|
|
1029
1301
|
return node.kind === SyntaxKind.AwaitKeyword;
|
|
1030
1302
|
}
|
|
1303
|
+
isAwaitKeyword.Handle = isAwaitKeyword;
|
|
1031
1304
|
export function isCaseKeyword(node) {
|
|
1032
1305
|
return node.kind === SyntaxKind.CaseKeyword;
|
|
1033
1306
|
}
|
|
1307
|
+
isCaseKeyword.Handle = isCaseKeyword;
|
|
1034
1308
|
export function isAbstractKeyword(node) {
|
|
1035
1309
|
return node.kind === SyntaxKind.AbstractKeyword;
|
|
1036
1310
|
}
|
|
1311
|
+
isAbstractKeyword.Handle = isAbstractKeyword;
|
|
1037
1312
|
export function isAccessorKeyword(node) {
|
|
1038
1313
|
return node.kind === SyntaxKind.AccessorKeyword;
|
|
1039
1314
|
}
|
|
1315
|
+
isAccessorKeyword.Handle = isAccessorKeyword;
|
|
1040
1316
|
export function isAsyncKeyword(node) {
|
|
1041
1317
|
return node.kind === SyntaxKind.AsyncKeyword;
|
|
1042
1318
|
}
|
|
1319
|
+
isAsyncKeyword.Handle = isAsyncKeyword;
|
|
1043
1320
|
export function isConstKeyword(node) {
|
|
1044
1321
|
return node.kind === SyntaxKind.ConstKeyword;
|
|
1045
1322
|
}
|
|
1323
|
+
isConstKeyword.Handle = isConstKeyword;
|
|
1046
1324
|
export function isDeclareKeyword(node) {
|
|
1047
1325
|
return node.kind === SyntaxKind.DeclareKeyword;
|
|
1048
1326
|
}
|
|
1327
|
+
isDeclareKeyword.Handle = isDeclareKeyword;
|
|
1049
1328
|
export function isDefaultKeyword(node) {
|
|
1050
1329
|
return node.kind === SyntaxKind.DefaultKeyword;
|
|
1051
1330
|
}
|
|
1331
|
+
isDefaultKeyword.Handle = isDefaultKeyword;
|
|
1052
1332
|
export function isExportKeyword(node) {
|
|
1053
1333
|
return node.kind === SyntaxKind.ExportKeyword;
|
|
1054
1334
|
}
|
|
1335
|
+
isExportKeyword.Handle = isExportKeyword;
|
|
1055
1336
|
export function isInKeyword(node) {
|
|
1056
1337
|
return node.kind === SyntaxKind.InKeyword;
|
|
1057
1338
|
}
|
|
1339
|
+
isInKeyword.Handle = isInKeyword;
|
|
1058
1340
|
export function isPrivateKeyword(node) {
|
|
1059
1341
|
return node.kind === SyntaxKind.PrivateKeyword;
|
|
1060
1342
|
}
|
|
1343
|
+
isPrivateKeyword.Handle = isPrivateKeyword;
|
|
1061
1344
|
export function isProtectedKeyword(node) {
|
|
1062
1345
|
return node.kind === SyntaxKind.ProtectedKeyword;
|
|
1063
1346
|
}
|
|
1347
|
+
isProtectedKeyword.Handle = isProtectedKeyword;
|
|
1064
1348
|
export function isPublicKeyword(node) {
|
|
1065
1349
|
return node.kind === SyntaxKind.PublicKeyword;
|
|
1066
1350
|
}
|
|
1351
|
+
isPublicKeyword.Handle = isPublicKeyword;
|
|
1067
1352
|
export function isReadonlyKeyword(node) {
|
|
1068
1353
|
return node.kind === SyntaxKind.ReadonlyKeyword;
|
|
1069
1354
|
}
|
|
1355
|
+
isReadonlyKeyword.Handle = isReadonlyKeyword;
|
|
1070
1356
|
export function isOutKeyword(node) {
|
|
1071
1357
|
return node.kind === SyntaxKind.OutKeyword;
|
|
1072
1358
|
}
|
|
1359
|
+
isOutKeyword.Handle = isOutKeyword;
|
|
1073
1360
|
export function isOverrideKeyword(node) {
|
|
1074
1361
|
return node.kind === SyntaxKind.OverrideKeyword;
|
|
1075
1362
|
}
|
|
1363
|
+
isOverrideKeyword.Handle = isOverrideKeyword;
|
|
1076
1364
|
export function isStaticKeyword(node) {
|
|
1077
1365
|
return node.kind === SyntaxKind.StaticKeyword;
|
|
1078
1366
|
}
|
|
1367
|
+
isStaticKeyword.Handle = isStaticKeyword;
|
|
1079
1368
|
export function isBinaryOperatorToken(node) {
|
|
1080
1369
|
return isBinaryOperator(node.kind);
|
|
1081
1370
|
}
|
|
1371
|
+
isBinaryOperatorToken.Handle = isBinaryOperatorToken;
|
|
1082
1372
|
export function isAssignmentOperatorToken(node) {
|
|
1083
1373
|
return isAssignmentOperator(node.kind);
|
|
1084
1374
|
}
|
|
1375
|
+
isAssignmentOperatorToken.Handle = isAssignmentOperatorToken;
|
|
1085
1376
|
export function isNullLiteral(node) {
|
|
1086
1377
|
return node.kind === SyntaxKind.NullKeyword;
|
|
1087
1378
|
}
|
|
1379
|
+
isNullLiteral.Handle = isNullLiteral;
|
|
1088
1380
|
export function isTrueLiteral(node) {
|
|
1089
1381
|
return node.kind === SyntaxKind.TrueKeyword;
|
|
1090
1382
|
}
|
|
1383
|
+
isTrueLiteral.Handle = isTrueLiteral;
|
|
1091
1384
|
export function isFalseLiteral(node) {
|
|
1092
1385
|
return node.kind === SyntaxKind.FalseKeyword;
|
|
1093
1386
|
}
|
|
1387
|
+
isFalseLiteral.Handle = isFalseLiteral;
|
|
1094
1388
|
export function isThisExpression(node) {
|
|
1095
1389
|
return node.kind === SyntaxKind.ThisKeyword;
|
|
1096
1390
|
}
|
|
1391
|
+
isThisExpression.Handle = isThisExpression;
|
|
1097
1392
|
export function isSuperExpression(node) {
|
|
1098
1393
|
return node.kind === SyntaxKind.SuperKeyword;
|
|
1099
1394
|
}
|
|
1395
|
+
isSuperExpression.Handle = isSuperExpression;
|
|
1100
1396
|
export function isImportExpression(node) {
|
|
1101
1397
|
return node.kind === SyntaxKind.ImportKeyword;
|
|
1102
1398
|
}
|
|
1399
|
+
isImportExpression.Handle = isImportExpression;
|
|
1103
1400
|
//# sourceMappingURL=is.generated.js.map
|