@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,222 +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
|
-
|
|
21
|
-
export * from "./peers/SourcePosition"
|
|
22
|
-
export * from "./peers/SourceRange"
|
|
23
|
-
export * from "./peers/SrcDumper"
|
|
24
|
-
export * from "./peers/AstDumper"
|
|
25
|
-
export * from "./peers/LabelPair"
|
|
26
|
-
export * from "./peers/ScriptFunctionData"
|
|
27
|
-
export * from "./peers/ImportSource"
|
|
28
|
-
export * from "./peers/SignatureInfo"
|
|
29
|
-
export * from "./peers/ValidationInfo"
|
|
30
|
-
export * from "./peers/IndexInfo"
|
|
31
|
-
export * from "./peers/ObjectDescriptor"
|
|
32
|
-
export * from "./peers/ScopeFindResult"
|
|
33
|
-
export * from "./peers/BindingProps"
|
|
34
|
-
export * from "./peers/Declaration"
|
|
35
|
-
export * from "./peers/AstVisitor"
|
|
36
|
-
export * from "./peers/AstVerifier"
|
|
37
|
-
export * from "./peers/VerifierMessage"
|
|
38
|
-
export * from "./peers/CodeGen"
|
|
39
|
-
export * from "./peers/VReg"
|
|
40
|
-
export * from "./peers/IRNode"
|
|
41
|
-
export * from "./peers/ErrorLogger"
|
|
42
|
-
export * from "./peers/VerificationContext"
|
|
43
|
-
export * from "./peers/DynamicImportData"
|
|
44
|
-
export * from "./peers/SuggestionInfo"
|
|
45
|
-
export * from "./peers/DiagnosticInfo"
|
|
46
|
-
export * from "./peers/NumberLiteral"
|
|
47
|
-
export * from "./peers/TypedAstNode"
|
|
48
|
-
export * from "./peers/AnnotatedAstNode"
|
|
49
|
-
export * from "./peers/TypedStatement"
|
|
50
|
-
export * from "./peers/AnnotatedStatement"
|
|
51
|
-
export * from "./peers/LabelledStatement"
|
|
52
|
-
export * from "./peers/ThrowStatement"
|
|
53
|
-
export * from "./peers/ClassProperty"
|
|
54
|
-
export * from "./peers/TSVoidKeyword"
|
|
55
|
-
export * from "./peers/ETSFunctionType"
|
|
56
|
-
export * from "./peers/TSTypeOperator"
|
|
57
|
-
export * from "./peers/IfStatement"
|
|
58
|
-
export * from "./peers/TSConstructorType"
|
|
59
|
-
export * from "./peers/Decorator"
|
|
60
|
-
export * from "./peers/TSEnumDeclaration"
|
|
61
|
-
export * from "./peers/TSNeverKeyword"
|
|
62
|
-
export * from "./peers/ImportDefaultSpecifier"
|
|
63
|
-
export * from "./peers/ObjectExpression"
|
|
64
|
-
export * from "./peers/ImportSpecifier"
|
|
65
|
-
export * from "./peers/ConditionalExpression"
|
|
66
|
-
export * from "./peers/CallExpression"
|
|
67
|
-
export * from "./peers/BigIntLiteral"
|
|
68
|
-
export * from "./peers/ClassElement"
|
|
69
|
-
export * from "./peers/TSImportType"
|
|
70
|
-
export * from "./peers/TaggedTemplateExpression"
|
|
71
|
-
export * from "./peers/FunctionDeclaration"
|
|
72
|
-
export * from "./peers/ETSTypeReference"
|
|
73
|
-
export * from "./peers/TSTypeReference"
|
|
74
|
-
export * from "./peers/NamedType"
|
|
75
|
-
export * from "./peers/TSFunctionType"
|
|
76
|
-
export * from "./peers/TemplateElement"
|
|
77
|
-
export * from "./peers/TSInterfaceDeclaration"
|
|
78
|
-
export * from "./peers/VariableDeclaration"
|
|
79
|
-
export * from "./peers/UndefinedLiteral"
|
|
80
|
-
export * from "./peers/MemberExpression"
|
|
81
|
-
export * from "./peers/TSClassImplements"
|
|
82
|
-
export * from "./peers/TSObjectKeyword"
|
|
83
|
-
export * from "./peers/ETSUnionType"
|
|
84
|
-
export * from "./peers/ETSKeyofType"
|
|
85
|
-
export * from "./peers/TSPropertySignature"
|
|
86
|
-
export * from "./peers/TSConditionalType"
|
|
87
|
-
export * from "./peers/TSLiteralType"
|
|
88
|
-
export * from "./peers/TSTypeAliasDeclaration"
|
|
89
|
-
export * from "./peers/DebuggerStatement"
|
|
90
|
-
export * from "./peers/ReturnStatement"
|
|
91
|
-
export * from "./peers/ExportDefaultDeclaration"
|
|
92
|
-
export * from "./peers/ScriptFunction"
|
|
93
|
-
export * from "./peers/ClassDefinition"
|
|
94
|
-
export * from "./peers/ArrayExpression"
|
|
95
|
-
export * from "./peers/TSInterfaceBody"
|
|
96
|
-
export * from "./peers/TSTypeQuery"
|
|
97
|
-
export * from "./peers/TSBigintKeyword"
|
|
98
|
-
export * from "./peers/Property"
|
|
99
|
-
export * from "./peers/VariableDeclarator"
|
|
100
|
-
export * from "./peers/StringLiteral"
|
|
101
|
-
export * from "./peers/TSTypeAssertion"
|
|
102
|
-
export * from "./peers/TSExternalModuleReference"
|
|
103
|
-
export * from "./peers/TSUndefinedKeyword"
|
|
104
|
-
export * from "./peers/ETSTuple"
|
|
105
|
-
export * from "./peers/ETSStringLiteralType"
|
|
106
|
-
export * from "./peers/TryStatement"
|
|
107
|
-
export * from "./peers/UnaryExpression"
|
|
108
|
-
export * from "./peers/ForInStatement"
|
|
109
|
-
export * from "./peers/ThisExpression"
|
|
110
|
-
export * from "./peers/TSMethodSignature"
|
|
111
|
-
export * from "./peers/BinaryExpression"
|
|
112
|
-
export * from "./peers/SuperExpression"
|
|
113
|
-
export * from "./peers/AssertStatement"
|
|
114
|
-
export * from "./peers/TSStringKeyword"
|
|
115
|
-
export * from "./peers/AssignmentExpression"
|
|
116
|
-
export * from "./peers/ExpressionStatement"
|
|
117
|
-
export * from "./peers/ETSModule"
|
|
118
|
-
export * from "./peers/MetaProperty"
|
|
119
|
-
export * from "./peers/TSArrayType"
|
|
120
|
-
export * from "./peers/TSSignatureDeclaration"
|
|
121
|
-
export * from "./peers/ExportAllDeclaration"
|
|
122
|
-
export * from "./peers/ExportSpecifier"
|
|
123
|
-
export * from "./peers/TSTupleType"
|
|
124
|
-
export * from "./peers/FunctionExpression"
|
|
125
|
-
export * from "./peers/TSIndexSignature"
|
|
126
|
-
export * from "./peers/TSModuleDeclaration"
|
|
127
|
-
export * from "./peers/ImportDeclaration"
|
|
128
|
-
export * from "./peers/TSParenthesizedType"
|
|
129
|
-
export * from "./peers/Literal"
|
|
130
|
-
export * from "./peers/CharLiteral"
|
|
131
|
-
export * from "./peers/ETSIntrinsicNode"
|
|
132
|
-
export * from "./peers/ETSPackageDeclaration"
|
|
133
|
-
export * from "./peers/ETSImportDeclaration"
|
|
134
|
-
export * from "./peers/ETSStructDeclaration"
|
|
135
|
-
export * from "./peers/TSModuleBlock"
|
|
136
|
-
export * from "./peers/ETSNewArrayInstanceExpression"
|
|
137
|
-
export * from "./peers/LoopStatement"
|
|
138
|
-
export * from "./peers/AnnotationDeclaration"
|
|
139
|
-
export * from "./peers/AnnotationUsage"
|
|
140
|
-
export * from "./peers/EmptyStatement"
|
|
141
|
-
export * from "./peers/WhileStatement"
|
|
142
|
-
export * from "./peers/FunctionSignature"
|
|
143
|
-
export * from "./peers/ChainExpression"
|
|
144
|
-
export * from "./peers/TSIntersectionType"
|
|
145
|
-
export * from "./peers/UpdateExpression"
|
|
146
|
-
export * from "./peers/BlockExpression"
|
|
147
|
-
export * from "./peers/TSTypeLiteral"
|
|
148
|
-
export * from "./peers/TSTypeParameter"
|
|
149
|
-
export * from "./peers/TSBooleanKeyword"
|
|
150
|
-
export * from "./peers/SpreadElement"
|
|
151
|
-
export * from "./peers/TSTypePredicate"
|
|
152
|
-
export * from "./peers/ImportNamespaceSpecifier"
|
|
153
|
-
export * from "./peers/ExportNamedDeclaration"
|
|
154
|
-
export * from "./peers/ETSParameterExpression"
|
|
155
|
-
export * from "./peers/TSTypeParameterInstantiation"
|
|
156
|
-
export * from "./peers/NullLiteral"
|
|
157
|
-
export * from "./peers/TSInferType"
|
|
158
|
-
export * from "./peers/SwitchCaseStatement"
|
|
159
|
-
export * from "./peers/YieldExpression"
|
|
160
|
-
export * from "./peers/TSImportEqualsDeclaration"
|
|
161
|
-
export * from "./peers/BooleanLiteral"
|
|
162
|
-
export * from "./peers/TSNumberKeyword"
|
|
163
|
-
export * from "./peers/ClassStaticBlock"
|
|
164
|
-
export * from "./peers/TSNonNullExpression"
|
|
165
|
-
export * from "./peers/PrefixAssertionExpression"
|
|
166
|
-
export * from "./peers/ClassExpression"
|
|
167
|
-
export * from "./peers/ForOfStatement"
|
|
168
|
-
export * from "./peers/TemplateLiteral"
|
|
169
|
-
export * from "./peers/TSUnionType"
|
|
170
|
-
export * from "./peers/TSUnknownKeyword"
|
|
171
|
-
export * from "./peers/Identifier"
|
|
172
|
-
export * from "./peers/OpaqueTypeNode"
|
|
173
|
-
export * from "./peers/BlockStatement"
|
|
174
|
-
export * from "./peers/Statement"
|
|
175
|
-
export * from "./peers/DirectEvalExpression"
|
|
176
|
-
export * from "./peers/TSTypeParameterDeclaration"
|
|
177
|
-
export * from "./peers/MethodDefinition"
|
|
178
|
-
export * from "./peers/OverloadDeclaration"
|
|
179
|
-
export * from "./peers/TSNullKeyword"
|
|
180
|
-
export * from "./peers/TSInterfaceHeritage"
|
|
181
|
-
export * from "./peers/Expression"
|
|
182
|
-
export * from "./peers/AnnotatedExpression"
|
|
183
|
-
export * from "./peers/MaybeOptionalExpression"
|
|
184
|
-
export * from "./peers/SrcDumper"
|
|
185
|
-
export * from "./peers/ETSClassLiteral"
|
|
186
|
-
export * from "./peers/BreakStatement"
|
|
187
|
-
export * from "./peers/RegExpLiteral"
|
|
188
|
-
export * from "./peers/TSMappedType"
|
|
189
|
-
export * from "./peers/TSAnyKeyword"
|
|
190
|
-
export * from "./peers/ClassDeclaration"
|
|
191
|
-
export * from "./peers/TSIndexedAccessType"
|
|
192
|
-
export * from "./peers/TSQualifiedName"
|
|
193
|
-
export * from "./peers/AwaitExpression"
|
|
194
|
-
export * from "./peers/ValidationInfo"
|
|
195
|
-
export * from "./peers/ContinueStatement"
|
|
196
|
-
export * from "./peers/ETSNewMultiDimArrayInstanceExpression"
|
|
197
|
-
export * from "./peers/TSNamedTupleMember"
|
|
198
|
-
export * from "./peers/ImportExpression"
|
|
199
|
-
export * from "./peers/AstDumper"
|
|
200
|
-
export * from "./peers/ETSNullType"
|
|
201
|
-
export * from "./peers/ETSUndefinedType"
|
|
202
|
-
export * from "./peers/TypeofExpression"
|
|
203
|
-
export * from "./peers/TSEnumMember"
|
|
204
|
-
export * from "./peers/SwitchStatement"
|
|
205
|
-
export * from "./peers/DoWhileStatement"
|
|
206
|
-
export * from "./peers/CatchClause"
|
|
207
|
-
export * from "./peers/SequenceExpression"
|
|
208
|
-
export * from "./peers/ArrowFunctionExpression"
|
|
209
|
-
export * from "./peers/OmittedExpression"
|
|
210
|
-
export * from "./peers/ETSNewClassInstanceExpression"
|
|
211
|
-
export * from "./peers/TSAsExpression"
|
|
212
|
-
export * from "./peers/ForUpdateStatement"
|
|
213
|
-
export * from "./peers/ETSTypeReferencePart"
|
|
214
|
-
export * from "./peers/ETSReExportDeclaration"
|
|
215
|
-
export * from "./peers/ETSPrimitiveType"
|
|
216
|
-
export * from "./peers/TypeNode"
|
|
217
|
-
export * from "./peers/NewExpression"
|
|
218
|
-
export * from "./peers/TSParameterProperty"
|
|
219
|
-
export * from "./peers/ETSWildcardType"
|
|
220
|
-
export * from "./peers/TSThisType"
|
|
221
|
-
export * from "./peers/Program"
|
|
222
|
-
export * from "./peers/ArkTsConfig"
|
|
@@ -1,44 +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
|
-
|
|
36
|
-
export class AnnotatedAstNode extends AstNode {
|
|
37
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
38
|
-
super(pointer, astNodeType)
|
|
39
|
-
}
|
|
40
|
-
protected readonly brandAnnotatedAstNode: undefined
|
|
41
|
-
}
|
|
42
|
-
export function isAnnotatedAstNode(node: object | undefined): node is AnnotatedAstNode {
|
|
43
|
-
return node instanceof AnnotatedAstNode
|
|
44
|
-
}
|
|
@@ -1,54 +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 { TypeNode } from "./TypeNode"
|
|
37
|
-
|
|
38
|
-
export class AnnotatedExpression extends Expression {
|
|
39
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
-
super(pointer, astNodeType)
|
|
41
|
-
}
|
|
42
|
-
get typeAnnotation(): TypeNode | undefined {
|
|
43
|
-
return unpackNode(global.generatedEs2panda._AnnotatedExpressionTypeAnnotationConst(global.context, this.peer))
|
|
44
|
-
}
|
|
45
|
-
/** @deprecated */
|
|
46
|
-
setTsTypeAnnotation(typeAnnotation?: TypeNode): this {
|
|
47
|
-
global.generatedEs2panda._AnnotatedExpressionSetTsTypeAnnotation(global.context, this.peer, passNode(typeAnnotation))
|
|
48
|
-
return this
|
|
49
|
-
}
|
|
50
|
-
protected readonly brandAnnotatedExpression: undefined
|
|
51
|
-
}
|
|
52
|
-
export function isAnnotatedExpression(node: object | undefined): node is AnnotatedExpression {
|
|
53
|
-
return node instanceof AnnotatedExpression
|
|
54
|
-
}
|
|
@@ -1,45 +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 { Statement } from "./Statement"
|
|
36
|
-
|
|
37
|
-
export class AnnotatedStatement extends Statement {
|
|
38
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
39
|
-
super(pointer, astNodeType)
|
|
40
|
-
}
|
|
41
|
-
protected readonly brandAnnotatedStatement: undefined
|
|
42
|
-
}
|
|
43
|
-
export function isAnnotatedStatement(node: object | undefined): node is AnnotatedStatement {
|
|
44
|
-
return node instanceof AnnotatedStatement
|
|
45
|
-
}
|
|
@@ -1,165 +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 { Expression } from "./Expression"
|
|
37
|
-
import { Identifier } from "./Identifier"
|
|
38
|
-
import { SrcDumper } from "./SrcDumper"
|
|
39
|
-
import { Statement } from "./Statement"
|
|
40
|
-
|
|
41
|
-
export class AnnotationDeclaration extends Statement {
|
|
42
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
43
|
-
super(pointer, astNodeType)
|
|
44
|
-
}
|
|
45
|
-
static create1AnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[]): AnnotationDeclaration {
|
|
46
|
-
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration1(global.context, passNode(expr), passNodeArray(properties), properties.length), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION)
|
|
47
|
-
result.setChildrenParentPtr()
|
|
48
|
-
return result
|
|
49
|
-
}
|
|
50
|
-
static updateAnnotationDeclaration(original?: AnnotationDeclaration, expr?: Expression): AnnotationDeclaration {
|
|
51
|
-
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration(global.context, passNode(original), passNode(expr)), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION)
|
|
52
|
-
result.setChildrenParentPtr()
|
|
53
|
-
return result
|
|
54
|
-
}
|
|
55
|
-
static update1AnnotationDeclaration(original: AnnotationDeclaration | undefined, expr: Expression | undefined, properties: readonly AstNode[]): AnnotationDeclaration {
|
|
56
|
-
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration1(global.context, passNode(original), passNode(expr), passNodeArray(properties), properties.length), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION)
|
|
57
|
-
result.setChildrenParentPtr()
|
|
58
|
-
return result
|
|
59
|
-
}
|
|
60
|
-
get internalName(): string {
|
|
61
|
-
return unpackString(global.generatedEs2panda._AnnotationDeclarationInternalNameConst(global.context, this.peer))
|
|
62
|
-
}
|
|
63
|
-
/** @deprecated */
|
|
64
|
-
setInternalName(internalName: string): this {
|
|
65
|
-
global.generatedEs2panda._AnnotationDeclarationSetInternalName(global.context, this.peer, internalName)
|
|
66
|
-
return this
|
|
67
|
-
}
|
|
68
|
-
get expr(): Expression | undefined {
|
|
69
|
-
return unpackNode(global.generatedEs2panda._AnnotationDeclarationExpr(global.context, this.peer))
|
|
70
|
-
}
|
|
71
|
-
get properties(): readonly AstNode[] {
|
|
72
|
-
return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationProperties(global.context, this.peer))
|
|
73
|
-
}
|
|
74
|
-
get propertiesForUpdate(): readonly AstNode[] {
|
|
75
|
-
return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationPropertiesForUpdate(global.context, this.peer))
|
|
76
|
-
}
|
|
77
|
-
/** @deprecated */
|
|
78
|
-
addProperties(properties: readonly AstNode[]): this {
|
|
79
|
-
global.generatedEs2panda._AnnotationDeclarationAddProperties(global.context, this.peer, passNodeArray(properties), properties.length)
|
|
80
|
-
return this
|
|
81
|
-
}
|
|
82
|
-
get isSourceRetention(): boolean {
|
|
83
|
-
return global.generatedEs2panda._AnnotationDeclarationIsSourceRetentionConst(global.context, this.peer)
|
|
84
|
-
}
|
|
85
|
-
get isBytecodeRetention(): boolean {
|
|
86
|
-
return global.generatedEs2panda._AnnotationDeclarationIsBytecodeRetentionConst(global.context, this.peer)
|
|
87
|
-
}
|
|
88
|
-
get isRuntimeRetention(): boolean {
|
|
89
|
-
return global.generatedEs2panda._AnnotationDeclarationIsRuntimeRetentionConst(global.context, this.peer)
|
|
90
|
-
}
|
|
91
|
-
/** @deprecated */
|
|
92
|
-
setSourceRetention(): this {
|
|
93
|
-
global.generatedEs2panda._AnnotationDeclarationSetSourceRetention(global.context, this.peer)
|
|
94
|
-
return this
|
|
95
|
-
}
|
|
96
|
-
/** @deprecated */
|
|
97
|
-
setBytecodeRetention(): this {
|
|
98
|
-
global.generatedEs2panda._AnnotationDeclarationSetBytecodeRetention(global.context, this.peer)
|
|
99
|
-
return this
|
|
100
|
-
}
|
|
101
|
-
/** @deprecated */
|
|
102
|
-
setRuntimeRetention(): this {
|
|
103
|
-
global.generatedEs2panda._AnnotationDeclarationSetRuntimeRetention(global.context, this.peer)
|
|
104
|
-
return this
|
|
105
|
-
}
|
|
106
|
-
get baseName(): Identifier | undefined {
|
|
107
|
-
return unpackNode(global.generatedEs2panda._AnnotationDeclarationGetBaseNameConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
108
|
-
}
|
|
109
|
-
/** @deprecated */
|
|
110
|
-
emplaceProperties(properties?: AstNode): this {
|
|
111
|
-
global.generatedEs2panda._AnnotationDeclarationEmplaceProperties(global.context, this.peer, passNode(properties))
|
|
112
|
-
return this
|
|
113
|
-
}
|
|
114
|
-
/** @deprecated */
|
|
115
|
-
clearProperties(): this {
|
|
116
|
-
global.generatedEs2panda._AnnotationDeclarationClearProperties(global.context, this.peer)
|
|
117
|
-
return this
|
|
118
|
-
}
|
|
119
|
-
/** @deprecated */
|
|
120
|
-
setValueProperties(properties: AstNode | undefined, index: number): this {
|
|
121
|
-
global.generatedEs2panda._AnnotationDeclarationSetValueProperties(global.context, this.peer, passNode(properties), index)
|
|
122
|
-
return this
|
|
123
|
-
}
|
|
124
|
-
get hasAnnotations(): boolean {
|
|
125
|
-
return global.generatedEs2panda._AnnotationDeclarationHasAnnotationsConst(global.context, this.peer)
|
|
126
|
-
}
|
|
127
|
-
/** @deprecated */
|
|
128
|
-
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
129
|
-
global.generatedEs2panda._AnnotationDeclarationEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
130
|
-
return this
|
|
131
|
-
}
|
|
132
|
-
/** @deprecated */
|
|
133
|
-
clearAnnotations(): this {
|
|
134
|
-
global.generatedEs2panda._AnnotationDeclarationClearAnnotations(global.context, this.peer)
|
|
135
|
-
return this
|
|
136
|
-
}
|
|
137
|
-
/** @deprecated */
|
|
138
|
-
dumpAnnotations(dumper?: SrcDumper): this {
|
|
139
|
-
global.generatedEs2panda._AnnotationDeclarationDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
140
|
-
return this
|
|
141
|
-
}
|
|
142
|
-
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
143
|
-
return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
144
|
-
}
|
|
145
|
-
get annotations(): readonly AnnotationUsage[] {
|
|
146
|
-
return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
147
|
-
}
|
|
148
|
-
/** @deprecated */
|
|
149
|
-
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
150
|
-
global.generatedEs2panda._AnnotationDeclarationSetAnnotations(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
151
|
-
return this
|
|
152
|
-
}
|
|
153
|
-
/** @deprecated */
|
|
154
|
-
setAnnotations1(annotationList: readonly AnnotationUsage[]): this {
|
|
155
|
-
global.generatedEs2panda._AnnotationDeclarationSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
156
|
-
return this
|
|
157
|
-
}
|
|
158
|
-
protected readonly brandAnnotationDeclaration: undefined
|
|
159
|
-
}
|
|
160
|
-
export function isAnnotationDeclaration(node: object | undefined): node is AnnotationDeclaration {
|
|
161
|
-
return node instanceof AnnotationDeclaration
|
|
162
|
-
}
|
|
163
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION)) {
|
|
164
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION, (peer: KNativePointer) => new AnnotationDeclaration(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION))
|
|
165
|
-
}
|
|
@@ -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 { Expression } from "./Expression"
|
|
36
|
-
import { Identifier } from "./Identifier"
|
|
37
|
-
import { Statement } from "./Statement"
|
|
38
|
-
|
|
39
|
-
export class AnnotationUsage extends Statement {
|
|
40
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
-
super(pointer, astNodeType)
|
|
42
|
-
}
|
|
43
|
-
static create1AnnotationUsage(expr: Expression | undefined, properties: readonly AstNode[]): AnnotationUsage {
|
|
44
|
-
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsage1(global.context, passNode(expr), passNodeArray(properties), properties.length), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
45
|
-
result.setChildrenParentPtr()
|
|
46
|
-
return result
|
|
47
|
-
}
|
|
48
|
-
static updateAnnotationUsage(original?: AnnotationUsage, expr?: Expression): AnnotationUsage {
|
|
49
|
-
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsage(global.context, passNode(original), passNode(expr)), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
50
|
-
result.setChildrenParentPtr()
|
|
51
|
-
return result
|
|
52
|
-
}
|
|
53
|
-
static update1AnnotationUsage(original: AnnotationUsage | undefined, expr: Expression | undefined, properties: readonly AstNode[]): AnnotationUsage {
|
|
54
|
-
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsage1(global.context, passNode(original), passNode(expr), passNodeArray(properties), properties.length), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
55
|
-
result.setChildrenParentPtr()
|
|
56
|
-
return result
|
|
57
|
-
}
|
|
58
|
-
get expr(): Expression | undefined {
|
|
59
|
-
return unpackNode(global.generatedEs2panda._AnnotationUsageExpr(global.context, this.peer))
|
|
60
|
-
}
|
|
61
|
-
get properties(): readonly AstNode[] {
|
|
62
|
-
return unpackNodeArray(global.generatedEs2panda._AnnotationUsageProperties(global.context, this.peer))
|
|
63
|
-
}
|
|
64
|
-
/** @deprecated */
|
|
65
|
-
addProperty(property?: AstNode): this {
|
|
66
|
-
global.generatedEs2panda._AnnotationUsageAddProperty(global.context, this.peer, passNode(property))
|
|
67
|
-
return this
|
|
68
|
-
}
|
|
69
|
-
/** @deprecated */
|
|
70
|
-
setProperties(properties: readonly AstNode[]): this {
|
|
71
|
-
global.generatedEs2panda._AnnotationUsageSetProperties(global.context, this.peer, passNodeArray(properties), properties.length)
|
|
72
|
-
return this
|
|
73
|
-
}
|
|
74
|
-
get baseName(): Identifier | undefined {
|
|
75
|
-
return unpackNode(global.generatedEs2panda._AnnotationUsageGetBaseNameConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
76
|
-
}
|
|
77
|
-
protected readonly brandAnnotationUsage: undefined
|
|
78
|
-
}
|
|
79
|
-
export function isAnnotationUsage(node: object | undefined): node is AnnotationUsage {
|
|
80
|
-
return node instanceof AnnotationUsage
|
|
81
|
-
}
|
|
82
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)) {
|
|
83
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, (peer: KNativePointer) => new AnnotationUsage(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE))
|
|
84
|
-
}
|