@idlizer/arktscgen 2.1.10-arktscgen-4 → 2.1.10-arktscgen-5
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/build/libarkts-copy/native/meson.build +1 -1
- package/build/libarkts-copy/native/src/bridges.cc +72 -115
- package/build/libarkts-copy/native/src/common.cc +225 -84
- package/build/libarkts-copy/native/src/common.h +22 -22
- package/build/libarkts-copy/native/src/memoryTracker.cc +30 -37
- package/build/libarkts-copy/native/src/memoryTracker.h +5 -5
- package/build/libarkts-copy/package.json +21 -17
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +176 -100
- package/build/libarkts-copy/src/InteropNativeModule.ts +18 -15
- package/build/libarkts-copy/src/arkts-api/AbstractVisitor.ts +17 -18
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +31 -30
- package/build/libarkts-copy/src/arkts-api/ProgramProvider.ts +20 -17
- package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +12 -12
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +38 -29
- package/build/libarkts-copy/src/arkts-api/index.ts +24 -24
- package/build/libarkts-copy/src/arkts-api/node-cache.ts +12 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArkTsConfig.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArrayExpression.ts +9 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/AssignmentExpression.ts +12 -14
- package/build/libarkts-copy/src/arkts-api/node-utilities/BlockStatement.ts +5 -5
- package/build/libarkts-copy/src/arkts-api/node-utilities/CallExpression.ts +26 -24
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDefinition.ts +62 -32
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassProperty.ts +14 -13
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSFunctionType.ts +24 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSImportDeclaration.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSModule.ts +14 -18
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSParameterExpression.ts +15 -16
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSStructDeclaration.ts +5 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSTuple.ts +6 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/MemberExpression.ts +12 -11
- package/build/libarkts-copy/src/arkts-api/node-utilities/MethodDefinition.ts +14 -33
- package/build/libarkts-copy/src/arkts-api/node-utilities/NumberLiteral.ts +12 -23
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +17 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/OpaqueTypeNode.ts +9 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +21 -16
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +52 -53
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +22 -32
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeParameter.ts +12 -14
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeReferencePart.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/TryStatement.ts +10 -9
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclarator.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/peers/ArktsObject.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +53 -49
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +17 -24
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +29 -37
- package/build/libarkts-copy/src/arkts-api/peers/DiagnosticKind.ts +5 -6
- package/build/libarkts-copy/src/arkts-api/peers/ExternalSource.ts +9 -9
- package/build/libarkts-copy/src/arkts-api/peers/ImportPathManager.ts +6 -8
- package/build/libarkts-copy/src/arkts-api/peers/Options.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/plugins.ts +98 -30
- package/build/libarkts-copy/src/arkts-api/static/global.ts +35 -36
- package/build/libarkts-copy/src/arkts-api/static/globalUtils.ts +5 -5
- package/build/libarkts-copy/src/arkts-api/static/profiler.ts +107 -91
- package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +54 -37
- package/build/libarkts-copy/src/arkts-api/utilities/nativePtrDecoder.ts +86 -69
- package/build/libarkts-copy/src/arkts-api/utilities/performance.ts +39 -23
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +73 -61
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +220 -173
- package/build/libarkts-copy/src/arkts-api/visitor.ts +606 -742
- package/build/libarkts-copy/src/arkts-api/wrapper-compat.ts +8 -8
- package/build/libarkts-copy/src/checkSdk.ts +15 -18
- package/build/libarkts-copy/src/index.ts +29 -29
- package/build/libarkts-copy/src/plugin-utils.ts +52 -40
- package/build/libarkts-copy/src/reexport-for-generated.ts +11 -10
- package/build/libarkts-copy/src/tracer.ts +75 -69
- package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +134 -274
- package/build/libarkts-copy/src/ts-api/factory/nodeTests.ts +23 -23
- package/build/libarkts-copy/src/ts-api/index.ts +27 -35
- package/build/libarkts-copy/src/ts-api/static/enums.ts +3 -3
- package/build/libarkts-copy/src/ts-api/types.ts +535 -395
- package/build/libarkts-copy/src/ts-api/utilities/private.ts +115 -112
- package/build/libarkts-copy/src/ts-api/utilities/public.ts +18 -18
- package/build/libarkts-copy/src/ts-api/visitor/visitor.ts +33 -49
- package/build/libarkts-copy/src/utils.ts +97 -70
- package/build/libarkts-copy/tsconfig.json +3 -2
- package/lib/index.js +172 -77
- package/package.json +51 -52
- package/templates/Es2pandaNativeModule.ts +1 -0
- package/templates/peer.ts +1 -0
- package/build/libarkts-copy/native/src/generated/bridges.cc +0 -16375
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +0 -1344
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +0 -5192
- package/build/libarkts-copy/src/generated/factory.ts +0 -1285
- package/build/libarkts-copy/src/generated/index.ts +0 -222
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +0 -54
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +0 -165
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +0 -109
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +0 -119
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +0 -111
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +0 -49
- package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +0 -110
- package/build/libarkts-copy/src/generated/peers/BindingProps.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +0 -129
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +0 -365
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +0 -137
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/CodeGen.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +0 -82
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/Declaration.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/DiagnosticInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +0 -60
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +0 -102
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +0 -90
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +0 -129
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +0 -59
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +0 -189
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +0 -55
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +0 -59
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +0 -89
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +0 -63
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +0 -82
- package/build/libarkts-copy/src/generated/peers/Expression.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +0 -67
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +0 -67
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +0 -106
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/IRNode.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +0 -162
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +0 -87
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ImportSource.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/LabelPair.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/Literal.ts +0 -53
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +0 -53
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +0 -115
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +0 -152
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +0 -101
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/Program.ts +0 -206
- package/build/libarkts-copy/src/generated/peers/Property.ts +0 -92
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +0 -310
- package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +0 -48
- package/build/libarkts-copy/src/generated/peers/SourceRange.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +0 -83
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +0 -120
- package/build/libarkts-copy/src/generated/peers/Statement.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/SuggestionInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +0 -112
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +0 -160
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +0 -80
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +0 -151
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +0 -121
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +0 -89
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +0 -81
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/VReg.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +0 -50
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +0 -113
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +0 -64
|
@@ -1,1285 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
global,
|
|
22
|
-
passNode,
|
|
23
|
-
passNodeArray,
|
|
24
|
-
unpackNonNullableNode,
|
|
25
|
-
unpackNode,
|
|
26
|
-
unpackNodeArray,
|
|
27
|
-
AstNode,
|
|
28
|
-
KNativePointer,
|
|
29
|
-
nodeByType,
|
|
30
|
-
ArktsObject,
|
|
31
|
-
isSameNativeObject,
|
|
32
|
-
unpackString,
|
|
33
|
-
updateNodeByNode
|
|
34
|
-
} from "../reexport-for-generated"
|
|
35
|
-
|
|
36
|
-
import { AnnotationDeclaration } from "./peers/AnnotationDeclaration"
|
|
37
|
-
import { AnnotationUsage } from "./peers/AnnotationUsage"
|
|
38
|
-
import { ArrowFunctionExpression } from "./peers/ArrowFunctionExpression"
|
|
39
|
-
import { AssertStatement } from "./peers/AssertStatement"
|
|
40
|
-
import { AwaitExpression } from "./peers/AwaitExpression"
|
|
41
|
-
import { BigIntLiteral } from "./peers/BigIntLiteral"
|
|
42
|
-
import { BinaryExpression } from "./peers/BinaryExpression"
|
|
43
|
-
import { BlockExpression } from "./peers/BlockExpression"
|
|
44
|
-
import { BlockStatement } from "./peers/BlockStatement"
|
|
45
|
-
import { BooleanLiteral } from "./peers/BooleanLiteral"
|
|
46
|
-
import { BreakStatement } from "./peers/BreakStatement"
|
|
47
|
-
import { CatchClause } from "./peers/CatchClause"
|
|
48
|
-
import { ChainExpression } from "./peers/ChainExpression"
|
|
49
|
-
import { CharLiteral } from "./peers/CharLiteral"
|
|
50
|
-
import { ClassDeclaration } from "./peers/ClassDeclaration"
|
|
51
|
-
import { ClassDefinition } from "./peers/ClassDefinition"
|
|
52
|
-
import { ClassExpression } from "./peers/ClassExpression"
|
|
53
|
-
import { ConditionalExpression } from "./peers/ConditionalExpression"
|
|
54
|
-
import { ContinueStatement } from "./peers/ContinueStatement"
|
|
55
|
-
import { DebuggerStatement } from "./peers/DebuggerStatement"
|
|
56
|
-
import { Decorator } from "./peers/Decorator"
|
|
57
|
-
import { DoWhileStatement } from "./peers/DoWhileStatement"
|
|
58
|
-
import { ETSClassLiteral } from "./peers/ETSClassLiteral"
|
|
59
|
-
import { ETSIntrinsicNode } from "./peers/ETSIntrinsicNode"
|
|
60
|
-
import { ETSKeyofType } from "./peers/ETSKeyofType"
|
|
61
|
-
import { ETSNewArrayInstanceExpression } from "./peers/ETSNewArrayInstanceExpression"
|
|
62
|
-
import { ETSNewClassInstanceExpression } from "./peers/ETSNewClassInstanceExpression"
|
|
63
|
-
import { ETSNewMultiDimArrayInstanceExpression } from "./peers/ETSNewMultiDimArrayInstanceExpression"
|
|
64
|
-
import { ETSNullType } from "./peers/ETSNullType"
|
|
65
|
-
import { ETSPrimitiveType } from "./peers/ETSPrimitiveType"
|
|
66
|
-
import { ETSTypeReference } from "./peers/ETSTypeReference"
|
|
67
|
-
import { ETSTypeReferencePart } from "./peers/ETSTypeReferencePart"
|
|
68
|
-
import { ETSUndefinedType } from "./peers/ETSUndefinedType"
|
|
69
|
-
import { ETSUnionType } from "./peers/ETSUnionType"
|
|
70
|
-
import { EmptyStatement } from "./peers/EmptyStatement"
|
|
71
|
-
import { Es2pandaMetaPropertyKind } from "./Es2pandaEnums"
|
|
72
|
-
import { Es2pandaModifierFlags } from "./Es2pandaEnums"
|
|
73
|
-
import { Es2pandaPrimitiveType } from "./Es2pandaEnums"
|
|
74
|
-
import { Es2pandaPropertyKind } from "./Es2pandaEnums"
|
|
75
|
-
import { Es2pandaTokenType } from "./Es2pandaEnums"
|
|
76
|
-
import { Es2pandaVariableDeclarationKind } from "./Es2pandaEnums"
|
|
77
|
-
import { ExportAllDeclaration } from "./peers/ExportAllDeclaration"
|
|
78
|
-
import { ExportDefaultDeclaration } from "./peers/ExportDefaultDeclaration"
|
|
79
|
-
import { ExportSpecifier } from "./peers/ExportSpecifier"
|
|
80
|
-
import { Expression } from "./peers/Expression"
|
|
81
|
-
import { ExpressionStatement } from "./peers/ExpressionStatement"
|
|
82
|
-
import { ForInStatement } from "./peers/ForInStatement"
|
|
83
|
-
import { ForOfStatement } from "./peers/ForOfStatement"
|
|
84
|
-
import { ForUpdateStatement } from "./peers/ForUpdateStatement"
|
|
85
|
-
import { FunctionDeclaration } from "./peers/FunctionDeclaration"
|
|
86
|
-
import { FunctionExpression } from "./peers/FunctionExpression"
|
|
87
|
-
import { FunctionSignature } from "./peers/FunctionSignature"
|
|
88
|
-
import { Identifier } from "./peers/Identifier"
|
|
89
|
-
import { IfStatement } from "./peers/IfStatement"
|
|
90
|
-
import { ImportDefaultSpecifier } from "./peers/ImportDefaultSpecifier"
|
|
91
|
-
import { ImportExpression } from "./peers/ImportExpression"
|
|
92
|
-
import { ImportNamespaceSpecifier } from "./peers/ImportNamespaceSpecifier"
|
|
93
|
-
import { ImportSpecifier } from "./peers/ImportSpecifier"
|
|
94
|
-
import { LabelledStatement } from "./peers/LabelledStatement"
|
|
95
|
-
import { MetaProperty } from "./peers/MetaProperty"
|
|
96
|
-
import { NamedType } from "./peers/NamedType"
|
|
97
|
-
import { NewExpression } from "./peers/NewExpression"
|
|
98
|
-
import { NullLiteral } from "./peers/NullLiteral"
|
|
99
|
-
import { OmittedExpression } from "./peers/OmittedExpression"
|
|
100
|
-
import { OpaqueTypeNode } from "./peers/OpaqueTypeNode"
|
|
101
|
-
import { PrefixAssertionExpression } from "./peers/PrefixAssertionExpression"
|
|
102
|
-
import { Property } from "./peers/Property"
|
|
103
|
-
import { ReturnStatement } from "./peers/ReturnStatement"
|
|
104
|
-
import { ScriptFunction } from "./peers/ScriptFunction"
|
|
105
|
-
import { SequenceExpression } from "./peers/SequenceExpression"
|
|
106
|
-
import { Statement } from "./peers/Statement"
|
|
107
|
-
import { StringLiteral } from "./peers/StringLiteral"
|
|
108
|
-
import { SuperExpression } from "./peers/SuperExpression"
|
|
109
|
-
import { SwitchCaseStatement } from "./peers/SwitchCaseStatement"
|
|
110
|
-
import { SwitchStatement } from "./peers/SwitchStatement"
|
|
111
|
-
import { TSAnyKeyword } from "./peers/TSAnyKeyword"
|
|
112
|
-
import { TSArrayType } from "./peers/TSArrayType"
|
|
113
|
-
import { TSAsExpression } from "./peers/TSAsExpression"
|
|
114
|
-
import { TSBigintKeyword } from "./peers/TSBigintKeyword"
|
|
115
|
-
import { TSBooleanKeyword } from "./peers/TSBooleanKeyword"
|
|
116
|
-
import { TSClassImplements } from "./peers/TSClassImplements"
|
|
117
|
-
import { TSConditionalType } from "./peers/TSConditionalType"
|
|
118
|
-
import { TSEnumMember } from "./peers/TSEnumMember"
|
|
119
|
-
import { TSExternalModuleReference } from "./peers/TSExternalModuleReference"
|
|
120
|
-
import { TSImportEqualsDeclaration } from "./peers/TSImportEqualsDeclaration"
|
|
121
|
-
import { TSImportType } from "./peers/TSImportType"
|
|
122
|
-
import { TSIndexSignature } from "./peers/TSIndexSignature"
|
|
123
|
-
import { TSIndexedAccessType } from "./peers/TSIndexedAccessType"
|
|
124
|
-
import { TSInferType } from "./peers/TSInferType"
|
|
125
|
-
import { TSInterfaceBody } from "./peers/TSInterfaceBody"
|
|
126
|
-
import { TSInterfaceHeritage } from "./peers/TSInterfaceHeritage"
|
|
127
|
-
import { TSIntersectionType } from "./peers/TSIntersectionType"
|
|
128
|
-
import { TSLiteralType } from "./peers/TSLiteralType"
|
|
129
|
-
import { TSModuleBlock } from "./peers/TSModuleBlock"
|
|
130
|
-
import { TSNamedTupleMember } from "./peers/TSNamedTupleMember"
|
|
131
|
-
import { TSNeverKeyword } from "./peers/TSNeverKeyword"
|
|
132
|
-
import { TSNonNullExpression } from "./peers/TSNonNullExpression"
|
|
133
|
-
import { TSNullKeyword } from "./peers/TSNullKeyword"
|
|
134
|
-
import { TSNumberKeyword } from "./peers/TSNumberKeyword"
|
|
135
|
-
import { TSObjectKeyword } from "./peers/TSObjectKeyword"
|
|
136
|
-
import { TSQualifiedName } from "./peers/TSQualifiedName"
|
|
137
|
-
import { TSStringKeyword } from "./peers/TSStringKeyword"
|
|
138
|
-
import { TSThisType } from "./peers/TSThisType"
|
|
139
|
-
import { TSTupleType } from "./peers/TSTupleType"
|
|
140
|
-
import { TSTypeAliasDeclaration } from "./peers/TSTypeAliasDeclaration"
|
|
141
|
-
import { TSTypeAssertion } from "./peers/TSTypeAssertion"
|
|
142
|
-
import { TSTypeLiteral } from "./peers/TSTypeLiteral"
|
|
143
|
-
import { TSTypeParameter } from "./peers/TSTypeParameter"
|
|
144
|
-
import { TSTypeParameterDeclaration } from "./peers/TSTypeParameterDeclaration"
|
|
145
|
-
import { TSTypeParameterInstantiation } from "./peers/TSTypeParameterInstantiation"
|
|
146
|
-
import { TSTypePredicate } from "./peers/TSTypePredicate"
|
|
147
|
-
import { TSTypeQuery } from "./peers/TSTypeQuery"
|
|
148
|
-
import { TSTypeReference } from "./peers/TSTypeReference"
|
|
149
|
-
import { TSUndefinedKeyword } from "./peers/TSUndefinedKeyword"
|
|
150
|
-
import { TSUnionType } from "./peers/TSUnionType"
|
|
151
|
-
import { TSUnknownKeyword } from "./peers/TSUnknownKeyword"
|
|
152
|
-
import { TSVoidKeyword } from "./peers/TSVoidKeyword"
|
|
153
|
-
import { TaggedTemplateExpression } from "./peers/TaggedTemplateExpression"
|
|
154
|
-
import { TemplateElement } from "./peers/TemplateElement"
|
|
155
|
-
import { TemplateLiteral } from "./peers/TemplateLiteral"
|
|
156
|
-
import { ThisExpression } from "./peers/ThisExpression"
|
|
157
|
-
import { ThrowStatement } from "./peers/ThrowStatement"
|
|
158
|
-
import { TypeNode } from "./peers/TypeNode"
|
|
159
|
-
import { TypeofExpression } from "./peers/TypeofExpression"
|
|
160
|
-
import { UnaryExpression } from "./peers/UnaryExpression"
|
|
161
|
-
import { UndefinedLiteral } from "./peers/UndefinedLiteral"
|
|
162
|
-
import { UpdateExpression } from "./peers/UpdateExpression"
|
|
163
|
-
import { VariableDeclaration } from "./peers/VariableDeclaration"
|
|
164
|
-
import { VariableDeclarator } from "./peers/VariableDeclarator"
|
|
165
|
-
import { WhileStatement } from "./peers/WhileStatement"
|
|
166
|
-
import { YieldExpression } from "./peers/YieldExpression"
|
|
167
|
-
|
|
168
|
-
export const factory = {
|
|
169
|
-
createLabelledStatement(ident?: Identifier, body?: Statement): LabelledStatement {
|
|
170
|
-
return LabelledStatement.createLabelledStatement(ident, body)
|
|
171
|
-
}
|
|
172
|
-
,
|
|
173
|
-
updateLabelledStatement(original: LabelledStatement, ident?: Identifier, body?: Statement): LabelledStatement {
|
|
174
|
-
if (isSameNativeObject(ident, original.ident) && isSameNativeObject(body, original.body))
|
|
175
|
-
return original
|
|
176
|
-
return updateNodeByNode(LabelledStatement.createLabelledStatement(ident, body), original)
|
|
177
|
-
}
|
|
178
|
-
,
|
|
179
|
-
createThrowStatement(argument?: Expression): ThrowStatement {
|
|
180
|
-
return ThrowStatement.createThrowStatement(argument)
|
|
181
|
-
}
|
|
182
|
-
,
|
|
183
|
-
updateThrowStatement(original: ThrowStatement, argument?: Expression): ThrowStatement {
|
|
184
|
-
if (isSameNativeObject(argument, original.argument))
|
|
185
|
-
return original
|
|
186
|
-
return updateNodeByNode(ThrowStatement.createThrowStatement(argument), original)
|
|
187
|
-
}
|
|
188
|
-
,
|
|
189
|
-
createTSVoidKeyword(): TSVoidKeyword {
|
|
190
|
-
return TSVoidKeyword.createTSVoidKeyword()
|
|
191
|
-
}
|
|
192
|
-
,
|
|
193
|
-
updateTSVoidKeyword(original: TSVoidKeyword): TSVoidKeyword {
|
|
194
|
-
return updateNodeByNode(TSVoidKeyword.createTSVoidKeyword(), original)
|
|
195
|
-
}
|
|
196
|
-
,
|
|
197
|
-
createIfStatement(test?: Expression, consequent?: Statement, alternate?: Statement): IfStatement {
|
|
198
|
-
return IfStatement.createIfStatement(test, consequent, alternate)
|
|
199
|
-
}
|
|
200
|
-
,
|
|
201
|
-
updateIfStatement(original: IfStatement, test?: Expression, consequent?: Statement, alternate?: Statement): IfStatement {
|
|
202
|
-
if (isSameNativeObject(test, original.test) && isSameNativeObject(consequent, original.consequent) && isSameNativeObject(alternate, original.alternate))
|
|
203
|
-
return original
|
|
204
|
-
return updateNodeByNode(IfStatement.createIfStatement(test, consequent, alternate), original)
|
|
205
|
-
}
|
|
206
|
-
,
|
|
207
|
-
createDecorator(expr?: Expression): Decorator {
|
|
208
|
-
return Decorator.createDecorator(expr)
|
|
209
|
-
}
|
|
210
|
-
,
|
|
211
|
-
updateDecorator(original: Decorator, expr?: Expression): Decorator {
|
|
212
|
-
if (isSameNativeObject(expr, original.expr))
|
|
213
|
-
return original
|
|
214
|
-
return updateNodeByNode(Decorator.createDecorator(expr), original)
|
|
215
|
-
}
|
|
216
|
-
,
|
|
217
|
-
createTSNeverKeyword(): TSNeverKeyword {
|
|
218
|
-
return TSNeverKeyword.createTSNeverKeyword()
|
|
219
|
-
}
|
|
220
|
-
,
|
|
221
|
-
updateTSNeverKeyword(original: TSNeverKeyword): TSNeverKeyword {
|
|
222
|
-
return updateNodeByNode(TSNeverKeyword.createTSNeverKeyword(), original)
|
|
223
|
-
}
|
|
224
|
-
,
|
|
225
|
-
createImportDefaultSpecifier(local?: Identifier): ImportDefaultSpecifier {
|
|
226
|
-
return ImportDefaultSpecifier.createImportDefaultSpecifier(local)
|
|
227
|
-
}
|
|
228
|
-
,
|
|
229
|
-
updateImportDefaultSpecifier(original: ImportDefaultSpecifier, local?: Identifier): ImportDefaultSpecifier {
|
|
230
|
-
if (isSameNativeObject(local, original.local))
|
|
231
|
-
return original
|
|
232
|
-
return updateNodeByNode(ImportDefaultSpecifier.createImportDefaultSpecifier(local), original)
|
|
233
|
-
}
|
|
234
|
-
,
|
|
235
|
-
createImportSpecifier(imported?: Identifier, local?: Identifier): ImportSpecifier {
|
|
236
|
-
return ImportSpecifier.createImportSpecifier(imported, local)
|
|
237
|
-
}
|
|
238
|
-
,
|
|
239
|
-
updateImportSpecifier(original: ImportSpecifier, imported?: Identifier, local?: Identifier): ImportSpecifier {
|
|
240
|
-
if (isSameNativeObject(imported, original.imported) && isSameNativeObject(local, original.local))
|
|
241
|
-
return original
|
|
242
|
-
return updateNodeByNode(ImportSpecifier.createImportSpecifier(imported, local), original)
|
|
243
|
-
}
|
|
244
|
-
,
|
|
245
|
-
createConditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression {
|
|
246
|
-
return ConditionalExpression.createConditionalExpression(test, consequent, alternate)
|
|
247
|
-
}
|
|
248
|
-
,
|
|
249
|
-
updateConditionalExpression(original: ConditionalExpression, test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression {
|
|
250
|
-
if (isSameNativeObject(test, original.test) && isSameNativeObject(consequent, original.consequent) && isSameNativeObject(alternate, original.alternate))
|
|
251
|
-
return original
|
|
252
|
-
return updateNodeByNode(ConditionalExpression.createConditionalExpression(test, consequent, alternate), original)
|
|
253
|
-
}
|
|
254
|
-
,
|
|
255
|
-
createBigIntLiteral(str: string): BigIntLiteral {
|
|
256
|
-
return BigIntLiteral.createBigIntLiteral(str)
|
|
257
|
-
}
|
|
258
|
-
,
|
|
259
|
-
updateBigIntLiteral(original: BigIntLiteral, str: string): BigIntLiteral {
|
|
260
|
-
if (isSameNativeObject(str, original.str))
|
|
261
|
-
return original
|
|
262
|
-
return updateNodeByNode(BigIntLiteral.createBigIntLiteral(str), original)
|
|
263
|
-
}
|
|
264
|
-
,
|
|
265
|
-
createTSImportType(param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType {
|
|
266
|
-
return TSImportType.createTSImportType(param, typeParams, qualifier, isTypeof)
|
|
267
|
-
}
|
|
268
|
-
,
|
|
269
|
-
updateTSImportType(original: TSImportType, param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType {
|
|
270
|
-
if (isSameNativeObject(param, original.param) && isSameNativeObject(typeParams, original.typeParams) && isSameNativeObject(qualifier, original.qualifier) && isSameNativeObject(isTypeof, original.isTypeof))
|
|
271
|
-
return original
|
|
272
|
-
return updateNodeByNode(TSImportType.createTSImportType(param, typeParams, qualifier, isTypeof), original)
|
|
273
|
-
}
|
|
274
|
-
,
|
|
275
|
-
createTaggedTemplateExpression(tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression {
|
|
276
|
-
return TaggedTemplateExpression.createTaggedTemplateExpression(tag, quasi, typeParams)
|
|
277
|
-
}
|
|
278
|
-
,
|
|
279
|
-
updateTaggedTemplateExpression(original: TaggedTemplateExpression, tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression {
|
|
280
|
-
if (isSameNativeObject(tag, original.tag) && isSameNativeObject(quasi, original.quasi) && isSameNativeObject(typeParams, original.typeParams))
|
|
281
|
-
return original
|
|
282
|
-
return updateNodeByNode(TaggedTemplateExpression.createTaggedTemplateExpression(tag, quasi, typeParams), original)
|
|
283
|
-
}
|
|
284
|
-
,
|
|
285
|
-
createFunctionDeclaration(_function: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], isAnonymous: boolean): FunctionDeclaration {
|
|
286
|
-
return FunctionDeclaration.createFunctionDeclaration(_function, annotations, isAnonymous)
|
|
287
|
-
}
|
|
288
|
-
,
|
|
289
|
-
updateFunctionDeclaration(original: FunctionDeclaration, _function: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], isAnonymous: boolean): FunctionDeclaration {
|
|
290
|
-
if (isSameNativeObject(_function, original.function) && isSameNativeObject(annotations, original.annotations) && isSameNativeObject(isAnonymous, original.isAnonymous))
|
|
291
|
-
return original
|
|
292
|
-
return updateNodeByNode(FunctionDeclaration.createFunctionDeclaration(_function, annotations, isAnonymous), original)
|
|
293
|
-
}
|
|
294
|
-
,
|
|
295
|
-
createETSTypeReference(part?: ETSTypeReferencePart): ETSTypeReference {
|
|
296
|
-
return ETSTypeReference.createETSTypeReference(part)
|
|
297
|
-
}
|
|
298
|
-
,
|
|
299
|
-
updateETSTypeReference(original: ETSTypeReference, part?: ETSTypeReferencePart): ETSTypeReference {
|
|
300
|
-
if (isSameNativeObject(part, original.part))
|
|
301
|
-
return original
|
|
302
|
-
return updateNodeByNode(ETSTypeReference.createETSTypeReference(part), original)
|
|
303
|
-
}
|
|
304
|
-
,
|
|
305
|
-
createTSTypeReference(typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference {
|
|
306
|
-
return TSTypeReference.createTSTypeReference(typeName, typeParams)
|
|
307
|
-
}
|
|
308
|
-
,
|
|
309
|
-
updateTSTypeReference(original: TSTypeReference, typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference {
|
|
310
|
-
if (isSameNativeObject(typeName, original.typeName) && isSameNativeObject(typeParams, original.typeParams))
|
|
311
|
-
return original
|
|
312
|
-
return updateNodeByNode(TSTypeReference.createTSTypeReference(typeName, typeParams), original)
|
|
313
|
-
}
|
|
314
|
-
,
|
|
315
|
-
createNamedType(name?: Identifier): NamedType {
|
|
316
|
-
return NamedType.createNamedType(name)
|
|
317
|
-
}
|
|
318
|
-
,
|
|
319
|
-
updateNamedType(original: NamedType, name?: Identifier): NamedType {
|
|
320
|
-
if (isSameNativeObject(name, original.name))
|
|
321
|
-
return original
|
|
322
|
-
return updateNodeByNode(NamedType.createNamedType(name), original)
|
|
323
|
-
}
|
|
324
|
-
,
|
|
325
|
-
createTemplateElement(raw: string, cooked: string): TemplateElement {
|
|
326
|
-
return TemplateElement.create1TemplateElement(raw, cooked)
|
|
327
|
-
}
|
|
328
|
-
,
|
|
329
|
-
updateTemplateElement(original: TemplateElement, raw: string, cooked: string): TemplateElement {
|
|
330
|
-
if (isSameNativeObject(raw, original.raw) && isSameNativeObject(cooked, original.cooked))
|
|
331
|
-
return original
|
|
332
|
-
return updateNodeByNode(TemplateElement.create1TemplateElement(raw, cooked), original)
|
|
333
|
-
}
|
|
334
|
-
,
|
|
335
|
-
createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], annotations?: readonly AnnotationUsage[]): VariableDeclaration {
|
|
336
|
-
return VariableDeclaration.createVariableDeclaration(kind, declarators, annotations)
|
|
337
|
-
}
|
|
338
|
-
,
|
|
339
|
-
updateVariableDeclaration(original: VariableDeclaration, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], annotations?: readonly AnnotationUsage[]): VariableDeclaration {
|
|
340
|
-
if (isSameNativeObject(kind, original.kind) && isSameNativeObject(declarators, original.declarators) && isSameNativeObject(annotations, original.annotations))
|
|
341
|
-
return original
|
|
342
|
-
return updateNodeByNode(VariableDeclaration.createVariableDeclaration(kind, declarators, annotations), original)
|
|
343
|
-
}
|
|
344
|
-
,
|
|
345
|
-
createUndefinedLiteral(): UndefinedLiteral {
|
|
346
|
-
return UndefinedLiteral.createUndefinedLiteral()
|
|
347
|
-
}
|
|
348
|
-
,
|
|
349
|
-
updateUndefinedLiteral(original: UndefinedLiteral): UndefinedLiteral {
|
|
350
|
-
return updateNodeByNode(UndefinedLiteral.createUndefinedLiteral(), original)
|
|
351
|
-
}
|
|
352
|
-
,
|
|
353
|
-
createTSClassImplements(expr?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements {
|
|
354
|
-
return TSClassImplements.createTSClassImplements(expr, typeParameters)
|
|
355
|
-
}
|
|
356
|
-
,
|
|
357
|
-
updateTSClassImplements(original: TSClassImplements, expr?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements {
|
|
358
|
-
if (isSameNativeObject(expr, original.expr) && isSameNativeObject(typeParameters, original.typeParameters))
|
|
359
|
-
return original
|
|
360
|
-
return updateNodeByNode(TSClassImplements.createTSClassImplements(expr, typeParameters), original)
|
|
361
|
-
}
|
|
362
|
-
,
|
|
363
|
-
createTSObjectKeyword(): TSObjectKeyword {
|
|
364
|
-
return TSObjectKeyword.createTSObjectKeyword()
|
|
365
|
-
}
|
|
366
|
-
,
|
|
367
|
-
updateTSObjectKeyword(original: TSObjectKeyword): TSObjectKeyword {
|
|
368
|
-
return updateNodeByNode(TSObjectKeyword.createTSObjectKeyword(), original)
|
|
369
|
-
}
|
|
370
|
-
,
|
|
371
|
-
createETSUnionType(types: readonly TypeNode[], annotations?: readonly AnnotationUsage[]): ETSUnionType {
|
|
372
|
-
return ETSUnionType.createETSUnionType(types, annotations)
|
|
373
|
-
}
|
|
374
|
-
,
|
|
375
|
-
updateETSUnionType(original: ETSUnionType, types: readonly TypeNode[], annotations?: readonly AnnotationUsage[]): ETSUnionType {
|
|
376
|
-
if (isSameNativeObject(types, original.types) && isSameNativeObject(annotations, original.annotations))
|
|
377
|
-
return original
|
|
378
|
-
return updateNodeByNode(ETSUnionType.createETSUnionType(types, annotations), original)
|
|
379
|
-
}
|
|
380
|
-
,
|
|
381
|
-
createETSKeyofType(typeRef?: TypeNode): ETSKeyofType {
|
|
382
|
-
return ETSKeyofType.createETSKeyofType(typeRef)
|
|
383
|
-
}
|
|
384
|
-
,
|
|
385
|
-
updateETSKeyofType(original: ETSKeyofType, typeRef?: TypeNode): ETSKeyofType {
|
|
386
|
-
if (isSameNativeObject(typeRef, original.typeRef))
|
|
387
|
-
return original
|
|
388
|
-
return updateNodeByNode(ETSKeyofType.createETSKeyofType(typeRef), original)
|
|
389
|
-
}
|
|
390
|
-
,
|
|
391
|
-
createTSConditionalType(checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType {
|
|
392
|
-
return TSConditionalType.createTSConditionalType(checkType, extendsType, trueType, falseType)
|
|
393
|
-
}
|
|
394
|
-
,
|
|
395
|
-
updateTSConditionalType(original: TSConditionalType, checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType {
|
|
396
|
-
if (isSameNativeObject(checkType, original.checkType) && isSameNativeObject(extendsType, original.extendsType) && isSameNativeObject(trueType, original.trueType) && isSameNativeObject(falseType, original.falseType))
|
|
397
|
-
return original
|
|
398
|
-
return updateNodeByNode(TSConditionalType.createTSConditionalType(checkType, extendsType, trueType, falseType), original)
|
|
399
|
-
}
|
|
400
|
-
,
|
|
401
|
-
createTSLiteralType(literal?: Expression): TSLiteralType {
|
|
402
|
-
return TSLiteralType.createTSLiteralType(literal)
|
|
403
|
-
}
|
|
404
|
-
,
|
|
405
|
-
updateTSLiteralType(original: TSLiteralType, literal?: Expression): TSLiteralType {
|
|
406
|
-
if (isSameNativeObject(literal, original.literal))
|
|
407
|
-
return original
|
|
408
|
-
return updateNodeByNode(TSLiteralType.createTSLiteralType(literal), original)
|
|
409
|
-
}
|
|
410
|
-
,
|
|
411
|
-
createTSTypeAliasDeclaration(id: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, typeAnnotation: TypeNode, annotations?: readonly AnnotationUsage[], modifierFlags?: Es2pandaModifierFlags): TSTypeAliasDeclaration {
|
|
412
|
-
return TSTypeAliasDeclaration.createTSTypeAliasDeclaration(id, typeParams, typeAnnotation, annotations, modifierFlags)
|
|
413
|
-
}
|
|
414
|
-
,
|
|
415
|
-
updateTSTypeAliasDeclaration(original: TSTypeAliasDeclaration, id: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, typeAnnotation: TypeNode, annotations?: readonly AnnotationUsage[], modifierFlags?: Es2pandaModifierFlags): TSTypeAliasDeclaration {
|
|
416
|
-
if (isSameNativeObject(id, original.id) && isSameNativeObject(typeParams, original.typeParams) && isSameNativeObject(typeAnnotation, original.typeAnnotation) && isSameNativeObject(annotations, original.annotations) && isSameNativeObject(modifierFlags, original.modifierFlags))
|
|
417
|
-
return original
|
|
418
|
-
return updateNodeByNode(TSTypeAliasDeclaration.createTSTypeAliasDeclaration(id, typeParams, typeAnnotation, annotations, modifierFlags), original)
|
|
419
|
-
}
|
|
420
|
-
,
|
|
421
|
-
createDebuggerStatement(): DebuggerStatement {
|
|
422
|
-
return DebuggerStatement.createDebuggerStatement()
|
|
423
|
-
}
|
|
424
|
-
,
|
|
425
|
-
updateDebuggerStatement(original: DebuggerStatement): DebuggerStatement {
|
|
426
|
-
return updateNodeByNode(DebuggerStatement.createDebuggerStatement(), original)
|
|
427
|
-
}
|
|
428
|
-
,
|
|
429
|
-
createReturnStatement(argument?: Expression): ReturnStatement {
|
|
430
|
-
return ReturnStatement.create1ReturnStatement(argument)
|
|
431
|
-
}
|
|
432
|
-
,
|
|
433
|
-
updateReturnStatement(original: ReturnStatement, argument?: Expression): ReturnStatement {
|
|
434
|
-
if (isSameNativeObject(argument, original.argument))
|
|
435
|
-
return original
|
|
436
|
-
return updateNodeByNode(ReturnStatement.create1ReturnStatement(argument), original)
|
|
437
|
-
}
|
|
438
|
-
,
|
|
439
|
-
createExportDefaultDeclaration(decl: AstNode | undefined, isExportEquals: boolean): ExportDefaultDeclaration {
|
|
440
|
-
return ExportDefaultDeclaration.createExportDefaultDeclaration(decl, isExportEquals)
|
|
441
|
-
}
|
|
442
|
-
,
|
|
443
|
-
updateExportDefaultDeclaration(original: ExportDefaultDeclaration, decl: AstNode | undefined, isExportEquals: boolean): ExportDefaultDeclaration {
|
|
444
|
-
if (isSameNativeObject(decl, original.decl) && isSameNativeObject(isExportEquals, original.isExportEquals))
|
|
445
|
-
return original
|
|
446
|
-
return updateNodeByNode(ExportDefaultDeclaration.createExportDefaultDeclaration(decl, isExportEquals), original)
|
|
447
|
-
}
|
|
448
|
-
,
|
|
449
|
-
createTSInterfaceBody(body: readonly AstNode[]): TSInterfaceBody {
|
|
450
|
-
return TSInterfaceBody.createTSInterfaceBody(body)
|
|
451
|
-
}
|
|
452
|
-
,
|
|
453
|
-
updateTSInterfaceBody(original: TSInterfaceBody, body: readonly AstNode[]): TSInterfaceBody {
|
|
454
|
-
if (isSameNativeObject(body, original.body))
|
|
455
|
-
return original
|
|
456
|
-
return updateNodeByNode(TSInterfaceBody.createTSInterfaceBody(body), original)
|
|
457
|
-
}
|
|
458
|
-
,
|
|
459
|
-
createTSTypeQuery(exprName?: Expression): TSTypeQuery {
|
|
460
|
-
return TSTypeQuery.createTSTypeQuery(exprName)
|
|
461
|
-
}
|
|
462
|
-
,
|
|
463
|
-
updateTSTypeQuery(original: TSTypeQuery, exprName?: Expression): TSTypeQuery {
|
|
464
|
-
if (isSameNativeObject(exprName, original.exprName))
|
|
465
|
-
return original
|
|
466
|
-
return updateNodeByNode(TSTypeQuery.createTSTypeQuery(exprName), original)
|
|
467
|
-
}
|
|
468
|
-
,
|
|
469
|
-
createTSBigintKeyword(): TSBigintKeyword {
|
|
470
|
-
return TSBigintKeyword.createTSBigintKeyword()
|
|
471
|
-
}
|
|
472
|
-
,
|
|
473
|
-
updateTSBigintKeyword(original: TSBigintKeyword): TSBigintKeyword {
|
|
474
|
-
return updateNodeByNode(TSBigintKeyword.createTSBigintKeyword(), original)
|
|
475
|
-
}
|
|
476
|
-
,
|
|
477
|
-
createProperty(kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property {
|
|
478
|
-
return Property.create1Property(kind, key, value, isMethod, isComputed)
|
|
479
|
-
}
|
|
480
|
-
,
|
|
481
|
-
updateProperty(original: Property, kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property {
|
|
482
|
-
if (isSameNativeObject(kind, original.kind) && isSameNativeObject(key, original.key) && isSameNativeObject(value, original.value) && isSameNativeObject(isMethod, original.isMethod) && isSameNativeObject(isComputed, original.isComputed))
|
|
483
|
-
return original
|
|
484
|
-
return updateNodeByNode(Property.create1Property(kind, key, value, isMethod, isComputed), original)
|
|
485
|
-
}
|
|
486
|
-
,
|
|
487
|
-
createStringLiteral(str: string): StringLiteral {
|
|
488
|
-
return StringLiteral.create1StringLiteral(str)
|
|
489
|
-
}
|
|
490
|
-
,
|
|
491
|
-
updateStringLiteral(original: StringLiteral, str: string): StringLiteral {
|
|
492
|
-
if (isSameNativeObject(str, original.str))
|
|
493
|
-
return original
|
|
494
|
-
return updateNodeByNode(StringLiteral.create1StringLiteral(str), original)
|
|
495
|
-
}
|
|
496
|
-
,
|
|
497
|
-
createTSTypeAssertion(typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion {
|
|
498
|
-
return TSTypeAssertion.createTSTypeAssertion(typeAnnotation, expression)
|
|
499
|
-
}
|
|
500
|
-
,
|
|
501
|
-
updateTSTypeAssertion(original: TSTypeAssertion, typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion {
|
|
502
|
-
if (isSameNativeObject(typeAnnotation, original.typeAnnotation) && isSameNativeObject(expression, original.expression))
|
|
503
|
-
return original
|
|
504
|
-
return updateNodeByNode(TSTypeAssertion.createTSTypeAssertion(typeAnnotation, expression), original)
|
|
505
|
-
}
|
|
506
|
-
,
|
|
507
|
-
createTSExternalModuleReference(expr?: Expression): TSExternalModuleReference {
|
|
508
|
-
return TSExternalModuleReference.createTSExternalModuleReference(expr)
|
|
509
|
-
}
|
|
510
|
-
,
|
|
511
|
-
updateTSExternalModuleReference(original: TSExternalModuleReference, expr?: Expression): TSExternalModuleReference {
|
|
512
|
-
if (isSameNativeObject(expr, original.expr))
|
|
513
|
-
return original
|
|
514
|
-
return updateNodeByNode(TSExternalModuleReference.createTSExternalModuleReference(expr), original)
|
|
515
|
-
}
|
|
516
|
-
,
|
|
517
|
-
createTSUndefinedKeyword(): TSUndefinedKeyword {
|
|
518
|
-
return TSUndefinedKeyword.createTSUndefinedKeyword()
|
|
519
|
-
}
|
|
520
|
-
,
|
|
521
|
-
updateTSUndefinedKeyword(original: TSUndefinedKeyword): TSUndefinedKeyword {
|
|
522
|
-
return updateNodeByNode(TSUndefinedKeyword.createTSUndefinedKeyword(), original)
|
|
523
|
-
}
|
|
524
|
-
,
|
|
525
|
-
createUnaryExpression(argument: Expression | undefined, operatorType: Es2pandaTokenType): UnaryExpression {
|
|
526
|
-
return UnaryExpression.createUnaryExpression(argument, operatorType)
|
|
527
|
-
}
|
|
528
|
-
,
|
|
529
|
-
updateUnaryExpression(original: UnaryExpression, argument: Expression | undefined, operatorType: Es2pandaTokenType): UnaryExpression {
|
|
530
|
-
if (isSameNativeObject(argument, original.argument) && isSameNativeObject(operatorType, original.operatorType))
|
|
531
|
-
return original
|
|
532
|
-
return updateNodeByNode(UnaryExpression.createUnaryExpression(argument, operatorType), original)
|
|
533
|
-
}
|
|
534
|
-
,
|
|
535
|
-
createForInStatement(left?: AstNode, right?: Expression, body?: Statement): ForInStatement {
|
|
536
|
-
return ForInStatement.createForInStatement(left, right, body)
|
|
537
|
-
}
|
|
538
|
-
,
|
|
539
|
-
updateForInStatement(original: ForInStatement, left?: AstNode, right?: Expression, body?: Statement): ForInStatement {
|
|
540
|
-
if (isSameNativeObject(left, original.left) && isSameNativeObject(right, original.right) && isSameNativeObject(body, original.body))
|
|
541
|
-
return original
|
|
542
|
-
return updateNodeByNode(ForInStatement.createForInStatement(left, right, body), original)
|
|
543
|
-
}
|
|
544
|
-
,
|
|
545
|
-
createThisExpression(): ThisExpression {
|
|
546
|
-
return ThisExpression.createThisExpression()
|
|
547
|
-
}
|
|
548
|
-
,
|
|
549
|
-
updateThisExpression(original: ThisExpression): ThisExpression {
|
|
550
|
-
return updateNodeByNode(ThisExpression.createThisExpression(), original)
|
|
551
|
-
}
|
|
552
|
-
,
|
|
553
|
-
createBinaryExpression(left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression {
|
|
554
|
-
return BinaryExpression.createBinaryExpression(left, right, operatorType)
|
|
555
|
-
}
|
|
556
|
-
,
|
|
557
|
-
updateBinaryExpression(original: BinaryExpression, left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression {
|
|
558
|
-
if (isSameNativeObject(left, original.left) && isSameNativeObject(right, original.right) && isSameNativeObject(operatorType, original.operatorType))
|
|
559
|
-
return original
|
|
560
|
-
return updateNodeByNode(BinaryExpression.createBinaryExpression(left, right, operatorType), original)
|
|
561
|
-
}
|
|
562
|
-
,
|
|
563
|
-
createSuperExpression(): SuperExpression {
|
|
564
|
-
return SuperExpression.createSuperExpression()
|
|
565
|
-
}
|
|
566
|
-
,
|
|
567
|
-
updateSuperExpression(original: SuperExpression): SuperExpression {
|
|
568
|
-
return updateNodeByNode(SuperExpression.createSuperExpression(), original)
|
|
569
|
-
}
|
|
570
|
-
,
|
|
571
|
-
createAssertStatement(test?: Expression, second?: Expression): AssertStatement {
|
|
572
|
-
return AssertStatement.createAssertStatement(test, second)
|
|
573
|
-
}
|
|
574
|
-
,
|
|
575
|
-
updateAssertStatement(original: AssertStatement, test?: Expression, second?: Expression): AssertStatement {
|
|
576
|
-
if (isSameNativeObject(test, original.test) && isSameNativeObject(second, original.second))
|
|
577
|
-
return original
|
|
578
|
-
return updateNodeByNode(AssertStatement.createAssertStatement(test, second), original)
|
|
579
|
-
}
|
|
580
|
-
,
|
|
581
|
-
createTSStringKeyword(): TSStringKeyword {
|
|
582
|
-
return TSStringKeyword.createTSStringKeyword()
|
|
583
|
-
}
|
|
584
|
-
,
|
|
585
|
-
updateTSStringKeyword(original: TSStringKeyword): TSStringKeyword {
|
|
586
|
-
return updateNodeByNode(TSStringKeyword.createTSStringKeyword(), original)
|
|
587
|
-
}
|
|
588
|
-
,
|
|
589
|
-
createExpressionStatement(expression?: Expression): ExpressionStatement {
|
|
590
|
-
return ExpressionStatement.createExpressionStatement(expression)
|
|
591
|
-
}
|
|
592
|
-
,
|
|
593
|
-
updateExpressionStatement(original: ExpressionStatement, expression?: Expression): ExpressionStatement {
|
|
594
|
-
if (isSameNativeObject(expression, original.expression))
|
|
595
|
-
return original
|
|
596
|
-
return updateNodeByNode(ExpressionStatement.createExpressionStatement(expression), original)
|
|
597
|
-
}
|
|
598
|
-
,
|
|
599
|
-
createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty {
|
|
600
|
-
return MetaProperty.createMetaProperty(kind)
|
|
601
|
-
}
|
|
602
|
-
,
|
|
603
|
-
updateMetaProperty(original: MetaProperty, kind: Es2pandaMetaPropertyKind): MetaProperty {
|
|
604
|
-
if (isSameNativeObject(kind, original.kind))
|
|
605
|
-
return original
|
|
606
|
-
return updateNodeByNode(MetaProperty.createMetaProperty(kind), original)
|
|
607
|
-
}
|
|
608
|
-
,
|
|
609
|
-
createTSArrayType(elementType?: TypeNode): TSArrayType {
|
|
610
|
-
return TSArrayType.createTSArrayType(elementType)
|
|
611
|
-
}
|
|
612
|
-
,
|
|
613
|
-
updateTSArrayType(original: TSArrayType, elementType?: TypeNode): TSArrayType {
|
|
614
|
-
if (isSameNativeObject(elementType, original.elementType))
|
|
615
|
-
return original
|
|
616
|
-
return updateNodeByNode(TSArrayType.createTSArrayType(elementType), original)
|
|
617
|
-
}
|
|
618
|
-
,
|
|
619
|
-
createExportAllDeclaration(source?: StringLiteral, exported?: Identifier): ExportAllDeclaration {
|
|
620
|
-
return ExportAllDeclaration.createExportAllDeclaration(source, exported)
|
|
621
|
-
}
|
|
622
|
-
,
|
|
623
|
-
updateExportAllDeclaration(original: ExportAllDeclaration, source?: StringLiteral, exported?: Identifier): ExportAllDeclaration {
|
|
624
|
-
if (isSameNativeObject(source, original.source) && isSameNativeObject(exported, original.exported))
|
|
625
|
-
return original
|
|
626
|
-
return updateNodeByNode(ExportAllDeclaration.createExportAllDeclaration(source, exported), original)
|
|
627
|
-
}
|
|
628
|
-
,
|
|
629
|
-
createExportSpecifier(local?: Identifier, exported?: Identifier): ExportSpecifier {
|
|
630
|
-
return ExportSpecifier.createExportSpecifier(local, exported)
|
|
631
|
-
}
|
|
632
|
-
,
|
|
633
|
-
updateExportSpecifier(original: ExportSpecifier, local?: Identifier, exported?: Identifier): ExportSpecifier {
|
|
634
|
-
if (isSameNativeObject(local, original.local) && isSameNativeObject(exported, original.exported))
|
|
635
|
-
return original
|
|
636
|
-
return updateNodeByNode(ExportSpecifier.createExportSpecifier(local, exported), original)
|
|
637
|
-
}
|
|
638
|
-
,
|
|
639
|
-
createTSTupleType(elementType: readonly TypeNode[]): TSTupleType {
|
|
640
|
-
return TSTupleType.createTSTupleType(elementType)
|
|
641
|
-
}
|
|
642
|
-
,
|
|
643
|
-
updateTSTupleType(original: TSTupleType, elementType: readonly TypeNode[]): TSTupleType {
|
|
644
|
-
if (isSameNativeObject(elementType, original.elementType))
|
|
645
|
-
return original
|
|
646
|
-
return updateNodeByNode(TSTupleType.createTSTupleType(elementType), original)
|
|
647
|
-
}
|
|
648
|
-
,
|
|
649
|
-
createFunctionExpression(id?: Identifier, _function?: ScriptFunction): FunctionExpression {
|
|
650
|
-
return FunctionExpression.create1FunctionExpression(id, _function)
|
|
651
|
-
}
|
|
652
|
-
,
|
|
653
|
-
updateFunctionExpression(original: FunctionExpression, id?: Identifier, _function?: ScriptFunction): FunctionExpression {
|
|
654
|
-
if (isSameNativeObject(id, original.id) && isSameNativeObject(_function, original.function))
|
|
655
|
-
return original
|
|
656
|
-
return updateNodeByNode(FunctionExpression.create1FunctionExpression(id, _function), original)
|
|
657
|
-
}
|
|
658
|
-
,
|
|
659
|
-
createTSIndexSignature(param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly: boolean): TSIndexSignature {
|
|
660
|
-
return TSIndexSignature.createTSIndexSignature(param, typeAnnotation, readonly)
|
|
661
|
-
}
|
|
662
|
-
,
|
|
663
|
-
updateTSIndexSignature(original: TSIndexSignature, param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly: boolean): TSIndexSignature {
|
|
664
|
-
if (isSameNativeObject(param, original.param) && isSameNativeObject(typeAnnotation, original.typeAnnotation) && isSameNativeObject(readonly, original.readonly))
|
|
665
|
-
return original
|
|
666
|
-
return updateNodeByNode(TSIndexSignature.createTSIndexSignature(param, typeAnnotation, readonly), original)
|
|
667
|
-
}
|
|
668
|
-
,
|
|
669
|
-
createCharLiteral(): CharLiteral {
|
|
670
|
-
return CharLiteral.createCharLiteral()
|
|
671
|
-
}
|
|
672
|
-
,
|
|
673
|
-
updateCharLiteral(original: CharLiteral): CharLiteral {
|
|
674
|
-
return updateNodeByNode(CharLiteral.createCharLiteral(), original)
|
|
675
|
-
}
|
|
676
|
-
,
|
|
677
|
-
createETSIntrinsicNode(id: string, _arguments: readonly Expression[]): ETSIntrinsicNode {
|
|
678
|
-
return ETSIntrinsicNode.create1ETSIntrinsicNode(id, _arguments)
|
|
679
|
-
}
|
|
680
|
-
,
|
|
681
|
-
updateETSIntrinsicNode(original: ETSIntrinsicNode, id: string, _arguments: readonly Expression[]): ETSIntrinsicNode {
|
|
682
|
-
if (isSameNativeObject(id, original.id) && isSameNativeObject(_arguments, original.arguments))
|
|
683
|
-
return original
|
|
684
|
-
return updateNodeByNode(ETSIntrinsicNode.create1ETSIntrinsicNode(id, _arguments), original)
|
|
685
|
-
}
|
|
686
|
-
,
|
|
687
|
-
createTSModuleBlock(statements: readonly Statement[]): TSModuleBlock {
|
|
688
|
-
return TSModuleBlock.createTSModuleBlock(statements)
|
|
689
|
-
}
|
|
690
|
-
,
|
|
691
|
-
updateTSModuleBlock(original: TSModuleBlock, statements: readonly Statement[]): TSModuleBlock {
|
|
692
|
-
if (isSameNativeObject(statements, original.statements))
|
|
693
|
-
return original
|
|
694
|
-
return updateNodeByNode(TSModuleBlock.createTSModuleBlock(statements), original)
|
|
695
|
-
}
|
|
696
|
-
,
|
|
697
|
-
createETSNewArrayInstanceExpression(typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression {
|
|
698
|
-
return ETSNewArrayInstanceExpression.createETSNewArrayInstanceExpression(typeReference, dimension)
|
|
699
|
-
}
|
|
700
|
-
,
|
|
701
|
-
updateETSNewArrayInstanceExpression(original: ETSNewArrayInstanceExpression, typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression {
|
|
702
|
-
if (isSameNativeObject(typeReference, original.typeReference) && isSameNativeObject(dimension, original.dimension))
|
|
703
|
-
return original
|
|
704
|
-
return updateNodeByNode(ETSNewArrayInstanceExpression.createETSNewArrayInstanceExpression(typeReference, dimension), original)
|
|
705
|
-
}
|
|
706
|
-
,
|
|
707
|
-
createAnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[]): AnnotationDeclaration {
|
|
708
|
-
return AnnotationDeclaration.create1AnnotationDeclaration(expr, properties)
|
|
709
|
-
}
|
|
710
|
-
,
|
|
711
|
-
updateAnnotationDeclaration(original: AnnotationDeclaration, expr: Expression | undefined, properties: readonly AstNode[]): AnnotationDeclaration {
|
|
712
|
-
if (isSameNativeObject(expr, original.expr) && isSameNativeObject(properties, original.properties))
|
|
713
|
-
return original
|
|
714
|
-
return updateNodeByNode(AnnotationDeclaration.create1AnnotationDeclaration(expr, properties), original)
|
|
715
|
-
}
|
|
716
|
-
,
|
|
717
|
-
createAnnotationUsage(expr: Expression | undefined, properties: readonly AstNode[]): AnnotationUsage {
|
|
718
|
-
return AnnotationUsage.create1AnnotationUsage(expr, properties)
|
|
719
|
-
}
|
|
720
|
-
,
|
|
721
|
-
updateAnnotationUsage(original: AnnotationUsage, expr: Expression | undefined, properties: readonly AstNode[]): AnnotationUsage {
|
|
722
|
-
if (isSameNativeObject(expr, original.expr) && isSameNativeObject(properties, original.properties))
|
|
723
|
-
return original
|
|
724
|
-
return updateNodeByNode(AnnotationUsage.create1AnnotationUsage(expr, properties), original)
|
|
725
|
-
}
|
|
726
|
-
,
|
|
727
|
-
createEmptyStatement(isBrokenStatement: boolean): EmptyStatement {
|
|
728
|
-
return EmptyStatement.create1EmptyStatement(isBrokenStatement)
|
|
729
|
-
}
|
|
730
|
-
,
|
|
731
|
-
updateEmptyStatement(original: EmptyStatement, isBrokenStatement: boolean): EmptyStatement {
|
|
732
|
-
if (isSameNativeObject(isBrokenStatement, original.isBrokenStatement))
|
|
733
|
-
return original
|
|
734
|
-
return updateNodeByNode(EmptyStatement.create1EmptyStatement(isBrokenStatement), original)
|
|
735
|
-
}
|
|
736
|
-
,
|
|
737
|
-
createWhileStatement(test?: Expression, body?: Statement): WhileStatement {
|
|
738
|
-
return WhileStatement.createWhileStatement(test, body)
|
|
739
|
-
}
|
|
740
|
-
,
|
|
741
|
-
updateWhileStatement(original: WhileStatement, test?: Expression, body?: Statement): WhileStatement {
|
|
742
|
-
if (isSameNativeObject(test, original.test) && isSameNativeObject(body, original.body))
|
|
743
|
-
return original
|
|
744
|
-
return updateNodeByNode(WhileStatement.createWhileStatement(test, body), original)
|
|
745
|
-
}
|
|
746
|
-
,
|
|
747
|
-
createFunctionSignature(typeParams: TSTypeParameterDeclaration | undefined, params: readonly Expression[], returnType: TypeNode | undefined, hasReceiver: boolean): FunctionSignature {
|
|
748
|
-
return FunctionSignature.createFunctionSignature(typeParams, params, returnType, hasReceiver)
|
|
749
|
-
}
|
|
750
|
-
,
|
|
751
|
-
updateFunctionSignature(original: FunctionSignature, typeParams: TSTypeParameterDeclaration | undefined, params: readonly Expression[], returnType: TypeNode | undefined, hasReceiver: boolean): FunctionSignature {
|
|
752
|
-
if (isSameNativeObject(typeParams, original.typeParams) && isSameNativeObject(params, original.params) && isSameNativeObject(returnType, original.returnType) && isSameNativeObject(hasReceiver, original.hasReceiver))
|
|
753
|
-
return original
|
|
754
|
-
return updateNodeByNode(FunctionSignature.createFunctionSignature(typeParams, params, returnType, hasReceiver), original)
|
|
755
|
-
}
|
|
756
|
-
,
|
|
757
|
-
createChainExpression(expression?: Expression): ChainExpression {
|
|
758
|
-
return ChainExpression.createChainExpression(expression)
|
|
759
|
-
}
|
|
760
|
-
,
|
|
761
|
-
updateChainExpression(original: ChainExpression, expression?: Expression): ChainExpression {
|
|
762
|
-
if (isSameNativeObject(expression, original.expression))
|
|
763
|
-
return original
|
|
764
|
-
return updateNodeByNode(ChainExpression.createChainExpression(expression), original)
|
|
765
|
-
}
|
|
766
|
-
,
|
|
767
|
-
createTSIntersectionType(types: readonly Expression[]): TSIntersectionType {
|
|
768
|
-
return TSIntersectionType.createTSIntersectionType(types)
|
|
769
|
-
}
|
|
770
|
-
,
|
|
771
|
-
updateTSIntersectionType(original: TSIntersectionType, types: readonly Expression[]): TSIntersectionType {
|
|
772
|
-
if (isSameNativeObject(types, original.types))
|
|
773
|
-
return original
|
|
774
|
-
return updateNodeByNode(TSIntersectionType.createTSIntersectionType(types), original)
|
|
775
|
-
}
|
|
776
|
-
,
|
|
777
|
-
createUpdateExpression(argument: Expression | undefined, operatorType: Es2pandaTokenType, isPrefix: boolean): UpdateExpression {
|
|
778
|
-
return UpdateExpression.createUpdateExpression(argument, operatorType, isPrefix)
|
|
779
|
-
}
|
|
780
|
-
,
|
|
781
|
-
updateUpdateExpression(original: UpdateExpression, argument: Expression | undefined, operatorType: Es2pandaTokenType, isPrefix: boolean): UpdateExpression {
|
|
782
|
-
if (isSameNativeObject(argument, original.argument) && isSameNativeObject(operatorType, original.operatorType) && isSameNativeObject(isPrefix, original.isPrefix))
|
|
783
|
-
return original
|
|
784
|
-
return updateNodeByNode(UpdateExpression.createUpdateExpression(argument, operatorType, isPrefix), original)
|
|
785
|
-
}
|
|
786
|
-
,
|
|
787
|
-
createBlockExpression(statements: readonly Statement[]): BlockExpression {
|
|
788
|
-
return BlockExpression.createBlockExpression(statements)
|
|
789
|
-
}
|
|
790
|
-
,
|
|
791
|
-
updateBlockExpression(original: BlockExpression, statements: readonly Statement[]): BlockExpression {
|
|
792
|
-
if (isSameNativeObject(statements, original.statements))
|
|
793
|
-
return original
|
|
794
|
-
return updateNodeByNode(BlockExpression.createBlockExpression(statements), original)
|
|
795
|
-
}
|
|
796
|
-
,
|
|
797
|
-
createTSTypeLiteral(members: readonly AstNode[]): TSTypeLiteral {
|
|
798
|
-
return TSTypeLiteral.createTSTypeLiteral(members)
|
|
799
|
-
}
|
|
800
|
-
,
|
|
801
|
-
updateTSTypeLiteral(original: TSTypeLiteral, members: readonly AstNode[]): TSTypeLiteral {
|
|
802
|
-
if (isSameNativeObject(members, original.members))
|
|
803
|
-
return original
|
|
804
|
-
return updateNodeByNode(TSTypeLiteral.createTSTypeLiteral(members), original)
|
|
805
|
-
}
|
|
806
|
-
,
|
|
807
|
-
createTSBooleanKeyword(): TSBooleanKeyword {
|
|
808
|
-
return TSBooleanKeyword.createTSBooleanKeyword()
|
|
809
|
-
}
|
|
810
|
-
,
|
|
811
|
-
updateTSBooleanKeyword(original: TSBooleanKeyword): TSBooleanKeyword {
|
|
812
|
-
return updateNodeByNode(TSBooleanKeyword.createTSBooleanKeyword(), original)
|
|
813
|
-
}
|
|
814
|
-
,
|
|
815
|
-
createTSTypePredicate(parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate {
|
|
816
|
-
return TSTypePredicate.createTSTypePredicate(parameterName, typeAnnotation, asserts)
|
|
817
|
-
}
|
|
818
|
-
,
|
|
819
|
-
updateTSTypePredicate(original: TSTypePredicate, parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate {
|
|
820
|
-
if (isSameNativeObject(parameterName, original.parameterName) && isSameNativeObject(typeAnnotation, original.typeAnnotation) && isSameNativeObject(asserts, original.asserts))
|
|
821
|
-
return original
|
|
822
|
-
return updateNodeByNode(TSTypePredicate.createTSTypePredicate(parameterName, typeAnnotation, asserts), original)
|
|
823
|
-
}
|
|
824
|
-
,
|
|
825
|
-
createImportNamespaceSpecifier(local?: Identifier): ImportNamespaceSpecifier {
|
|
826
|
-
return ImportNamespaceSpecifier.createImportNamespaceSpecifier(local)
|
|
827
|
-
}
|
|
828
|
-
,
|
|
829
|
-
updateImportNamespaceSpecifier(original: ImportNamespaceSpecifier, local?: Identifier): ImportNamespaceSpecifier {
|
|
830
|
-
if (isSameNativeObject(local, original.local))
|
|
831
|
-
return original
|
|
832
|
-
return updateNodeByNode(ImportNamespaceSpecifier.createImportNamespaceSpecifier(local), original)
|
|
833
|
-
}
|
|
834
|
-
,
|
|
835
|
-
createTSTypeParameterInstantiation(params: readonly TypeNode[]): TSTypeParameterInstantiation {
|
|
836
|
-
return TSTypeParameterInstantiation.createTSTypeParameterInstantiation(params)
|
|
837
|
-
}
|
|
838
|
-
,
|
|
839
|
-
updateTSTypeParameterInstantiation(original: TSTypeParameterInstantiation, params: readonly TypeNode[]): TSTypeParameterInstantiation {
|
|
840
|
-
if (isSameNativeObject(params, original.params))
|
|
841
|
-
return original
|
|
842
|
-
return updateNodeByNode(TSTypeParameterInstantiation.createTSTypeParameterInstantiation(params), original)
|
|
843
|
-
}
|
|
844
|
-
,
|
|
845
|
-
createNullLiteral(): NullLiteral {
|
|
846
|
-
return NullLiteral.createNullLiteral()
|
|
847
|
-
}
|
|
848
|
-
,
|
|
849
|
-
updateNullLiteral(original: NullLiteral): NullLiteral {
|
|
850
|
-
return updateNodeByNode(NullLiteral.createNullLiteral(), original)
|
|
851
|
-
}
|
|
852
|
-
,
|
|
853
|
-
createTSInferType(typeParam?: TSTypeParameter): TSInferType {
|
|
854
|
-
return TSInferType.createTSInferType(typeParam)
|
|
855
|
-
}
|
|
856
|
-
,
|
|
857
|
-
updateTSInferType(original: TSInferType, typeParam?: TSTypeParameter): TSInferType {
|
|
858
|
-
if (isSameNativeObject(typeParam, original.typeParam))
|
|
859
|
-
return original
|
|
860
|
-
return updateNodeByNode(TSInferType.createTSInferType(typeParam), original)
|
|
861
|
-
}
|
|
862
|
-
,
|
|
863
|
-
createSwitchCaseStatement(test: Expression | undefined, consequent: readonly Statement[]): SwitchCaseStatement {
|
|
864
|
-
return SwitchCaseStatement.createSwitchCaseStatement(test, consequent)
|
|
865
|
-
}
|
|
866
|
-
,
|
|
867
|
-
updateSwitchCaseStatement(original: SwitchCaseStatement, test: Expression | undefined, consequent: readonly Statement[]): SwitchCaseStatement {
|
|
868
|
-
if (isSameNativeObject(test, original.test) && isSameNativeObject(consequent, original.consequent))
|
|
869
|
-
return original
|
|
870
|
-
return updateNodeByNode(SwitchCaseStatement.createSwitchCaseStatement(test, consequent), original)
|
|
871
|
-
}
|
|
872
|
-
,
|
|
873
|
-
createYieldExpression(argument: Expression | undefined, hasDelegate: boolean): YieldExpression {
|
|
874
|
-
return YieldExpression.createYieldExpression(argument, hasDelegate)
|
|
875
|
-
}
|
|
876
|
-
,
|
|
877
|
-
updateYieldExpression(original: YieldExpression, argument: Expression | undefined, hasDelegate: boolean): YieldExpression {
|
|
878
|
-
if (isSameNativeObject(argument, original.argument) && isSameNativeObject(hasDelegate, original.hasDelegate))
|
|
879
|
-
return original
|
|
880
|
-
return updateNodeByNode(YieldExpression.createYieldExpression(argument, hasDelegate), original)
|
|
881
|
-
}
|
|
882
|
-
,
|
|
883
|
-
createTSImportEqualsDeclaration(id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration {
|
|
884
|
-
return TSImportEqualsDeclaration.createTSImportEqualsDeclaration(id, moduleReference, isExport)
|
|
885
|
-
}
|
|
886
|
-
,
|
|
887
|
-
updateTSImportEqualsDeclaration(original: TSImportEqualsDeclaration, id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration {
|
|
888
|
-
if (isSameNativeObject(id, original.id) && isSameNativeObject(moduleReference, original.moduleReference) && isSameNativeObject(isExport, original.isExport))
|
|
889
|
-
return original
|
|
890
|
-
return updateNodeByNode(TSImportEqualsDeclaration.createTSImportEqualsDeclaration(id, moduleReference, isExport), original)
|
|
891
|
-
}
|
|
892
|
-
,
|
|
893
|
-
createBooleanLiteral(value: boolean): BooleanLiteral {
|
|
894
|
-
return BooleanLiteral.createBooleanLiteral(value)
|
|
895
|
-
}
|
|
896
|
-
,
|
|
897
|
-
updateBooleanLiteral(original: BooleanLiteral, value: boolean): BooleanLiteral {
|
|
898
|
-
if (isSameNativeObject(value, original.value))
|
|
899
|
-
return original
|
|
900
|
-
return updateNodeByNode(BooleanLiteral.createBooleanLiteral(value), original)
|
|
901
|
-
}
|
|
902
|
-
,
|
|
903
|
-
createTSNumberKeyword(): TSNumberKeyword {
|
|
904
|
-
return TSNumberKeyword.createTSNumberKeyword()
|
|
905
|
-
}
|
|
906
|
-
,
|
|
907
|
-
updateTSNumberKeyword(original: TSNumberKeyword): TSNumberKeyword {
|
|
908
|
-
return updateNodeByNode(TSNumberKeyword.createTSNumberKeyword(), original)
|
|
909
|
-
}
|
|
910
|
-
,
|
|
911
|
-
createTSNonNullExpression(expr?: Expression): TSNonNullExpression {
|
|
912
|
-
return TSNonNullExpression.createTSNonNullExpression(expr)
|
|
913
|
-
}
|
|
914
|
-
,
|
|
915
|
-
updateTSNonNullExpression(original: TSNonNullExpression, expr?: Expression): TSNonNullExpression {
|
|
916
|
-
if (isSameNativeObject(expr, original.expr))
|
|
917
|
-
return original
|
|
918
|
-
return updateNodeByNode(TSNonNullExpression.createTSNonNullExpression(expr), original)
|
|
919
|
-
}
|
|
920
|
-
,
|
|
921
|
-
createPrefixAssertionExpression(expr?: Expression, type?: TypeNode): PrefixAssertionExpression {
|
|
922
|
-
return PrefixAssertionExpression.createPrefixAssertionExpression(expr, type)
|
|
923
|
-
}
|
|
924
|
-
,
|
|
925
|
-
updatePrefixAssertionExpression(original: PrefixAssertionExpression, expr?: Expression, type?: TypeNode): PrefixAssertionExpression {
|
|
926
|
-
if (isSameNativeObject(expr, original.expr) && isSameNativeObject(type, original.type))
|
|
927
|
-
return original
|
|
928
|
-
return updateNodeByNode(PrefixAssertionExpression.createPrefixAssertionExpression(expr, type), original)
|
|
929
|
-
}
|
|
930
|
-
,
|
|
931
|
-
createClassExpression(definition?: ClassDefinition): ClassExpression {
|
|
932
|
-
return ClassExpression.createClassExpression(definition)
|
|
933
|
-
}
|
|
934
|
-
,
|
|
935
|
-
updateClassExpression(original: ClassExpression, definition?: ClassDefinition): ClassExpression {
|
|
936
|
-
if (isSameNativeObject(definition, original.definition))
|
|
937
|
-
return original
|
|
938
|
-
return updateNodeByNode(ClassExpression.createClassExpression(definition), original)
|
|
939
|
-
}
|
|
940
|
-
,
|
|
941
|
-
createForOfStatement(left: AstNode | undefined, right: Expression | undefined, body: Statement | undefined, isAwait: boolean): ForOfStatement {
|
|
942
|
-
return ForOfStatement.createForOfStatement(left, right, body, isAwait)
|
|
943
|
-
}
|
|
944
|
-
,
|
|
945
|
-
updateForOfStatement(original: ForOfStatement, left: AstNode | undefined, right: Expression | undefined, body: Statement | undefined, isAwait: boolean): ForOfStatement {
|
|
946
|
-
if (isSameNativeObject(left, original.left) && isSameNativeObject(right, original.right) && isSameNativeObject(body, original.body) && isSameNativeObject(isAwait, original.isAwait))
|
|
947
|
-
return original
|
|
948
|
-
return updateNodeByNode(ForOfStatement.createForOfStatement(left, right, body, isAwait), original)
|
|
949
|
-
}
|
|
950
|
-
,
|
|
951
|
-
createTemplateLiteral(quasis: readonly TemplateElement[], expressions: readonly Expression[], multilineString: string): TemplateLiteral {
|
|
952
|
-
return TemplateLiteral.createTemplateLiteral(quasis, expressions, multilineString)
|
|
953
|
-
}
|
|
954
|
-
,
|
|
955
|
-
updateTemplateLiteral(original: TemplateLiteral, quasis: readonly TemplateElement[], expressions: readonly Expression[], multilineString: string): TemplateLiteral {
|
|
956
|
-
if (isSameNativeObject(quasis, original.quasis) && isSameNativeObject(expressions, original.expressions) && isSameNativeObject(multilineString, original.multilineString))
|
|
957
|
-
return original
|
|
958
|
-
return updateNodeByNode(TemplateLiteral.createTemplateLiteral(quasis, expressions, multilineString), original)
|
|
959
|
-
}
|
|
960
|
-
,
|
|
961
|
-
createTSUnionType(types: readonly TypeNode[]): TSUnionType {
|
|
962
|
-
return TSUnionType.createTSUnionType(types)
|
|
963
|
-
}
|
|
964
|
-
,
|
|
965
|
-
updateTSUnionType(original: TSUnionType, types: readonly TypeNode[]): TSUnionType {
|
|
966
|
-
if (isSameNativeObject(types, original.types))
|
|
967
|
-
return original
|
|
968
|
-
return updateNodeByNode(TSUnionType.createTSUnionType(types), original)
|
|
969
|
-
}
|
|
970
|
-
,
|
|
971
|
-
createTSUnknownKeyword(): TSUnknownKeyword {
|
|
972
|
-
return TSUnknownKeyword.createTSUnknownKeyword()
|
|
973
|
-
}
|
|
974
|
-
,
|
|
975
|
-
updateTSUnknownKeyword(original: TSUnknownKeyword): TSUnknownKeyword {
|
|
976
|
-
return updateNodeByNode(TSUnknownKeyword.createTSUnknownKeyword(), original)
|
|
977
|
-
}
|
|
978
|
-
,
|
|
979
|
-
createIdentifier(name: string, typeAnnotation?: TypeNode): Identifier {
|
|
980
|
-
return Identifier.create2Identifier(name, typeAnnotation)
|
|
981
|
-
}
|
|
982
|
-
,
|
|
983
|
-
updateIdentifier(original: Identifier, name: string, typeAnnotation?: TypeNode): Identifier {
|
|
984
|
-
if (isSameNativeObject(name, original.name) && isSameNativeObject(typeAnnotation, original.typeAnnotation))
|
|
985
|
-
return original
|
|
986
|
-
return updateNodeByNode(Identifier.create2Identifier(name, typeAnnotation), original)
|
|
987
|
-
}
|
|
988
|
-
,
|
|
989
|
-
createOpaqueTypeNode(): OpaqueTypeNode {
|
|
990
|
-
return OpaqueTypeNode.create1OpaqueTypeNode()
|
|
991
|
-
}
|
|
992
|
-
,
|
|
993
|
-
updateOpaqueTypeNode(original: OpaqueTypeNode): OpaqueTypeNode {
|
|
994
|
-
return updateNodeByNode(OpaqueTypeNode.create1OpaqueTypeNode(), original)
|
|
995
|
-
}
|
|
996
|
-
,
|
|
997
|
-
createTSTypeParameterDeclaration(params: readonly TSTypeParameter[], requiredParams: number): TSTypeParameterDeclaration {
|
|
998
|
-
return TSTypeParameterDeclaration.createTSTypeParameterDeclaration(params, requiredParams)
|
|
999
|
-
}
|
|
1000
|
-
,
|
|
1001
|
-
updateTSTypeParameterDeclaration(original: TSTypeParameterDeclaration, params: readonly TSTypeParameter[], requiredParams: number): TSTypeParameterDeclaration {
|
|
1002
|
-
if (isSameNativeObject(params, original.params) && isSameNativeObject(requiredParams, original.requiredParams))
|
|
1003
|
-
return original
|
|
1004
|
-
return updateNodeByNode(TSTypeParameterDeclaration.createTSTypeParameterDeclaration(params, requiredParams), original)
|
|
1005
|
-
}
|
|
1006
|
-
,
|
|
1007
|
-
createTSNullKeyword(): TSNullKeyword {
|
|
1008
|
-
return TSNullKeyword.createTSNullKeyword()
|
|
1009
|
-
}
|
|
1010
|
-
,
|
|
1011
|
-
updateTSNullKeyword(original: TSNullKeyword): TSNullKeyword {
|
|
1012
|
-
return updateNodeByNode(TSNullKeyword.createTSNullKeyword(), original)
|
|
1013
|
-
}
|
|
1014
|
-
,
|
|
1015
|
-
createTSInterfaceHeritage(expr?: TypeNode): TSInterfaceHeritage {
|
|
1016
|
-
return TSInterfaceHeritage.createTSInterfaceHeritage(expr)
|
|
1017
|
-
}
|
|
1018
|
-
,
|
|
1019
|
-
updateTSInterfaceHeritage(original: TSInterfaceHeritage, expr?: TypeNode): TSInterfaceHeritage {
|
|
1020
|
-
if (isSameNativeObject(expr, original.expr))
|
|
1021
|
-
return original
|
|
1022
|
-
return updateNodeByNode(TSInterfaceHeritage.createTSInterfaceHeritage(expr), original)
|
|
1023
|
-
}
|
|
1024
|
-
,
|
|
1025
|
-
createETSClassLiteral(expr?: TypeNode): ETSClassLiteral {
|
|
1026
|
-
return ETSClassLiteral.createETSClassLiteral(expr)
|
|
1027
|
-
}
|
|
1028
|
-
,
|
|
1029
|
-
updateETSClassLiteral(original: ETSClassLiteral, expr?: TypeNode): ETSClassLiteral {
|
|
1030
|
-
if (isSameNativeObject(expr, original.expr))
|
|
1031
|
-
return original
|
|
1032
|
-
return updateNodeByNode(ETSClassLiteral.createETSClassLiteral(expr), original)
|
|
1033
|
-
}
|
|
1034
|
-
,
|
|
1035
|
-
createBreakStatement(ident?: Identifier): BreakStatement {
|
|
1036
|
-
return BreakStatement.create1BreakStatement(ident)
|
|
1037
|
-
}
|
|
1038
|
-
,
|
|
1039
|
-
updateBreakStatement(original: BreakStatement, ident?: Identifier): BreakStatement {
|
|
1040
|
-
if (isSameNativeObject(ident, original.ident))
|
|
1041
|
-
return original
|
|
1042
|
-
return updateNodeByNode(BreakStatement.create1BreakStatement(ident), original)
|
|
1043
|
-
}
|
|
1044
|
-
,
|
|
1045
|
-
createTSAnyKeyword(): TSAnyKeyword {
|
|
1046
|
-
return TSAnyKeyword.createTSAnyKeyword()
|
|
1047
|
-
}
|
|
1048
|
-
,
|
|
1049
|
-
updateTSAnyKeyword(original: TSAnyKeyword): TSAnyKeyword {
|
|
1050
|
-
return updateNodeByNode(TSAnyKeyword.createTSAnyKeyword(), original)
|
|
1051
|
-
}
|
|
1052
|
-
,
|
|
1053
|
-
createClassDeclaration(definition: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
1054
|
-
return ClassDeclaration.createClassDeclaration(definition, modifierFlags)
|
|
1055
|
-
}
|
|
1056
|
-
,
|
|
1057
|
-
updateClassDeclaration(original: ClassDeclaration, definition: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
1058
|
-
if (isSameNativeObject(definition, original.definition) && isSameNativeObject(modifierFlags, original.modifierFlags))
|
|
1059
|
-
return original
|
|
1060
|
-
return updateNodeByNode(ClassDeclaration.createClassDeclaration(definition, modifierFlags), original)
|
|
1061
|
-
}
|
|
1062
|
-
,
|
|
1063
|
-
createTSIndexedAccessType(objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType {
|
|
1064
|
-
return TSIndexedAccessType.createTSIndexedAccessType(objectType, indexType)
|
|
1065
|
-
}
|
|
1066
|
-
,
|
|
1067
|
-
updateTSIndexedAccessType(original: TSIndexedAccessType, objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType {
|
|
1068
|
-
if (isSameNativeObject(objectType, original.objectType) && isSameNativeObject(indexType, original.indexType))
|
|
1069
|
-
return original
|
|
1070
|
-
return updateNodeByNode(TSIndexedAccessType.createTSIndexedAccessType(objectType, indexType), original)
|
|
1071
|
-
}
|
|
1072
|
-
,
|
|
1073
|
-
createTSQualifiedName(left?: Expression, right?: Identifier): TSQualifiedName {
|
|
1074
|
-
return TSQualifiedName.createTSQualifiedName(left, right)
|
|
1075
|
-
}
|
|
1076
|
-
,
|
|
1077
|
-
updateTSQualifiedName(original: TSQualifiedName, left?: Expression, right?: Identifier): TSQualifiedName {
|
|
1078
|
-
if (isSameNativeObject(left, original.left) && isSameNativeObject(right, original.right))
|
|
1079
|
-
return original
|
|
1080
|
-
return updateNodeByNode(TSQualifiedName.createTSQualifiedName(left, right), original)
|
|
1081
|
-
}
|
|
1082
|
-
,
|
|
1083
|
-
createAwaitExpression(argument?: Expression): AwaitExpression {
|
|
1084
|
-
return AwaitExpression.createAwaitExpression(argument)
|
|
1085
|
-
}
|
|
1086
|
-
,
|
|
1087
|
-
updateAwaitExpression(original: AwaitExpression, argument?: Expression): AwaitExpression {
|
|
1088
|
-
if (isSameNativeObject(argument, original.argument))
|
|
1089
|
-
return original
|
|
1090
|
-
return updateNodeByNode(AwaitExpression.createAwaitExpression(argument), original)
|
|
1091
|
-
}
|
|
1092
|
-
,
|
|
1093
|
-
createContinueStatement(ident?: Identifier): ContinueStatement {
|
|
1094
|
-
return ContinueStatement.create1ContinueStatement(ident)
|
|
1095
|
-
}
|
|
1096
|
-
,
|
|
1097
|
-
updateContinueStatement(original: ContinueStatement, ident?: Identifier): ContinueStatement {
|
|
1098
|
-
if (isSameNativeObject(ident, original.ident))
|
|
1099
|
-
return original
|
|
1100
|
-
return updateNodeByNode(ContinueStatement.create1ContinueStatement(ident), original)
|
|
1101
|
-
}
|
|
1102
|
-
,
|
|
1103
|
-
createETSNewMultiDimArrayInstanceExpression(typeReference: TypeNode | undefined, dimensions: readonly Expression[]): ETSNewMultiDimArrayInstanceExpression {
|
|
1104
|
-
return ETSNewMultiDimArrayInstanceExpression.createETSNewMultiDimArrayInstanceExpression(typeReference, dimensions)
|
|
1105
|
-
}
|
|
1106
|
-
,
|
|
1107
|
-
updateETSNewMultiDimArrayInstanceExpression(original: ETSNewMultiDimArrayInstanceExpression, typeReference: TypeNode | undefined, dimensions: readonly Expression[]): ETSNewMultiDimArrayInstanceExpression {
|
|
1108
|
-
if (isSameNativeObject(typeReference, original.typeReference) && isSameNativeObject(dimensions, original.dimensions))
|
|
1109
|
-
return original
|
|
1110
|
-
return updateNodeByNode(ETSNewMultiDimArrayInstanceExpression.createETSNewMultiDimArrayInstanceExpression(typeReference, dimensions), original)
|
|
1111
|
-
}
|
|
1112
|
-
,
|
|
1113
|
-
createTSNamedTupleMember(label: Expression | undefined, elementType: TypeNode | undefined, isOptional: boolean): TSNamedTupleMember {
|
|
1114
|
-
return TSNamedTupleMember.createTSNamedTupleMember(label, elementType, isOptional)
|
|
1115
|
-
}
|
|
1116
|
-
,
|
|
1117
|
-
updateTSNamedTupleMember(original: TSNamedTupleMember, label: Expression | undefined, elementType: TypeNode | undefined, isOptional: boolean): TSNamedTupleMember {
|
|
1118
|
-
if (isSameNativeObject(label, original.label) && isSameNativeObject(elementType, original.elementType) && isSameNativeObject(isOptional, original.isOptional))
|
|
1119
|
-
return original
|
|
1120
|
-
return updateNodeByNode(TSNamedTupleMember.createTSNamedTupleMember(label, elementType, isOptional), original)
|
|
1121
|
-
}
|
|
1122
|
-
,
|
|
1123
|
-
createImportExpression(source?: Expression): ImportExpression {
|
|
1124
|
-
return ImportExpression.createImportExpression(source)
|
|
1125
|
-
}
|
|
1126
|
-
,
|
|
1127
|
-
updateImportExpression(original: ImportExpression, source?: Expression): ImportExpression {
|
|
1128
|
-
if (isSameNativeObject(source, original.source))
|
|
1129
|
-
return original
|
|
1130
|
-
return updateNodeByNode(ImportExpression.createImportExpression(source), original)
|
|
1131
|
-
}
|
|
1132
|
-
,
|
|
1133
|
-
createETSNullType(): ETSNullType {
|
|
1134
|
-
return ETSNullType.createETSNullType()
|
|
1135
|
-
}
|
|
1136
|
-
,
|
|
1137
|
-
updateETSNullType(original: ETSNullType): ETSNullType {
|
|
1138
|
-
return updateNodeByNode(ETSNullType.createETSNullType(), original)
|
|
1139
|
-
}
|
|
1140
|
-
,
|
|
1141
|
-
createETSUndefinedType(): ETSUndefinedType {
|
|
1142
|
-
return ETSUndefinedType.createETSUndefinedType()
|
|
1143
|
-
}
|
|
1144
|
-
,
|
|
1145
|
-
updateETSUndefinedType(original: ETSUndefinedType): ETSUndefinedType {
|
|
1146
|
-
return updateNodeByNode(ETSUndefinedType.createETSUndefinedType(), original)
|
|
1147
|
-
}
|
|
1148
|
-
,
|
|
1149
|
-
createTypeofExpression(argument?: Expression): TypeofExpression {
|
|
1150
|
-
return TypeofExpression.createTypeofExpression(argument)
|
|
1151
|
-
}
|
|
1152
|
-
,
|
|
1153
|
-
updateTypeofExpression(original: TypeofExpression, argument?: Expression): TypeofExpression {
|
|
1154
|
-
if (isSameNativeObject(argument, original.argument))
|
|
1155
|
-
return original
|
|
1156
|
-
return updateNodeByNode(TypeofExpression.createTypeofExpression(argument), original)
|
|
1157
|
-
}
|
|
1158
|
-
,
|
|
1159
|
-
createTSEnumMember(key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember {
|
|
1160
|
-
return TSEnumMember.create1TSEnumMember(key, init, isGenerated)
|
|
1161
|
-
}
|
|
1162
|
-
,
|
|
1163
|
-
updateTSEnumMember(original: TSEnumMember, key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember {
|
|
1164
|
-
if (isSameNativeObject(key, original.key) && isSameNativeObject(init, original.init) && isSameNativeObject(isGenerated, original.isGenerated))
|
|
1165
|
-
return original
|
|
1166
|
-
return updateNodeByNode(TSEnumMember.create1TSEnumMember(key, init, isGenerated), original)
|
|
1167
|
-
}
|
|
1168
|
-
,
|
|
1169
|
-
createSwitchStatement(discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[]): SwitchStatement {
|
|
1170
|
-
return SwitchStatement.createSwitchStatement(discriminant, cases)
|
|
1171
|
-
}
|
|
1172
|
-
,
|
|
1173
|
-
updateSwitchStatement(original: SwitchStatement, discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[]): SwitchStatement {
|
|
1174
|
-
if (isSameNativeObject(discriminant, original.discriminant) && isSameNativeObject(cases, original.cases))
|
|
1175
|
-
return original
|
|
1176
|
-
return updateNodeByNode(SwitchStatement.createSwitchStatement(discriminant, cases), original)
|
|
1177
|
-
}
|
|
1178
|
-
,
|
|
1179
|
-
createDoWhileStatement(body?: Statement, test?: Expression): DoWhileStatement {
|
|
1180
|
-
return DoWhileStatement.createDoWhileStatement(body, test)
|
|
1181
|
-
}
|
|
1182
|
-
,
|
|
1183
|
-
updateDoWhileStatement(original: DoWhileStatement, body?: Statement, test?: Expression): DoWhileStatement {
|
|
1184
|
-
if (isSameNativeObject(body, original.body) && isSameNativeObject(test, original.test))
|
|
1185
|
-
return original
|
|
1186
|
-
return updateNodeByNode(DoWhileStatement.createDoWhileStatement(body, test), original)
|
|
1187
|
-
}
|
|
1188
|
-
,
|
|
1189
|
-
createCatchClause(param?: Expression, body?: BlockStatement): CatchClause {
|
|
1190
|
-
return CatchClause.createCatchClause(param, body)
|
|
1191
|
-
}
|
|
1192
|
-
,
|
|
1193
|
-
updateCatchClause(original: CatchClause, param?: Expression, body?: BlockStatement): CatchClause {
|
|
1194
|
-
if (isSameNativeObject(param, original.param) && isSameNativeObject(body, original.body))
|
|
1195
|
-
return original
|
|
1196
|
-
return updateNodeByNode(CatchClause.createCatchClause(param, body), original)
|
|
1197
|
-
}
|
|
1198
|
-
,
|
|
1199
|
-
createSequenceExpression(sequence: readonly Expression[]): SequenceExpression {
|
|
1200
|
-
return SequenceExpression.createSequenceExpression(sequence)
|
|
1201
|
-
}
|
|
1202
|
-
,
|
|
1203
|
-
updateSequenceExpression(original: SequenceExpression, sequence: readonly Expression[]): SequenceExpression {
|
|
1204
|
-
if (isSameNativeObject(sequence, original.sequence))
|
|
1205
|
-
return original
|
|
1206
|
-
return updateNodeByNode(SequenceExpression.createSequenceExpression(sequence), original)
|
|
1207
|
-
}
|
|
1208
|
-
,
|
|
1209
|
-
createArrowFunctionExpression(_function: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
1210
|
-
return ArrowFunctionExpression.createArrowFunctionExpression(_function, annotations)
|
|
1211
|
-
}
|
|
1212
|
-
,
|
|
1213
|
-
updateArrowFunctionExpression(original: ArrowFunctionExpression, _function: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
1214
|
-
if (isSameNativeObject(_function, original.function) && isSameNativeObject(annotations, original.annotations))
|
|
1215
|
-
return original
|
|
1216
|
-
return updateNodeByNode(ArrowFunctionExpression.createArrowFunctionExpression(_function, annotations), original)
|
|
1217
|
-
}
|
|
1218
|
-
,
|
|
1219
|
-
createOmittedExpression(): OmittedExpression {
|
|
1220
|
-
return OmittedExpression.createOmittedExpression()
|
|
1221
|
-
}
|
|
1222
|
-
,
|
|
1223
|
-
updateOmittedExpression(original: OmittedExpression): OmittedExpression {
|
|
1224
|
-
return updateNodeByNode(OmittedExpression.createOmittedExpression(), original)
|
|
1225
|
-
}
|
|
1226
|
-
,
|
|
1227
|
-
createETSNewClassInstanceExpression(typeRef: Expression | undefined, _arguments: readonly Expression[]): ETSNewClassInstanceExpression {
|
|
1228
|
-
return ETSNewClassInstanceExpression.createETSNewClassInstanceExpression(typeRef, _arguments)
|
|
1229
|
-
}
|
|
1230
|
-
,
|
|
1231
|
-
updateETSNewClassInstanceExpression(original: ETSNewClassInstanceExpression, typeRef: Expression | undefined, _arguments: readonly Expression[]): ETSNewClassInstanceExpression {
|
|
1232
|
-
if (isSameNativeObject(typeRef, original.typeRef) && isSameNativeObject(_arguments, original.arguments))
|
|
1233
|
-
return original
|
|
1234
|
-
return updateNodeByNode(ETSNewClassInstanceExpression.createETSNewClassInstanceExpression(typeRef, _arguments), original)
|
|
1235
|
-
}
|
|
1236
|
-
,
|
|
1237
|
-
createTSAsExpression(expr: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression {
|
|
1238
|
-
return TSAsExpression.createTSAsExpression(expr, typeAnnotation, isConst)
|
|
1239
|
-
}
|
|
1240
|
-
,
|
|
1241
|
-
updateTSAsExpression(original: TSAsExpression, expr: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression {
|
|
1242
|
-
if (isSameNativeObject(expr, original.expr) && isSameNativeObject(typeAnnotation, original.typeAnnotation) && isSameNativeObject(isConst, original.isConst))
|
|
1243
|
-
return original
|
|
1244
|
-
return updateNodeByNode(TSAsExpression.createTSAsExpression(expr, typeAnnotation, isConst), original)
|
|
1245
|
-
}
|
|
1246
|
-
,
|
|
1247
|
-
createForUpdateStatement(init?: AstNode, test?: Expression, update?: Expression, body?: Statement): ForUpdateStatement {
|
|
1248
|
-
return ForUpdateStatement.createForUpdateStatement(init, test, update, body)
|
|
1249
|
-
}
|
|
1250
|
-
,
|
|
1251
|
-
updateForUpdateStatement(original: ForUpdateStatement, init?: AstNode, test?: Expression, update?: Expression, body?: Statement): ForUpdateStatement {
|
|
1252
|
-
if (isSameNativeObject(init, original.init) && isSameNativeObject(test, original.test) && isSameNativeObject(update, original.update) && isSameNativeObject(body, original.body))
|
|
1253
|
-
return original
|
|
1254
|
-
return updateNodeByNode(ForUpdateStatement.createForUpdateStatement(init, test, update, body), original)
|
|
1255
|
-
}
|
|
1256
|
-
,
|
|
1257
|
-
createETSPrimitiveType(primitiveType: Es2pandaPrimitiveType): ETSPrimitiveType {
|
|
1258
|
-
return ETSPrimitiveType.createETSPrimitiveType(primitiveType)
|
|
1259
|
-
}
|
|
1260
|
-
,
|
|
1261
|
-
updateETSPrimitiveType(original: ETSPrimitiveType, primitiveType: Es2pandaPrimitiveType): ETSPrimitiveType {
|
|
1262
|
-
if (isSameNativeObject(primitiveType, original.primitiveType))
|
|
1263
|
-
return original
|
|
1264
|
-
return updateNodeByNode(ETSPrimitiveType.createETSPrimitiveType(primitiveType), original)
|
|
1265
|
-
}
|
|
1266
|
-
,
|
|
1267
|
-
createNewExpression(callee: Expression | undefined, _arguments: readonly Expression[]): NewExpression {
|
|
1268
|
-
return NewExpression.createNewExpression(callee, _arguments)
|
|
1269
|
-
}
|
|
1270
|
-
,
|
|
1271
|
-
updateNewExpression(original: NewExpression, callee: Expression | undefined, _arguments: readonly Expression[]): NewExpression {
|
|
1272
|
-
if (isSameNativeObject(callee, original.callee) && isSameNativeObject(_arguments, original.arguments))
|
|
1273
|
-
return original
|
|
1274
|
-
return updateNodeByNode(NewExpression.createNewExpression(callee, _arguments), original)
|
|
1275
|
-
}
|
|
1276
|
-
,
|
|
1277
|
-
createTSThisType(): TSThisType {
|
|
1278
|
-
return TSThisType.createTSThisType()
|
|
1279
|
-
}
|
|
1280
|
-
,
|
|
1281
|
-
updateTSThisType(original: TSThisType): TSThisType {
|
|
1282
|
-
return updateNodeByNode(TSThisType.createTSThisType(), original)
|
|
1283
|
-
}
|
|
1284
|
-
,
|
|
1285
|
-
}
|