@idlizer/arktscgen 2.1.10-arktscgen-3a → 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 +23 -19
- 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 +44 -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 +47 -13
- 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 +80 -35
- 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 +428 -159
- package/package.json +51 -53
- package/templates/Es2pandaNativeModule.ts +1 -0
- package/templates/factory.ts +1 -1
- package/templates/peer.ts +2 -1
- package/build/libarkts-copy/native/src/generated/bridges.cc +0 -16382
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +0 -1350
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +0 -5195
- package/build/libarkts-copy/src/generated/factory.ts +0 -1286
- 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 -75
- 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,72 +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
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
|
-
import { Expression } from "./Expression"
|
|
36
|
-
import { LoopStatement } from "./LoopStatement"
|
|
37
|
-
import { Statement } from "./Statement"
|
|
38
|
-
|
|
39
|
-
export class ForOfStatement extends LoopStatement {
|
|
40
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
-
super(pointer, astNodeType)
|
|
42
|
-
}
|
|
43
|
-
static createForOfStatement(left: AstNode | undefined, right: Expression | undefined, body: Statement | undefined, isAwait: boolean): ForOfStatement {
|
|
44
|
-
const result: ForOfStatement = new ForOfStatement(global.generatedEs2panda._CreateForOfStatement(global.context, passNode(left), passNode(right), passNode(body), isAwait), Es2pandaAstNodeType.AST_NODE_TYPE_FOR_OF_STATEMENT)
|
|
45
|
-
result.setChildrenParentPtr()
|
|
46
|
-
return result
|
|
47
|
-
}
|
|
48
|
-
static updateForOfStatement(original: ForOfStatement | undefined, left: AstNode | undefined, right: Expression | undefined, body: Statement | undefined, isAwait: boolean): ForOfStatement {
|
|
49
|
-
const result: ForOfStatement = new ForOfStatement(global.generatedEs2panda._UpdateForOfStatement(global.context, passNode(original), passNode(left), passNode(right), passNode(body), isAwait), Es2pandaAstNodeType.AST_NODE_TYPE_FOR_OF_STATEMENT)
|
|
50
|
-
result.setChildrenParentPtr()
|
|
51
|
-
return result
|
|
52
|
-
}
|
|
53
|
-
get left(): AstNode | undefined {
|
|
54
|
-
return unpackNode(global.generatedEs2panda._ForOfStatementLeft(global.context, this.peer))
|
|
55
|
-
}
|
|
56
|
-
get right(): Expression | undefined {
|
|
57
|
-
return unpackNode(global.generatedEs2panda._ForOfStatementRight(global.context, this.peer))
|
|
58
|
-
}
|
|
59
|
-
get body(): Statement | undefined {
|
|
60
|
-
return unpackNode(global.generatedEs2panda._ForOfStatementBody(global.context, this.peer))
|
|
61
|
-
}
|
|
62
|
-
get isAwait(): boolean {
|
|
63
|
-
return global.generatedEs2panda._ForOfStatementIsAwaitConst(global.context, this.peer)
|
|
64
|
-
}
|
|
65
|
-
protected readonly brandForOfStatement: undefined
|
|
66
|
-
}
|
|
67
|
-
export function isForOfStatement(node: object | undefined): node is ForOfStatement {
|
|
68
|
-
return node instanceof ForOfStatement
|
|
69
|
-
}
|
|
70
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_FOR_OF_STATEMENT)) {
|
|
71
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_FOR_OF_STATEMENT, (peer: KNativePointer) => new ForOfStatement(peer, Es2pandaAstNodeType.AST_NODE_TYPE_FOR_OF_STATEMENT))
|
|
72
|
-
}
|
|
@@ -1,67 +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
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
|
-
import { Expression } from "./Expression"
|
|
36
|
-
import { LoopStatement } from "./LoopStatement"
|
|
37
|
-
import { Statement } from "./Statement"
|
|
38
|
-
|
|
39
|
-
export class ForUpdateStatement extends LoopStatement {
|
|
40
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
-
super(pointer, astNodeType)
|
|
42
|
-
}
|
|
43
|
-
static createForUpdateStatement(init?: AstNode, test?: Expression, update?: Expression, body?: Statement): ForUpdateStatement {
|
|
44
|
-
const result: ForUpdateStatement = new ForUpdateStatement(global.generatedEs2panda._CreateForUpdateStatement(global.context, passNode(init), passNode(test), passNode(update), passNode(body)), Es2pandaAstNodeType.AST_NODE_TYPE_FOR_UPDATE_STATEMENT)
|
|
45
|
-
result.setChildrenParentPtr()
|
|
46
|
-
return result
|
|
47
|
-
}
|
|
48
|
-
get init(): AstNode | undefined {
|
|
49
|
-
return unpackNode(global.generatedEs2panda._ForUpdateStatementInit(global.context, this.peer))
|
|
50
|
-
}
|
|
51
|
-
get test(): Expression | undefined {
|
|
52
|
-
return unpackNode(global.generatedEs2panda._ForUpdateStatementTest(global.context, this.peer))
|
|
53
|
-
}
|
|
54
|
-
get update(): Expression | undefined {
|
|
55
|
-
return unpackNode(global.generatedEs2panda._ForUpdateStatementUpdateConst(global.context, this.peer))
|
|
56
|
-
}
|
|
57
|
-
get body(): Statement | undefined {
|
|
58
|
-
return unpackNode(global.generatedEs2panda._ForUpdateStatementBody(global.context, this.peer))
|
|
59
|
-
}
|
|
60
|
-
protected readonly brandForUpdateStatement: undefined
|
|
61
|
-
}
|
|
62
|
-
export function isForUpdateStatement(node: object | undefined): node is ForUpdateStatement {
|
|
63
|
-
return node instanceof ForUpdateStatement
|
|
64
|
-
}
|
|
65
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_FOR_UPDATE_STATEMENT)) {
|
|
66
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_FOR_UPDATE_STATEMENT, (peer: KNativePointer) => new ForUpdateStatement(peer, Es2pandaAstNodeType.AST_NODE_TYPE_FOR_UPDATE_STATEMENT))
|
|
67
|
-
}
|
|
@@ -1,106 +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
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { AnnotationUsage } from "./AnnotationUsage"
|
|
35
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
36
|
-
import { ScriptFunction } from "./ScriptFunction"
|
|
37
|
-
import { SrcDumper } from "./SrcDumper"
|
|
38
|
-
import { Statement } from "./Statement"
|
|
39
|
-
|
|
40
|
-
export class FunctionDeclaration extends Statement {
|
|
41
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
42
|
-
super(pointer, astNodeType)
|
|
43
|
-
}
|
|
44
|
-
static createFunctionDeclaration(func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], isAnonymous: boolean): FunctionDeclaration {
|
|
45
|
-
const result: FunctionDeclaration = new FunctionDeclaration(global.generatedEs2panda._CreateFunctionDeclaration(global.context, passNode(func), passNodeArray(annotations), annotations.length, isAnonymous), Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION)
|
|
46
|
-
result.setChildrenParentPtr()
|
|
47
|
-
return result
|
|
48
|
-
}
|
|
49
|
-
static updateFunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], isAnonymous: boolean): FunctionDeclaration {
|
|
50
|
-
const result: FunctionDeclaration = new FunctionDeclaration(global.generatedEs2panda._UpdateFunctionDeclaration(global.context, passNode(original), passNode(func), passNodeArray(annotations), annotations.length, isAnonymous), Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION)
|
|
51
|
-
result.setChildrenParentPtr()
|
|
52
|
-
return result
|
|
53
|
-
}
|
|
54
|
-
static update1FunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration {
|
|
55
|
-
const result: FunctionDeclaration = new FunctionDeclaration(global.generatedEs2panda._UpdateFunctionDeclaration1(global.context, passNode(original), passNode(func), isAnonymous), Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION)
|
|
56
|
-
result.setChildrenParentPtr()
|
|
57
|
-
return result
|
|
58
|
-
}
|
|
59
|
-
get function(): ScriptFunction | undefined {
|
|
60
|
-
return unpackNode(global.generatedEs2panda._FunctionDeclarationFunction(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION)
|
|
61
|
-
}
|
|
62
|
-
get isAnonymous(): boolean {
|
|
63
|
-
return global.generatedEs2panda._FunctionDeclarationIsAnonymousConst(global.context, this.peer)
|
|
64
|
-
}
|
|
65
|
-
get hasAnnotations(): boolean {
|
|
66
|
-
return global.generatedEs2panda._FunctionDeclarationHasAnnotationsConst(global.context, this.peer)
|
|
67
|
-
}
|
|
68
|
-
/** @deprecated */
|
|
69
|
-
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
70
|
-
global.generatedEs2panda._FunctionDeclarationEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
71
|
-
return this
|
|
72
|
-
}
|
|
73
|
-
/** @deprecated */
|
|
74
|
-
clearAnnotations(): this {
|
|
75
|
-
global.generatedEs2panda._FunctionDeclarationClearAnnotations(global.context, this.peer)
|
|
76
|
-
return this
|
|
77
|
-
}
|
|
78
|
-
/** @deprecated */
|
|
79
|
-
dumpAnnotations(dumper?: SrcDumper): this {
|
|
80
|
-
global.generatedEs2panda._FunctionDeclarationDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
81
|
-
return this
|
|
82
|
-
}
|
|
83
|
-
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
84
|
-
return unpackNodeArray(global.generatedEs2panda._FunctionDeclarationAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
85
|
-
}
|
|
86
|
-
get annotations(): readonly AnnotationUsage[] {
|
|
87
|
-
return unpackNodeArray(global.generatedEs2panda._FunctionDeclarationAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
88
|
-
}
|
|
89
|
-
/** @deprecated */
|
|
90
|
-
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
91
|
-
global.generatedEs2panda._FunctionDeclarationSetAnnotations(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
92
|
-
return this
|
|
93
|
-
}
|
|
94
|
-
/** @deprecated */
|
|
95
|
-
setAnnotations1(annotationList: readonly AnnotationUsage[]): this {
|
|
96
|
-
global.generatedEs2panda._FunctionDeclarationSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
97
|
-
return this
|
|
98
|
-
}
|
|
99
|
-
protected readonly brandFunctionDeclaration: undefined
|
|
100
|
-
}
|
|
101
|
-
export function isFunctionDeclaration(node: object | undefined): node is FunctionDeclaration {
|
|
102
|
-
return node instanceof FunctionDeclaration
|
|
103
|
-
}
|
|
104
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION)) {
|
|
105
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION, (peer: KNativePointer) => new FunctionDeclaration(peer, Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION))
|
|
106
|
-
}
|
|
@@ -1,74 +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
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
|
-
import { Expression } from "./Expression"
|
|
36
|
-
import { Identifier } from "./Identifier"
|
|
37
|
-
import { ScriptFunction } from "./ScriptFunction"
|
|
38
|
-
|
|
39
|
-
export class FunctionExpression extends Expression {
|
|
40
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
-
super(pointer, astNodeType)
|
|
42
|
-
}
|
|
43
|
-
static create1FunctionExpression(namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression {
|
|
44
|
-
const result: FunctionExpression = new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression1(global.context, passNode(namedExpr), passNode(func)), Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION)
|
|
45
|
-
result.setChildrenParentPtr()
|
|
46
|
-
return result
|
|
47
|
-
}
|
|
48
|
-
static updateFunctionExpression(original?: FunctionExpression, func?: ScriptFunction): FunctionExpression {
|
|
49
|
-
const result: FunctionExpression = new FunctionExpression(global.generatedEs2panda._UpdateFunctionExpression(global.context, passNode(original), passNode(func)), Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION)
|
|
50
|
-
result.setChildrenParentPtr()
|
|
51
|
-
return result
|
|
52
|
-
}
|
|
53
|
-
static update1FunctionExpression(original?: FunctionExpression, namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression {
|
|
54
|
-
const result: FunctionExpression = new FunctionExpression(global.generatedEs2panda._UpdateFunctionExpression1(global.context, passNode(original), passNode(namedExpr), passNode(func)), Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION)
|
|
55
|
-
result.setChildrenParentPtr()
|
|
56
|
-
return result
|
|
57
|
-
}
|
|
58
|
-
get function(): ScriptFunction | undefined {
|
|
59
|
-
return unpackNode(global.generatedEs2panda._FunctionExpressionFunction(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION)
|
|
60
|
-
}
|
|
61
|
-
get isAnonymous(): boolean {
|
|
62
|
-
return global.generatedEs2panda._FunctionExpressionIsAnonymousConst(global.context, this.peer)
|
|
63
|
-
}
|
|
64
|
-
get id(): Identifier | undefined {
|
|
65
|
-
return unpackNode(global.generatedEs2panda._FunctionExpressionId(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
66
|
-
}
|
|
67
|
-
protected readonly brandFunctionExpression: undefined
|
|
68
|
-
}
|
|
69
|
-
export function isFunctionExpression(node: object | undefined): node is FunctionExpression {
|
|
70
|
-
return node instanceof FunctionExpression
|
|
71
|
-
}
|
|
72
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION)) {
|
|
73
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION, (peer: KNativePointer) => new FunctionExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION))
|
|
74
|
-
}
|
|
@@ -1,70 +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
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
|
-
import { Expression } from "./Expression"
|
|
36
|
-
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
37
|
-
import { TypeNode } from "./TypeNode"
|
|
38
|
-
|
|
39
|
-
export class FunctionSignature extends ArktsObject {
|
|
40
|
-
constructor(pointer: KNativePointer) {
|
|
41
|
-
super(pointer)
|
|
42
|
-
}
|
|
43
|
-
static createFunctionSignature(typeParams: TSTypeParameterDeclaration | undefined, params: readonly Expression[], returnTypeAnnotation: TypeNode | undefined, hasReceiver: boolean): FunctionSignature {
|
|
44
|
-
return new FunctionSignature(global.generatedEs2panda._CreateFunctionSignature(global.context, passNode(typeParams), passNodeArray(params), params.length, passNode(returnTypeAnnotation), hasReceiver))
|
|
45
|
-
}
|
|
46
|
-
get params(): readonly Expression[] {
|
|
47
|
-
return unpackNodeArray(global.generatedEs2panda._FunctionSignatureParams(global.context, this.peer))
|
|
48
|
-
}
|
|
49
|
-
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
50
|
-
return unpackNode(global.generatedEs2panda._FunctionSignatureTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
|
|
51
|
-
}
|
|
52
|
-
get returnType(): TypeNode | undefined {
|
|
53
|
-
return unpackNode(global.generatedEs2panda._FunctionSignatureReturnType(global.context, this.peer))
|
|
54
|
-
}
|
|
55
|
-
/** @deprecated */
|
|
56
|
-
setReturnType(type?: TypeNode): this {
|
|
57
|
-
global.generatedEs2panda._FunctionSignatureSetReturnType(global.context, this.peer, passNode(type))
|
|
58
|
-
return this
|
|
59
|
-
}
|
|
60
|
-
get clone(): FunctionSignature | undefined {
|
|
61
|
-
return new FunctionSignature(global.generatedEs2panda._FunctionSignatureClone(global.context, this.peer))
|
|
62
|
-
}
|
|
63
|
-
get hasReceiver(): boolean {
|
|
64
|
-
return global.generatedEs2panda._FunctionSignatureHasReceiverConst(global.context, this.peer)
|
|
65
|
-
}
|
|
66
|
-
protected readonly brandFunctionSignature: undefined
|
|
67
|
-
}
|
|
68
|
-
export function isFunctionSignature(node: object | undefined): node is FunctionSignature {
|
|
69
|
-
return node instanceof FunctionSignature
|
|
70
|
-
}
|
|
@@ -1,40 +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
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export class IRNode extends ArktsObject {
|
|
36
|
-
constructor(pointer: KNativePointer) {
|
|
37
|
-
super(pointer)
|
|
38
|
-
}
|
|
39
|
-
protected readonly brandIRNode: undefined
|
|
40
|
-
}
|
|
@@ -1,162 +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
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { AnnotatedExpression } from "./AnnotatedExpression"
|
|
35
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
36
|
-
import { TypeNode } from "./TypeNode"
|
|
37
|
-
import { ValidationInfo } from "./ValidationInfo"
|
|
38
|
-
|
|
39
|
-
export class Identifier extends AnnotatedExpression {
|
|
40
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
-
super(pointer, astNodeType)
|
|
42
|
-
}
|
|
43
|
-
static create2Identifier(name: string, typeAnnotation?: TypeNode): Identifier {
|
|
44
|
-
const result: Identifier = new Identifier(global.generatedEs2panda._CreateIdentifier2(global.context, name, passNode(typeAnnotation)), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
45
|
-
result.setChildrenParentPtr()
|
|
46
|
-
return result
|
|
47
|
-
}
|
|
48
|
-
static updateIdentifier(original?: Identifier): Identifier {
|
|
49
|
-
const result: Identifier = new Identifier(global.generatedEs2panda._UpdateIdentifier(global.context, passNode(original)), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
50
|
-
result.setChildrenParentPtr()
|
|
51
|
-
return result
|
|
52
|
-
}
|
|
53
|
-
static update1Identifier(original: Identifier | undefined, name: string): Identifier {
|
|
54
|
-
const result: Identifier = new Identifier(global.generatedEs2panda._UpdateIdentifier1(global.context, passNode(original), name), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
55
|
-
result.setChildrenParentPtr()
|
|
56
|
-
return result
|
|
57
|
-
}
|
|
58
|
-
static update2Identifier(original: Identifier | undefined, name: string, typeAnnotation?: TypeNode): Identifier {
|
|
59
|
-
const result: Identifier = new Identifier(global.generatedEs2panda._UpdateIdentifier2(global.context, passNode(original), name, passNode(typeAnnotation)), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
60
|
-
result.setChildrenParentPtr()
|
|
61
|
-
return result
|
|
62
|
-
}
|
|
63
|
-
get name(): string {
|
|
64
|
-
return unpackString(global.generatedEs2panda._IdentifierName(global.context, this.peer))
|
|
65
|
-
}
|
|
66
|
-
/** @deprecated */
|
|
67
|
-
setName(newName: string): this {
|
|
68
|
-
global.generatedEs2panda._IdentifierSetName(global.context, this.peer, newName)
|
|
69
|
-
return this
|
|
70
|
-
}
|
|
71
|
-
get isErrorPlaceHolder(): boolean {
|
|
72
|
-
return global.generatedEs2panda._IdentifierIsErrorPlaceHolderConst(global.context, this.peer)
|
|
73
|
-
}
|
|
74
|
-
get isOptional(): boolean {
|
|
75
|
-
return global.generatedEs2panda._IdentifierIsOptionalConst(global.context, this.peer)
|
|
76
|
-
}
|
|
77
|
-
/** @deprecated */
|
|
78
|
-
setOptional(optional_arg: boolean): this {
|
|
79
|
-
global.generatedEs2panda._IdentifierSetOptional(global.context, this.peer, optional_arg)
|
|
80
|
-
return this
|
|
81
|
-
}
|
|
82
|
-
get isReference(): boolean {
|
|
83
|
-
return global.generatedEs2panda._IdentifierIsReferenceConst(global.context, this.peer)
|
|
84
|
-
}
|
|
85
|
-
get isTdz(): boolean {
|
|
86
|
-
return global.generatedEs2panda._IdentifierIsTdzConst(global.context, this.peer)
|
|
87
|
-
}
|
|
88
|
-
/** @deprecated */
|
|
89
|
-
setTdz(): this {
|
|
90
|
-
global.generatedEs2panda._IdentifierSetTdz(global.context, this.peer)
|
|
91
|
-
return this
|
|
92
|
-
}
|
|
93
|
-
/** @deprecated */
|
|
94
|
-
setAccessor(): this {
|
|
95
|
-
global.generatedEs2panda._IdentifierSetAccessor(global.context, this.peer)
|
|
96
|
-
return this
|
|
97
|
-
}
|
|
98
|
-
get isAccessor(): boolean {
|
|
99
|
-
return global.generatedEs2panda._IdentifierIsAccessorConst(global.context, this.peer)
|
|
100
|
-
}
|
|
101
|
-
/** @deprecated */
|
|
102
|
-
setMutator(): this {
|
|
103
|
-
global.generatedEs2panda._IdentifierSetMutator(global.context, this.peer)
|
|
104
|
-
return this
|
|
105
|
-
}
|
|
106
|
-
get isMutator(): boolean {
|
|
107
|
-
return global.generatedEs2panda._IdentifierIsMutatorConst(global.context, this.peer)
|
|
108
|
-
}
|
|
109
|
-
get isReceiver(): boolean {
|
|
110
|
-
return global.generatedEs2panda._IdentifierIsReceiverConst(global.context, this.peer)
|
|
111
|
-
}
|
|
112
|
-
get isPrivateIdent(): boolean {
|
|
113
|
-
return global.generatedEs2panda._IdentifierIsPrivateIdentConst(global.context, this.peer)
|
|
114
|
-
}
|
|
115
|
-
/** @deprecated */
|
|
116
|
-
setPrivate(isPrivate: boolean): this {
|
|
117
|
-
global.generatedEs2panda._IdentifierSetPrivate(global.context, this.peer, isPrivate)
|
|
118
|
-
return this
|
|
119
|
-
}
|
|
120
|
-
get isIgnoreBox(): boolean {
|
|
121
|
-
return global.generatedEs2panda._IdentifierIsIgnoreBoxConst(global.context, this.peer)
|
|
122
|
-
}
|
|
123
|
-
/** @deprecated */
|
|
124
|
-
setIgnoreBox(): this {
|
|
125
|
-
global.generatedEs2panda._IdentifierSetIgnoreBox(global.context, this.peer)
|
|
126
|
-
return this
|
|
127
|
-
}
|
|
128
|
-
get isAnnotationDecl(): boolean {
|
|
129
|
-
return global.generatedEs2panda._IdentifierIsAnnotationDeclConst(global.context, this.peer)
|
|
130
|
-
}
|
|
131
|
-
/** @deprecated */
|
|
132
|
-
setAnnotationDecl(): this {
|
|
133
|
-
global.generatedEs2panda._IdentifierSetAnnotationDecl(global.context, this.peer)
|
|
134
|
-
return this
|
|
135
|
-
}
|
|
136
|
-
get isAnnotationUsage(): boolean {
|
|
137
|
-
return global.generatedEs2panda._IdentifierIsAnnotationUsageConst(global.context, this.peer)
|
|
138
|
-
}
|
|
139
|
-
/** @deprecated */
|
|
140
|
-
setAnnotationUsage(): this {
|
|
141
|
-
global.generatedEs2panda._IdentifierSetAnnotationUsage(global.context, this.peer)
|
|
142
|
-
return this
|
|
143
|
-
}
|
|
144
|
-
get validateExpression(): ValidationInfo | undefined {
|
|
145
|
-
return new ValidationInfo(global.generatedEs2panda._IdentifierValidateExpression(global.context, this.peer))
|
|
146
|
-
}
|
|
147
|
-
get typeAnnotation(): TypeNode | undefined {
|
|
148
|
-
return unpackNode(global.generatedEs2panda._IdentifierTypeAnnotationConst(global.context, this.peer))
|
|
149
|
-
}
|
|
150
|
-
/** @deprecated */
|
|
151
|
-
setTsTypeAnnotation(typeAnnotation?: TypeNode): this {
|
|
152
|
-
global.generatedEs2panda._IdentifierSetTsTypeAnnotation(global.context, this.peer, passNode(typeAnnotation))
|
|
153
|
-
return this
|
|
154
|
-
}
|
|
155
|
-
protected readonly brandIdentifier: undefined
|
|
156
|
-
}
|
|
157
|
-
export function isIdentifier(node: object | undefined): node is Identifier {
|
|
158
|
-
return node instanceof Identifier
|
|
159
|
-
}
|
|
160
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)) {
|
|
161
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER, (peer: KNativePointer) => new Identifier(peer, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER))
|
|
162
|
-
}
|
|
@@ -1,78 +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
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
|
-
import { Expression } from "./Expression"
|
|
36
|
-
import { Statement } from "./Statement"
|
|
37
|
-
|
|
38
|
-
export class IfStatement extends Statement {
|
|
39
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
-
super(pointer, astNodeType)
|
|
41
|
-
}
|
|
42
|
-
static createIfStatement(test?: Expression, consequent?: Statement, alternate?: Statement): IfStatement {
|
|
43
|
-
const result: IfStatement = new IfStatement(global.generatedEs2panda._CreateIfStatement(global.context, passNode(test), passNode(consequent), passNode(alternate)), Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT)
|
|
44
|
-
result.setChildrenParentPtr()
|
|
45
|
-
return result
|
|
46
|
-
}
|
|
47
|
-
static updateIfStatement(original?: IfStatement, test?: Expression, consequent?: Statement, alternate?: Statement): IfStatement {
|
|
48
|
-
const result: IfStatement = new IfStatement(global.generatedEs2panda._UpdateIfStatement(global.context, passNode(original), passNode(test), passNode(consequent), passNode(alternate)), Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT)
|
|
49
|
-
result.setChildrenParentPtr()
|
|
50
|
-
return result
|
|
51
|
-
}
|
|
52
|
-
get test(): Expression | undefined {
|
|
53
|
-
return unpackNode(global.generatedEs2panda._IfStatementTest(global.context, this.peer))
|
|
54
|
-
}
|
|
55
|
-
/** @deprecated */
|
|
56
|
-
setTest(test?: Expression): this {
|
|
57
|
-
global.generatedEs2panda._IfStatementSetTest(global.context, this.peer, passNode(test))
|
|
58
|
-
return this
|
|
59
|
-
}
|
|
60
|
-
get consequent(): Statement | undefined {
|
|
61
|
-
return unpackNode(global.generatedEs2panda._IfStatementConsequent(global.context, this.peer))
|
|
62
|
-
}
|
|
63
|
-
get alternate(): Statement | undefined {
|
|
64
|
-
return unpackNode(global.generatedEs2panda._IfStatementAlternate(global.context, this.peer))
|
|
65
|
-
}
|
|
66
|
-
/** @deprecated */
|
|
67
|
-
setAlternate(alternate?: Statement): this {
|
|
68
|
-
global.generatedEs2panda._IfStatementSetAlternate(global.context, this.peer, passNode(alternate))
|
|
69
|
-
return this
|
|
70
|
-
}
|
|
71
|
-
protected readonly brandIfStatement: undefined
|
|
72
|
-
}
|
|
73
|
-
export function isIfStatement(node: object | undefined): node is IfStatement {
|
|
74
|
-
return node instanceof IfStatement
|
|
75
|
-
}
|
|
76
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT)) {
|
|
77
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT, (peer: KNativePointer) => new IfStatement(peer, Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT))
|
|
78
|
-
}
|