@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,53 +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
|
-
|
|
37
|
-
export class MaybeOptionalExpression extends Expression {
|
|
38
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
39
|
-
super(pointer, astNodeType)
|
|
40
|
-
}
|
|
41
|
-
get isOptional(): boolean {
|
|
42
|
-
return global.generatedEs2panda._MaybeOptionalExpressionIsOptionalConst(global.context, this.peer)
|
|
43
|
-
}
|
|
44
|
-
/** @deprecated */
|
|
45
|
-
clearOptional(): this {
|
|
46
|
-
global.generatedEs2panda._MaybeOptionalExpressionClearOptional(global.context, this.peer)
|
|
47
|
-
return this
|
|
48
|
-
}
|
|
49
|
-
protected readonly brandMaybeOptionalExpression: undefined
|
|
50
|
-
}
|
|
51
|
-
export function isMaybeOptionalExpression(node: object | undefined): node is MaybeOptionalExpression {
|
|
52
|
-
return node instanceof MaybeOptionalExpression
|
|
53
|
-
}
|
|
@@ -1,115 +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 { CodeGen } from "./CodeGen"
|
|
35
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
36
|
-
import { Es2pandaMemberExpressionKind } from "./../Es2pandaEnums"
|
|
37
|
-
import { Expression } from "./Expression"
|
|
38
|
-
import { MaybeOptionalExpression } from "./MaybeOptionalExpression"
|
|
39
|
-
import { VReg } from "./VReg"
|
|
40
|
-
|
|
41
|
-
export class MemberExpression extends MaybeOptionalExpression {
|
|
42
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
43
|
-
super(pointer, astNodeType)
|
|
44
|
-
}
|
|
45
|
-
static createMemberExpression(object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression {
|
|
46
|
-
const result: MemberExpression = new MemberExpression(global.generatedEs2panda._CreateMemberExpression(global.context, passNode(object_arg), passNode(property), kind, computed, optional_arg), Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION)
|
|
47
|
-
result.setChildrenParentPtr()
|
|
48
|
-
return result
|
|
49
|
-
}
|
|
50
|
-
static updateMemberExpression(original: MemberExpression | undefined, object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression {
|
|
51
|
-
const result: MemberExpression = new MemberExpression(global.generatedEs2panda._UpdateMemberExpression(global.context, passNode(original), passNode(object_arg), passNode(property), kind, computed, optional_arg), Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION)
|
|
52
|
-
result.setChildrenParentPtr()
|
|
53
|
-
return result
|
|
54
|
-
}
|
|
55
|
-
get object(): Expression | undefined {
|
|
56
|
-
return unpackNode(global.generatedEs2panda._MemberExpressionObject(global.context, this.peer))
|
|
57
|
-
}
|
|
58
|
-
/** @deprecated */
|
|
59
|
-
setObject(object_arg?: Expression): this {
|
|
60
|
-
global.generatedEs2panda._MemberExpressionSetObject(global.context, this.peer, passNode(object_arg))
|
|
61
|
-
return this
|
|
62
|
-
}
|
|
63
|
-
/** @deprecated */
|
|
64
|
-
setProperty(prop?: Expression): this {
|
|
65
|
-
global.generatedEs2panda._MemberExpressionSetProperty(global.context, this.peer, passNode(prop))
|
|
66
|
-
return this
|
|
67
|
-
}
|
|
68
|
-
get property(): Expression | undefined {
|
|
69
|
-
return unpackNode(global.generatedEs2panda._MemberExpressionProperty(global.context, this.peer))
|
|
70
|
-
}
|
|
71
|
-
get isComputed(): boolean {
|
|
72
|
-
return global.generatedEs2panda._MemberExpressionIsComputedConst(global.context, this.peer)
|
|
73
|
-
}
|
|
74
|
-
get kind(): Es2pandaMemberExpressionKind {
|
|
75
|
-
return global.generatedEs2panda._MemberExpressionKindConst(global.context, this.peer)
|
|
76
|
-
}
|
|
77
|
-
/** @deprecated */
|
|
78
|
-
addMemberKind(kind: Es2pandaMemberExpressionKind): this {
|
|
79
|
-
global.generatedEs2panda._MemberExpressionAddMemberKind(global.context, this.peer, kind)
|
|
80
|
-
return this
|
|
81
|
-
}
|
|
82
|
-
/** @deprecated */
|
|
83
|
-
removeMemberKind(kind: Es2pandaMemberExpressionKind): this {
|
|
84
|
-
global.generatedEs2panda._MemberExpressionRemoveMemberKind(global.context, this.peer, kind)
|
|
85
|
-
return this
|
|
86
|
-
}
|
|
87
|
-
get isIgnoreBox(): boolean {
|
|
88
|
-
return global.generatedEs2panda._MemberExpressionIsIgnoreBoxConst(global.context, this.peer)
|
|
89
|
-
}
|
|
90
|
-
/** @deprecated */
|
|
91
|
-
setIgnoreBox(): this {
|
|
92
|
-
global.generatedEs2panda._MemberExpressionSetIgnoreBox(global.context, this.peer)
|
|
93
|
-
return this
|
|
94
|
-
}
|
|
95
|
-
get isPrivateReference(): boolean {
|
|
96
|
-
return global.generatedEs2panda._MemberExpressionIsPrivateReferenceConst(global.context, this.peer)
|
|
97
|
-
}
|
|
98
|
-
/** @deprecated */
|
|
99
|
-
compileToReg(pg?: CodeGen, objReg?: VReg): this {
|
|
100
|
-
global.generatedEs2panda._MemberExpressionCompileToRegConst(global.context, this.peer, passNode(pg), passNode(objReg))
|
|
101
|
-
return this
|
|
102
|
-
}
|
|
103
|
-
/** @deprecated */
|
|
104
|
-
compileToRegs(pg?: CodeGen, object_arg?: VReg, property?: VReg): this {
|
|
105
|
-
global.generatedEs2panda._MemberExpressionCompileToRegsConst(global.context, this.peer, passNode(pg), passNode(object_arg), passNode(property))
|
|
106
|
-
return this
|
|
107
|
-
}
|
|
108
|
-
protected readonly brandMemberExpression: undefined
|
|
109
|
-
}
|
|
110
|
-
export function isMemberExpression(node: object | undefined): node is MemberExpression {
|
|
111
|
-
return node instanceof MemberExpression
|
|
112
|
-
}
|
|
113
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION)) {
|
|
114
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION, (peer: KNativePointer) => new MemberExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION))
|
|
115
|
-
}
|
|
@@ -1,62 +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 { Es2pandaMetaPropertyKind } from "./../Es2pandaEnums"
|
|
36
|
-
import { Expression } from "./Expression"
|
|
37
|
-
|
|
38
|
-
export class MetaProperty extends Expression {
|
|
39
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
-
super(pointer, astNodeType)
|
|
41
|
-
}
|
|
42
|
-
static createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty {
|
|
43
|
-
const result: MetaProperty = new MetaProperty(global.generatedEs2panda._CreateMetaProperty(global.context, kind), Es2pandaAstNodeType.AST_NODE_TYPE_META_PROPERTY_EXPRESSION)
|
|
44
|
-
result.setChildrenParentPtr()
|
|
45
|
-
return result
|
|
46
|
-
}
|
|
47
|
-
static updateMetaProperty(original: MetaProperty | undefined, kind: Es2pandaMetaPropertyKind): MetaProperty {
|
|
48
|
-
const result: MetaProperty = new MetaProperty(global.generatedEs2panda._UpdateMetaProperty(global.context, passNode(original), kind), Es2pandaAstNodeType.AST_NODE_TYPE_META_PROPERTY_EXPRESSION)
|
|
49
|
-
result.setChildrenParentPtr()
|
|
50
|
-
return result
|
|
51
|
-
}
|
|
52
|
-
get kind(): Es2pandaMetaPropertyKind {
|
|
53
|
-
return global.generatedEs2panda._MetaPropertyKindConst(global.context, this.peer)
|
|
54
|
-
}
|
|
55
|
-
protected readonly brandMetaProperty: undefined
|
|
56
|
-
}
|
|
57
|
-
export function isMetaProperty(node: object | undefined): node is MetaProperty {
|
|
58
|
-
return node instanceof MetaProperty
|
|
59
|
-
}
|
|
60
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_META_PROPERTY_EXPRESSION)) {
|
|
61
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_META_PROPERTY_EXPRESSION, (peer: KNativePointer) => new MetaProperty(peer, Es2pandaAstNodeType.AST_NODE_TYPE_META_PROPERTY_EXPRESSION))
|
|
62
|
-
}
|
|
@@ -1,152 +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 { ClassElement } from "./ClassElement"
|
|
35
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
36
|
-
import { Es2pandaMethodDefinitionKind } from "./../Es2pandaEnums"
|
|
37
|
-
import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
38
|
-
import { Expression } from "./Expression"
|
|
39
|
-
import { ScriptFunction } from "./ScriptFunction"
|
|
40
|
-
import { extension_MethodDefinitionOnUpdate } from "./../../reexport-for-generated"
|
|
41
|
-
import { extension_MethodDefinitionSetChildrenParentPtr } from "./../../reexport-for-generated"
|
|
42
|
-
|
|
43
|
-
export class MethodDefinition extends ClassElement {
|
|
44
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
45
|
-
super(pointer, astNodeType)
|
|
46
|
-
}
|
|
47
|
-
static createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean, overloads?: readonly MethodDefinition[]): MethodDefinition {
|
|
48
|
-
const result: MethodDefinition = new MethodDefinition(global.generatedEs2panda._CreateMethodDefinition(global.context, kind, passNode(key), passNode(value), modifiers, isComputed), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
|
|
49
|
-
if (overloads)
|
|
50
|
-
{
|
|
51
|
-
result.setOverloads(overloads)
|
|
52
|
-
}
|
|
53
|
-
result.setChildrenParentPtr()
|
|
54
|
-
return result
|
|
55
|
-
}
|
|
56
|
-
static updateMethodDefinition(original: MethodDefinition | undefined, kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean, overloads?: readonly MethodDefinition[]): MethodDefinition {
|
|
57
|
-
const result: MethodDefinition = new MethodDefinition(global.generatedEs2panda._UpdateMethodDefinition(global.context, passNode(original), kind, passNode(key), passNode(value), modifiers, isComputed), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
|
|
58
|
-
if (overloads)
|
|
59
|
-
{
|
|
60
|
-
result.setOverloads(overloads)
|
|
61
|
-
}
|
|
62
|
-
result.setChildrenParentPtr()
|
|
63
|
-
return result
|
|
64
|
-
}
|
|
65
|
-
get kind(): Es2pandaMethodDefinitionKind {
|
|
66
|
-
return global.generatedEs2panda._MethodDefinitionKindConst(global.context, this.peer)
|
|
67
|
-
}
|
|
68
|
-
get isConstructor(): boolean {
|
|
69
|
-
return global.generatedEs2panda._MethodDefinitionIsConstructorConst(global.context, this.peer)
|
|
70
|
-
}
|
|
71
|
-
get isMethod(): boolean {
|
|
72
|
-
return global.generatedEs2panda._MethodDefinitionIsMethodConst(global.context, this.peer)
|
|
73
|
-
}
|
|
74
|
-
get isExtensionMethod(): boolean {
|
|
75
|
-
return global.generatedEs2panda._MethodDefinitionIsExtensionMethodConst(global.context, this.peer)
|
|
76
|
-
}
|
|
77
|
-
get isGetter(): boolean {
|
|
78
|
-
return global.generatedEs2panda._MethodDefinitionIsGetterConst(global.context, this.peer)
|
|
79
|
-
}
|
|
80
|
-
get isSetter(): boolean {
|
|
81
|
-
return global.generatedEs2panda._MethodDefinitionIsSetterConst(global.context, this.peer)
|
|
82
|
-
}
|
|
83
|
-
get isDefaultAccessModifier(): boolean {
|
|
84
|
-
return global.generatedEs2panda._MethodDefinitionIsDefaultAccessModifierConst(global.context, this.peer)
|
|
85
|
-
}
|
|
86
|
-
/** @deprecated */
|
|
87
|
-
setDefaultAccessModifier(isDefault: boolean): this {
|
|
88
|
-
global.generatedEs2panda._MethodDefinitionSetDefaultAccessModifier(global.context, this.peer, isDefault)
|
|
89
|
-
return this
|
|
90
|
-
}
|
|
91
|
-
get overloads(): readonly MethodDefinition[] {
|
|
92
|
-
return unpackNodeArray(global.generatedEs2panda._MethodDefinitionOverloadsConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
|
|
93
|
-
}
|
|
94
|
-
get baseOverloadMethod(): MethodDefinition | undefined {
|
|
95
|
-
return unpackNode(global.generatedEs2panda._MethodDefinitionBaseOverloadMethod(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
|
|
96
|
-
}
|
|
97
|
-
get asyncPairMethod(): MethodDefinition | undefined {
|
|
98
|
-
return unpackNode(global.generatedEs2panda._MethodDefinitionAsyncPairMethod(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
|
|
99
|
-
}
|
|
100
|
-
/** @deprecated */
|
|
101
|
-
setOverloads(overloads: readonly MethodDefinition[]): this {
|
|
102
|
-
global.generatedEs2panda._MethodDefinitionSetOverloads(global.context, this.peer, passNodeArray(overloads), overloads.length)
|
|
103
|
-
return this
|
|
104
|
-
}
|
|
105
|
-
/** @deprecated */
|
|
106
|
-
addOverload(overload?: MethodDefinition): this {
|
|
107
|
-
global.generatedEs2panda._MethodDefinitionAddOverload(global.context, this.peer, passNode(overload))
|
|
108
|
-
return this
|
|
109
|
-
}
|
|
110
|
-
/** @deprecated */
|
|
111
|
-
setBaseOverloadMethod(baseOverloadMethod?: MethodDefinition): this {
|
|
112
|
-
global.generatedEs2panda._MethodDefinitionSetBaseOverloadMethod(global.context, this.peer, passNode(baseOverloadMethod))
|
|
113
|
-
return this
|
|
114
|
-
}
|
|
115
|
-
/** @deprecated */
|
|
116
|
-
setAsyncPairMethod(asyncPairMethod?: MethodDefinition): this {
|
|
117
|
-
global.generatedEs2panda._MethodDefinitionSetAsyncPairMethod(global.context, this.peer, passNode(asyncPairMethod))
|
|
118
|
-
return this
|
|
119
|
-
}
|
|
120
|
-
get function(): ScriptFunction {
|
|
121
|
-
return unpackNonNullableNode(global.generatedEs2panda._MethodDefinitionFunction(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION)
|
|
122
|
-
}
|
|
123
|
-
/** @deprecated */
|
|
124
|
-
initializeOverloadInfo(): this {
|
|
125
|
-
global.generatedEs2panda._MethodDefinitionInitializeOverloadInfo(global.context, this.peer)
|
|
126
|
-
return this
|
|
127
|
-
}
|
|
128
|
-
/** @deprecated */
|
|
129
|
-
emplaceOverloads(overloads?: MethodDefinition): this {
|
|
130
|
-
global.generatedEs2panda._MethodDefinitionEmplaceOverloads(global.context, this.peer, passNode(overloads))
|
|
131
|
-
return this
|
|
132
|
-
}
|
|
133
|
-
/** @deprecated */
|
|
134
|
-
clearOverloads(): this {
|
|
135
|
-
global.generatedEs2panda._MethodDefinitionClearOverloads(global.context, this.peer)
|
|
136
|
-
return this
|
|
137
|
-
}
|
|
138
|
-
/** @deprecated */
|
|
139
|
-
setValueOverloads(overloads: MethodDefinition | undefined, index: number): this {
|
|
140
|
-
global.generatedEs2panda._MethodDefinitionSetValueOverloads(global.context, this.peer, passNode(overloads), index)
|
|
141
|
-
return this
|
|
142
|
-
}
|
|
143
|
-
setChildrenParentPtr = extension_MethodDefinitionSetChildrenParentPtr
|
|
144
|
-
onUpdate = extension_MethodDefinitionOnUpdate
|
|
145
|
-
protected readonly brandMethodDefinition: undefined
|
|
146
|
-
}
|
|
147
|
-
export function isMethodDefinition(node: object | undefined): node is MethodDefinition {
|
|
148
|
-
return node instanceof MethodDefinition
|
|
149
|
-
}
|
|
150
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)) {
|
|
151
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION, (peer: KNativePointer) => new MethodDefinition(peer, Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION))
|
|
152
|
-
}
|
|
@@ -1,84 +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 { Identifier } from "./Identifier"
|
|
36
|
-
import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation"
|
|
37
|
-
import { TypeNode } from "./TypeNode"
|
|
38
|
-
|
|
39
|
-
export class NamedType extends TypeNode {
|
|
40
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
-
super(pointer, astNodeType)
|
|
42
|
-
}
|
|
43
|
-
static createNamedType(name?: Identifier): NamedType {
|
|
44
|
-
const result: NamedType = new NamedType(global.generatedEs2panda._CreateNamedType(global.context, passNode(name)), Es2pandaAstNodeType.AST_NODE_TYPE_NAMED_TYPE)
|
|
45
|
-
result.setChildrenParentPtr()
|
|
46
|
-
return result
|
|
47
|
-
}
|
|
48
|
-
static updateNamedType(original?: NamedType, name?: Identifier): NamedType {
|
|
49
|
-
const result: NamedType = new NamedType(global.generatedEs2panda._UpdateNamedType(global.context, passNode(original), passNode(name)), Es2pandaAstNodeType.AST_NODE_TYPE_NAMED_TYPE)
|
|
50
|
-
result.setChildrenParentPtr()
|
|
51
|
-
return result
|
|
52
|
-
}
|
|
53
|
-
get name(): Identifier | undefined {
|
|
54
|
-
return unpackNode(global.generatedEs2panda._NamedTypeNameConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
55
|
-
}
|
|
56
|
-
get typeParams(): TSTypeParameterInstantiation | undefined {
|
|
57
|
-
return unpackNode(global.generatedEs2panda._NamedTypeTypeParamsConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_INSTANTIATION)
|
|
58
|
-
}
|
|
59
|
-
get isNullable(): boolean {
|
|
60
|
-
return global.generatedEs2panda._NamedTypeIsNullableConst(global.context, this.peer)
|
|
61
|
-
}
|
|
62
|
-
/** @deprecated */
|
|
63
|
-
setNullable(nullable: boolean): this {
|
|
64
|
-
global.generatedEs2panda._NamedTypeSetNullable(global.context, this.peer, nullable)
|
|
65
|
-
return this
|
|
66
|
-
}
|
|
67
|
-
/** @deprecated */
|
|
68
|
-
setNext(next?: NamedType): this {
|
|
69
|
-
global.generatedEs2panda._NamedTypeSetNext(global.context, this.peer, passNode(next))
|
|
70
|
-
return this
|
|
71
|
-
}
|
|
72
|
-
/** @deprecated */
|
|
73
|
-
setTypeParams(typeParams?: TSTypeParameterInstantiation): this {
|
|
74
|
-
global.generatedEs2panda._NamedTypeSetTypeParams(global.context, this.peer, passNode(typeParams))
|
|
75
|
-
return this
|
|
76
|
-
}
|
|
77
|
-
protected readonly brandNamedType: undefined
|
|
78
|
-
}
|
|
79
|
-
export function isNamedType(node: object | undefined): node is NamedType {
|
|
80
|
-
return node instanceof NamedType
|
|
81
|
-
}
|
|
82
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_NAMED_TYPE)) {
|
|
83
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_NAMED_TYPE, (peer: KNativePointer) => new NamedType(peer, Es2pandaAstNodeType.AST_NODE_TYPE_NAMED_TYPE))
|
|
84
|
-
}
|
|
@@ -1,64 +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
|
-
|
|
37
|
-
export class NewExpression extends Expression {
|
|
38
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
39
|
-
super(pointer, astNodeType)
|
|
40
|
-
}
|
|
41
|
-
static createNewExpression(callee: Expression | undefined, _arguments: readonly Expression[]): NewExpression {
|
|
42
|
-
const result: NewExpression = new NewExpression(global.generatedEs2panda._CreateNewExpression(global.context, passNode(callee), passNodeArray(_arguments), _arguments.length), Es2pandaAstNodeType.AST_NODE_TYPE_NEW_EXPRESSION)
|
|
43
|
-
result.setChildrenParentPtr()
|
|
44
|
-
return result
|
|
45
|
-
}
|
|
46
|
-
static updateNewExpression(original: NewExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[]): NewExpression {
|
|
47
|
-
const result: NewExpression = new NewExpression(global.generatedEs2panda._UpdateNewExpression(global.context, passNode(original), passNode(callee), passNodeArray(_arguments), _arguments.length), Es2pandaAstNodeType.AST_NODE_TYPE_NEW_EXPRESSION)
|
|
48
|
-
result.setChildrenParentPtr()
|
|
49
|
-
return result
|
|
50
|
-
}
|
|
51
|
-
get callee(): Expression | undefined {
|
|
52
|
-
return unpackNode(global.generatedEs2panda._NewExpressionCalleeConst(global.context, this.peer))
|
|
53
|
-
}
|
|
54
|
-
get arguments(): readonly Expression[] {
|
|
55
|
-
return unpackNodeArray(global.generatedEs2panda._NewExpressionArgumentsConst(global.context, this.peer))
|
|
56
|
-
}
|
|
57
|
-
protected readonly brandNewExpression: undefined
|
|
58
|
-
}
|
|
59
|
-
export function isNewExpression(node: object | undefined): node is NewExpression {
|
|
60
|
-
return node instanceof NewExpression
|
|
61
|
-
}
|
|
62
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_NEW_EXPRESSION)) {
|
|
63
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_NEW_EXPRESSION, (peer: KNativePointer) => new NewExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_NEW_EXPRESSION))
|
|
64
|
-
}
|
|
@@ -1,58 +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 { Literal } from "./Literal"
|
|
36
|
-
|
|
37
|
-
export class NullLiteral extends Literal {
|
|
38
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
39
|
-
super(pointer, astNodeType)
|
|
40
|
-
}
|
|
41
|
-
static createNullLiteral(): NullLiteral {
|
|
42
|
-
const result: NullLiteral = new NullLiteral(global.generatedEs2panda._CreateNullLiteral(global.context), Es2pandaAstNodeType.AST_NODE_TYPE_NULL_LITERAL)
|
|
43
|
-
result.setChildrenParentPtr()
|
|
44
|
-
return result
|
|
45
|
-
}
|
|
46
|
-
static updateNullLiteral(original?: NullLiteral): NullLiteral {
|
|
47
|
-
const result: NullLiteral = new NullLiteral(global.generatedEs2panda._UpdateNullLiteral(global.context, passNode(original)), Es2pandaAstNodeType.AST_NODE_TYPE_NULL_LITERAL)
|
|
48
|
-
result.setChildrenParentPtr()
|
|
49
|
-
return result
|
|
50
|
-
}
|
|
51
|
-
protected readonly brandNullLiteral: undefined
|
|
52
|
-
}
|
|
53
|
-
export function isNullLiteral(node: object | undefined): node is NullLiteral {
|
|
54
|
-
return node instanceof NullLiteral
|
|
55
|
-
}
|
|
56
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_NULL_LITERAL)) {
|
|
57
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_NULL_LITERAL, (peer: KNativePointer) => new NullLiteral(peer, Es2pandaAstNodeType.AST_NODE_TYPE_NULL_LITERAL))
|
|
58
|
-
}
|
|
@@ -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 { Literal } from "./Literal"
|
|
36
|
-
import { extension_NumberLiteralValue } from "./../../reexport-for-generated"
|
|
37
|
-
|
|
38
|
-
export class NumberLiteral extends Literal {
|
|
39
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
-
super(pointer, astNodeType)
|
|
41
|
-
}
|
|
42
|
-
static createNumberLiteral(value: number): AstNode {
|
|
43
|
-
const result: NumberLiteral = new NumberLiteral(global.generatedEs2panda._CreateNumberLiteral(global.context, value), Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL)
|
|
44
|
-
result.setChildrenParentPtr()
|
|
45
|
-
return result
|
|
46
|
-
}
|
|
47
|
-
static updateNumberLiteral(original: AstNode | undefined, value: number): AstNode {
|
|
48
|
-
const result: NumberLiteral = new NumberLiteral(global.generatedEs2panda._UpdateNumberLiteral(global.context, passNode(original), value), Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL)
|
|
49
|
-
result.setChildrenParentPtr()
|
|
50
|
-
return result
|
|
51
|
-
}
|
|
52
|
-
static update1NumberLiteral(original: AstNode | undefined, value: number): AstNode {
|
|
53
|
-
const result: NumberLiteral = new NumberLiteral(global.generatedEs2panda._UpdateNumberLiteral1(global.context, passNode(original), value), Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL)
|
|
54
|
-
result.setChildrenParentPtr()
|
|
55
|
-
return result
|
|
56
|
-
}
|
|
57
|
-
static update2NumberLiteral(original: AstNode | undefined, value: number): AstNode {
|
|
58
|
-
const result: NumberLiteral = new NumberLiteral(global.generatedEs2panda._UpdateNumberLiteral2(global.context, passNode(original), value), Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL)
|
|
59
|
-
result.setChildrenParentPtr()
|
|
60
|
-
return result
|
|
61
|
-
}
|
|
62
|
-
static update3NumberLiteral(original: AstNode | undefined, value: number): AstNode {
|
|
63
|
-
const result: NumberLiteral = new NumberLiteral(global.generatedEs2panda._UpdateNumberLiteral3(global.context, passNode(original), value), Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL)
|
|
64
|
-
result.setChildrenParentPtr()
|
|
65
|
-
return result
|
|
66
|
-
}
|
|
67
|
-
get str(): string {
|
|
68
|
-
return unpackString(global.generatedEs2panda._NumberLiteralStrConst(global.context, this.peer))
|
|
69
|
-
}
|
|
70
|
-
value = extension_NumberLiteralValue
|
|
71
|
-
protected readonly brandNumberLiteral: undefined
|
|
72
|
-
}
|
|
73
|
-
export function isNumberLiteral(node: object | undefined): node is NumberLiteral {
|
|
74
|
-
return node instanceof NumberLiteral
|
|
75
|
-
}
|
|
76
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL)) {
|
|
77
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL, (peer: KNativePointer) => new NumberLiteral(peer, Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL))
|
|
78
|
-
}
|