@idlizer/arktscgen 2.1.10-arktscgen-4 → 2.1.10-arktscgen-6
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/generator/options.json5 +24 -47
- package/build/libarkts-copy/native/meson.build +26 -10
- package/build/libarkts-copy/native/meson_options.txt +9 -3
- package/build/libarkts-copy/native/mingw.cross +2 -0
- package/build/libarkts-copy/native/src/bridges.cc +55 -159
- package/build/libarkts-copy/native/src/common.cc +316 -97
- package/build/libarkts-copy/native/src/common.h +22 -22
- package/build/libarkts-copy/native/src/memoryTracker.cc +5 -5
- package/build/libarkts-copy/native/src/memoryTracker.h +5 -5
- package/build/libarkts-copy/package.json +31 -25
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +139 -116
- package/build/libarkts-copy/src/InteropNativeModule.ts +18 -15
- package/build/libarkts-copy/src/arkts-api/AbstractVisitor.ts +24 -19
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +30 -31
- package/build/libarkts-copy/src/arkts-api/ProgramProvider.ts +30 -18
- package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +30 -12
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +38 -29
- package/build/libarkts-copy/src/arkts-api/index.ts +23 -24
- package/build/libarkts-copy/src/arkts-api/node-cache.ts +22 -13
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArkTsConfig.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArrayExpression.ts +9 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/AssignmentExpression.ts +12 -14
- package/build/libarkts-copy/src/arkts-api/node-utilities/BlockStatement.ts +5 -5
- package/build/libarkts-copy/src/arkts-api/node-utilities/CallExpression.ts +26 -24
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDefinition.ts +62 -32
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassProperty.ts +14 -13
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSFunctionType.ts +24 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSImportDeclaration.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSModule.ts +14 -18
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSParameterExpression.ts +15 -16
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSStructDeclaration.ts +5 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSTuple.ts +6 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/MemberExpression.ts +12 -11
- package/build/libarkts-copy/src/arkts-api/node-utilities/MethodDefinition.ts +14 -33
- package/build/libarkts-copy/src/arkts-api/node-utilities/NumberLiteral.ts +12 -23
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +17 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/OpaqueTypeNode.ts +9 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +21 -16
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +52 -53
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +22 -32
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeParameter.ts +12 -14
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeReferencePart.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/TryStatement.ts +10 -9
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclarator.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/peers/ArktsObject.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +53 -65
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +18 -25
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +35 -42
- 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 +205 -32
- 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 +41 -24
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +69 -62
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +254 -175
- package/build/libarkts-copy/src/arkts-api/visitor.ts +599 -756
- 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/memo-node-cache.ts +143 -0
- package/build/libarkts-copy/src/plugin-utils.ts +64 -45
- package/build/libarkts-copy/src/reexport-for-generated.ts +13 -10
- package/build/libarkts-copy/src/tracer.ts +76 -70
- 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 +116 -113
- 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 +103 -80
- package/build/libarkts-copy/tsconfig.json +3 -2
- package/lib/index.js +2713 -7729
- package/package.json +53 -52
- package/templates/Es2pandaNativeModule.ts +1 -0
- package/templates/peer.ts +1 -0
- package/build/libarkts-copy/native/src/generated/bridges.cc +0 -16375
- package/build/libarkts-copy/src/arkts-api/peers/DiagnosticKind.ts +0 -24
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +0 -1344
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +0 -5192
- package/build/libarkts-copy/src/generated/factory.ts +0 -1285
- package/build/libarkts-copy/src/generated/index.ts +0 -222
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +0 -54
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +0 -165
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +0 -109
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +0 -119
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +0 -111
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +0 -49
- package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +0 -110
- package/build/libarkts-copy/src/generated/peers/BindingProps.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +0 -129
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +0 -365
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +0 -137
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/CodeGen.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +0 -82
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/Declaration.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/DiagnosticInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +0 -60
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +0 -102
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +0 -90
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +0 -129
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +0 -59
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +0 -189
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +0 -55
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +0 -59
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +0 -89
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +0 -63
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +0 -82
- package/build/libarkts-copy/src/generated/peers/Expression.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +0 -67
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +0 -67
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +0 -106
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/IRNode.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +0 -162
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +0 -87
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ImportSource.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/LabelPair.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/Literal.ts +0 -53
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +0 -53
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +0 -115
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +0 -152
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +0 -101
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/Program.ts +0 -206
- package/build/libarkts-copy/src/generated/peers/Property.ts +0 -92
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +0 -310
- package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +0 -48
- package/build/libarkts-copy/src/generated/peers/SourceRange.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +0 -83
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +0 -120
- package/build/libarkts-copy/src/generated/peers/Statement.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/SuggestionInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +0 -112
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +0 -160
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +0 -80
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +0 -151
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +0 -121
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +0 -89
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +0 -81
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/VReg.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +0 -50
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +0 -113
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +0 -64
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
global,
|
|
22
|
-
passNode,
|
|
23
|
-
passNodeArray,
|
|
24
|
-
unpackNonNullableNode,
|
|
25
|
-
unpackNode,
|
|
26
|
-
unpackNodeArray,
|
|
27
|
-
AstNode,
|
|
28
|
-
KNativePointer,
|
|
29
|
-
nodeByType,
|
|
30
|
-
ArktsObject,
|
|
31
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { BlockStatement } from "./BlockStatement"
|
|
35
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
36
|
-
import { Expression } from "./Expression"
|
|
37
|
-
import { TypedStatement } from "./TypedStatement"
|
|
38
|
-
|
|
39
|
-
export class CatchClause extends TypedStatement {
|
|
40
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
-
super(pointer, astNodeType)
|
|
42
|
-
}
|
|
43
|
-
static createCatchClause(param?: Expression, body?: BlockStatement): CatchClause {
|
|
44
|
-
const result: CatchClause = new CatchClause(global.generatedEs2panda._CreateCatchClause(global.context, passNode(param), passNode(body)), Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE)
|
|
45
|
-
result.setChildrenParentPtr()
|
|
46
|
-
return result
|
|
47
|
-
}
|
|
48
|
-
static updateCatchClause(original?: CatchClause, param?: Expression, body?: BlockStatement): CatchClause {
|
|
49
|
-
const result: CatchClause = new CatchClause(global.generatedEs2panda._UpdateCatchClause(global.context, passNode(original), passNode(param), passNode(body)), Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE)
|
|
50
|
-
result.setChildrenParentPtr()
|
|
51
|
-
return result
|
|
52
|
-
}
|
|
53
|
-
static update1CatchClause(original?: CatchClause, other?: CatchClause): CatchClause {
|
|
54
|
-
const result: CatchClause = new CatchClause(global.generatedEs2panda._UpdateCatchClause1(global.context, passNode(original), passNode(other)), Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE)
|
|
55
|
-
result.setChildrenParentPtr()
|
|
56
|
-
return result
|
|
57
|
-
}
|
|
58
|
-
get param(): Expression | undefined {
|
|
59
|
-
return unpackNode(global.generatedEs2panda._CatchClauseParam(global.context, this.peer))
|
|
60
|
-
}
|
|
61
|
-
get body(): BlockStatement | undefined {
|
|
62
|
-
return unpackNode(global.generatedEs2panda._CatchClauseBody(global.context, this.peer))
|
|
63
|
-
}
|
|
64
|
-
get isDefaultCatchClause(): boolean {
|
|
65
|
-
return global.generatedEs2panda._CatchClauseIsDefaultCatchClauseConst(global.context, this.peer)
|
|
66
|
-
}
|
|
67
|
-
protected readonly brandCatchClause: undefined
|
|
68
|
-
}
|
|
69
|
-
export function isCatchClause(node: object | undefined): node is CatchClause {
|
|
70
|
-
return node instanceof CatchClause
|
|
71
|
-
}
|
|
72
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE)) {
|
|
73
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE, (peer: KNativePointer) => new CatchClause(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE))
|
|
74
|
-
}
|
|
@@ -1,68 +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 { Expression } from "./Expression"
|
|
37
|
-
import { VReg } from "./VReg"
|
|
38
|
-
|
|
39
|
-
export class ChainExpression extends Expression {
|
|
40
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
-
super(pointer, astNodeType)
|
|
42
|
-
}
|
|
43
|
-
static createChainExpression(expression?: Expression): ChainExpression {
|
|
44
|
-
const result: ChainExpression = new ChainExpression(global.generatedEs2panda._CreateChainExpression(global.context, passNode(expression)), Es2pandaAstNodeType.AST_NODE_TYPE_CHAIN_EXPRESSION)
|
|
45
|
-
result.setChildrenParentPtr()
|
|
46
|
-
return result
|
|
47
|
-
}
|
|
48
|
-
static updateChainExpression(original?: ChainExpression, expression?: Expression): ChainExpression {
|
|
49
|
-
const result: ChainExpression = new ChainExpression(global.generatedEs2panda._UpdateChainExpression(global.context, passNode(original), passNode(expression)), Es2pandaAstNodeType.AST_NODE_TYPE_CHAIN_EXPRESSION)
|
|
50
|
-
result.setChildrenParentPtr()
|
|
51
|
-
return result
|
|
52
|
-
}
|
|
53
|
-
get expression(): Expression | undefined {
|
|
54
|
-
return unpackNode(global.generatedEs2panda._ChainExpressionGetExpression(global.context, this.peer))
|
|
55
|
-
}
|
|
56
|
-
/** @deprecated */
|
|
57
|
-
compileToReg(pg?: CodeGen, objReg?: VReg): this {
|
|
58
|
-
global.generatedEs2panda._ChainExpressionCompileToRegConst(global.context, this.peer, passNode(pg), passNode(objReg))
|
|
59
|
-
return this
|
|
60
|
-
}
|
|
61
|
-
protected readonly brandChainExpression: undefined
|
|
62
|
-
}
|
|
63
|
-
export function isChainExpression(node: object | undefined): node is ChainExpression {
|
|
64
|
-
return node instanceof ChainExpression
|
|
65
|
-
}
|
|
66
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CHAIN_EXPRESSION)) {
|
|
67
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CHAIN_EXPRESSION, (peer: KNativePointer) => new ChainExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CHAIN_EXPRESSION))
|
|
68
|
-
}
|
|
@@ -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 CharLiteral extends Literal {
|
|
38
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
39
|
-
super(pointer, astNodeType)
|
|
40
|
-
}
|
|
41
|
-
static createCharLiteral(): CharLiteral {
|
|
42
|
-
const result: CharLiteral = new CharLiteral(global.generatedEs2panda._CreateCharLiteral(global.context), Es2pandaAstNodeType.AST_NODE_TYPE_CHAR_LITERAL)
|
|
43
|
-
result.setChildrenParentPtr()
|
|
44
|
-
return result
|
|
45
|
-
}
|
|
46
|
-
static updateCharLiteral(original?: CharLiteral): CharLiteral {
|
|
47
|
-
const result: CharLiteral = new CharLiteral(global.generatedEs2panda._UpdateCharLiteral(global.context, passNode(original)), Es2pandaAstNodeType.AST_NODE_TYPE_CHAR_LITERAL)
|
|
48
|
-
result.setChildrenParentPtr()
|
|
49
|
-
return result
|
|
50
|
-
}
|
|
51
|
-
protected readonly brandCharLiteral: undefined
|
|
52
|
-
}
|
|
53
|
-
export function isCharLiteral(node: object | undefined): node is CharLiteral {
|
|
54
|
-
return node instanceof CharLiteral
|
|
55
|
-
}
|
|
56
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CHAR_LITERAL)) {
|
|
57
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CHAR_LITERAL, (peer: KNativePointer) => new CharLiteral(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CHAR_LITERAL))
|
|
58
|
-
}
|
|
@@ -1,76 +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 { ClassDefinition } from "./ClassDefinition"
|
|
35
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
36
|
-
import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
37
|
-
import { Statement } from "./Statement"
|
|
38
|
-
|
|
39
|
-
export class ClassDeclaration extends Statement {
|
|
40
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
-
super(pointer, astNodeType)
|
|
42
|
-
}
|
|
43
|
-
static createClassDeclaration(def?: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
44
|
-
const result: ClassDeclaration = new ClassDeclaration(global.generatedEs2panda._CreateClassDeclaration(global.context, passNode(def)), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION)
|
|
45
|
-
if (modifierFlags)
|
|
46
|
-
{
|
|
47
|
-
result.modifierFlags = modifierFlags
|
|
48
|
-
}
|
|
49
|
-
result.setChildrenParentPtr()
|
|
50
|
-
return result
|
|
51
|
-
}
|
|
52
|
-
static updateClassDeclaration(original?: ClassDeclaration, def?: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
53
|
-
const result: ClassDeclaration = new ClassDeclaration(global.generatedEs2panda._UpdateClassDeclaration(global.context, passNode(original), passNode(def)), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION)
|
|
54
|
-
if (modifierFlags)
|
|
55
|
-
{
|
|
56
|
-
result.modifierFlags = modifierFlags
|
|
57
|
-
}
|
|
58
|
-
result.setChildrenParentPtr()
|
|
59
|
-
return result
|
|
60
|
-
}
|
|
61
|
-
get definition(): ClassDefinition {
|
|
62
|
-
return unpackNonNullableNode(global.generatedEs2panda._ClassDeclarationDefinition(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
|
|
63
|
-
}
|
|
64
|
-
/** @deprecated */
|
|
65
|
-
setDefinition(def?: ClassDefinition): this {
|
|
66
|
-
global.generatedEs2panda._ClassDeclarationSetDefinition(global.context, this.peer, passNode(def))
|
|
67
|
-
return this
|
|
68
|
-
}
|
|
69
|
-
protected readonly brandClassDeclaration: undefined
|
|
70
|
-
}
|
|
71
|
-
export function isClassDeclaration(node: object | undefined): node is ClassDeclaration {
|
|
72
|
-
return node instanceof ClassDeclaration
|
|
73
|
-
}
|
|
74
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION)) {
|
|
75
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION, (peer: KNativePointer) => new ClassDeclaration(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION))
|
|
76
|
-
}
|
|
@@ -1,365 +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 { ClassDeclaration } from "./ClassDeclaration"
|
|
36
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
37
|
-
import { Es2pandaClassDefinitionModifiers } from "./../Es2pandaEnums"
|
|
38
|
-
import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
39
|
-
import { Expression } from "./Expression"
|
|
40
|
-
import { Identifier } from "./Identifier"
|
|
41
|
-
import { MethodDefinition } from "./MethodDefinition"
|
|
42
|
-
import { SrcDumper } from "./SrcDumper"
|
|
43
|
-
import { TSClassImplements } from "./TSClassImplements"
|
|
44
|
-
import { TSEnumDeclaration } from "./TSEnumDeclaration"
|
|
45
|
-
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
46
|
-
import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation"
|
|
47
|
-
import { TypedAstNode } from "./TypedAstNode"
|
|
48
|
-
import { extension_ClassDefinitionSetBody } from "./../../reexport-for-generated"
|
|
49
|
-
|
|
50
|
-
export class ClassDefinition extends TypedAstNode {
|
|
51
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
52
|
-
super(pointer, astNodeType)
|
|
53
|
-
}
|
|
54
|
-
static createClassDefinition(ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
55
|
-
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._CreateClassDefinition(global.context, passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), _implements.length, passNode(ctor), passNode(superClass), passNodeArray(body), body.length, modifiers, flags), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
|
|
56
|
-
if (annotations)
|
|
57
|
-
{
|
|
58
|
-
result.setAnnotations(annotations)
|
|
59
|
-
}
|
|
60
|
-
result.setChildrenParentPtr()
|
|
61
|
-
return result
|
|
62
|
-
}
|
|
63
|
-
static updateClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
64
|
-
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition(global.context, passNode(original), passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), _implements.length, passNode(ctor), passNode(superClass), passNodeArray(body), body.length, modifiers, flags), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
|
|
65
|
-
if (annotations)
|
|
66
|
-
{
|
|
67
|
-
result.setAnnotations(annotations)
|
|
68
|
-
}
|
|
69
|
-
result.setChildrenParentPtr()
|
|
70
|
-
return result
|
|
71
|
-
}
|
|
72
|
-
static update1ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
73
|
-
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition1(global.context, passNode(original), passNode(ident), passNodeArray(body), body.length, modifiers, flags), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
|
|
74
|
-
if (annotations)
|
|
75
|
-
{
|
|
76
|
-
result.setAnnotations(annotations)
|
|
77
|
-
}
|
|
78
|
-
result.setChildrenParentPtr()
|
|
79
|
-
return result
|
|
80
|
-
}
|
|
81
|
-
static update2ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
82
|
-
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition2(global.context, passNode(original), passNode(ident), modifiers, flags), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
|
|
83
|
-
if (annotations)
|
|
84
|
-
{
|
|
85
|
-
result.setAnnotations(annotations)
|
|
86
|
-
}
|
|
87
|
-
result.setChildrenParentPtr()
|
|
88
|
-
return result
|
|
89
|
-
}
|
|
90
|
-
get ident(): Identifier | undefined {
|
|
91
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionIdent(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
92
|
-
}
|
|
93
|
-
/** @deprecated */
|
|
94
|
-
setIdent(ident?: Identifier): this {
|
|
95
|
-
global.generatedEs2panda._ClassDefinitionSetIdent(global.context, this.peer, passNode(ident))
|
|
96
|
-
return this
|
|
97
|
-
}
|
|
98
|
-
get internalName(): string {
|
|
99
|
-
return unpackString(global.generatedEs2panda._ClassDefinitionInternalNameConst(global.context, this.peer))
|
|
100
|
-
}
|
|
101
|
-
get super(): Expression | undefined {
|
|
102
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionSuper(global.context, this.peer))
|
|
103
|
-
}
|
|
104
|
-
/** @deprecated */
|
|
105
|
-
setSuper(superClass?: Expression): this {
|
|
106
|
-
global.generatedEs2panda._ClassDefinitionSetSuper(global.context, this.peer, passNode(superClass))
|
|
107
|
-
return this
|
|
108
|
-
}
|
|
109
|
-
get isGlobal(): boolean {
|
|
110
|
-
return global.generatedEs2panda._ClassDefinitionIsGlobalConst(global.context, this.peer)
|
|
111
|
-
}
|
|
112
|
-
get isLocal(): boolean {
|
|
113
|
-
return global.generatedEs2panda._ClassDefinitionIsLocalConst(global.context, this.peer)
|
|
114
|
-
}
|
|
115
|
-
get isExtern(): boolean {
|
|
116
|
-
return global.generatedEs2panda._ClassDefinitionIsExternConst(global.context, this.peer)
|
|
117
|
-
}
|
|
118
|
-
get isFromExternal(): boolean {
|
|
119
|
-
return global.generatedEs2panda._ClassDefinitionIsFromExternalConst(global.context, this.peer)
|
|
120
|
-
}
|
|
121
|
-
get isInner(): boolean {
|
|
122
|
-
return global.generatedEs2panda._ClassDefinitionIsInnerConst(global.context, this.peer)
|
|
123
|
-
}
|
|
124
|
-
get isGlobalInitialized(): boolean {
|
|
125
|
-
return global.generatedEs2panda._ClassDefinitionIsGlobalInitializedConst(global.context, this.peer)
|
|
126
|
-
}
|
|
127
|
-
get isClassDefinitionChecked(): boolean {
|
|
128
|
-
return global.generatedEs2panda._ClassDefinitionIsClassDefinitionCheckedConst(global.context, this.peer)
|
|
129
|
-
}
|
|
130
|
-
get isAnonymous(): boolean {
|
|
131
|
-
return global.generatedEs2panda._ClassDefinitionIsAnonymousConst(global.context, this.peer)
|
|
132
|
-
}
|
|
133
|
-
get isIntEnumTransformed(): boolean {
|
|
134
|
-
return global.generatedEs2panda._ClassDefinitionIsIntEnumTransformedConst(global.context, this.peer)
|
|
135
|
-
}
|
|
136
|
-
get isStringEnumTransformed(): boolean {
|
|
137
|
-
return global.generatedEs2panda._ClassDefinitionIsStringEnumTransformedConst(global.context, this.peer)
|
|
138
|
-
}
|
|
139
|
-
get isEnumTransformed(): boolean {
|
|
140
|
-
return global.generatedEs2panda._ClassDefinitionIsEnumTransformedConst(global.context, this.peer)
|
|
141
|
-
}
|
|
142
|
-
get isNamespaceTransformed(): boolean {
|
|
143
|
-
return global.generatedEs2panda._ClassDefinitionIsNamespaceTransformedConst(global.context, this.peer)
|
|
144
|
-
}
|
|
145
|
-
get isLazyImportObjectClass(): boolean {
|
|
146
|
-
return global.generatedEs2panda._ClassDefinitionIsLazyImportObjectClassConst(global.context, this.peer)
|
|
147
|
-
}
|
|
148
|
-
get isFromStruct(): boolean {
|
|
149
|
-
return global.generatedEs2panda._ClassDefinitionIsFromStructConst(global.context, this.peer)
|
|
150
|
-
}
|
|
151
|
-
get isInitInCctor(): boolean {
|
|
152
|
-
return global.generatedEs2panda._ClassDefinitionIsInitInCctorConst(global.context, this.peer)
|
|
153
|
-
}
|
|
154
|
-
get isModule(): boolean {
|
|
155
|
-
return global.generatedEs2panda._ClassDefinitionIsModuleConst(global.context, this.peer)
|
|
156
|
-
}
|
|
157
|
-
/** @deprecated */
|
|
158
|
-
setGlobalInitialized(): this {
|
|
159
|
-
global.generatedEs2panda._ClassDefinitionSetGlobalInitialized(global.context, this.peer)
|
|
160
|
-
return this
|
|
161
|
-
}
|
|
162
|
-
/** @deprecated */
|
|
163
|
-
setInnerModifier(): this {
|
|
164
|
-
global.generatedEs2panda._ClassDefinitionSetInnerModifier(global.context, this.peer)
|
|
165
|
-
return this
|
|
166
|
-
}
|
|
167
|
-
/** @deprecated */
|
|
168
|
-
setClassDefinitionChecked(): this {
|
|
169
|
-
global.generatedEs2panda._ClassDefinitionSetClassDefinitionChecked(global.context, this.peer)
|
|
170
|
-
return this
|
|
171
|
-
}
|
|
172
|
-
/** @deprecated */
|
|
173
|
-
setAnonymousModifier(): this {
|
|
174
|
-
global.generatedEs2panda._ClassDefinitionSetAnonymousModifier(global.context, this.peer)
|
|
175
|
-
return this
|
|
176
|
-
}
|
|
177
|
-
/** @deprecated */
|
|
178
|
-
setNamespaceTransformed(): this {
|
|
179
|
-
global.generatedEs2panda._ClassDefinitionSetNamespaceTransformed(global.context, this.peer)
|
|
180
|
-
return this
|
|
181
|
-
}
|
|
182
|
-
/** @deprecated */
|
|
183
|
-
setLazyImportObjectClass(): this {
|
|
184
|
-
global.generatedEs2panda._ClassDefinitionSetLazyImportObjectClass(global.context, this.peer)
|
|
185
|
-
return this
|
|
186
|
-
}
|
|
187
|
-
/** @deprecated */
|
|
188
|
-
setFromStructModifier(): this {
|
|
189
|
-
global.generatedEs2panda._ClassDefinitionSetFromStructModifier(global.context, this.peer)
|
|
190
|
-
return this
|
|
191
|
-
}
|
|
192
|
-
/** @deprecated */
|
|
193
|
-
setInitInCctor(): this {
|
|
194
|
-
global.generatedEs2panda._ClassDefinitionSetInitInCctor(global.context, this.peer)
|
|
195
|
-
return this
|
|
196
|
-
}
|
|
197
|
-
get modifiers(): Es2pandaClassDefinitionModifiers {
|
|
198
|
-
return global.generatedEs2panda._ClassDefinitionModifiersConst(global.context, this.peer)
|
|
199
|
-
}
|
|
200
|
-
/** @deprecated */
|
|
201
|
-
addProperties(body: readonly AstNode[]): this {
|
|
202
|
-
global.generatedEs2panda._ClassDefinitionAddProperties(global.context, this.peer, passNodeArray(body), body.length)
|
|
203
|
-
return this
|
|
204
|
-
}
|
|
205
|
-
get ctor(): MethodDefinition | undefined {
|
|
206
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionCtor(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
|
|
207
|
-
}
|
|
208
|
-
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
209
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
|
|
210
|
-
}
|
|
211
|
-
get superTypeParams(): TSTypeParameterInstantiation | undefined {
|
|
212
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionSuperTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_INSTANTIATION)
|
|
213
|
-
}
|
|
214
|
-
get localTypeCounter(): number {
|
|
215
|
-
return global.generatedEs2panda._ClassDefinitionLocalTypeCounter(global.context, this.peer)
|
|
216
|
-
}
|
|
217
|
-
get localIndex(): number {
|
|
218
|
-
return global.generatedEs2panda._ClassDefinitionLocalIndexConst(global.context, this.peer)
|
|
219
|
-
}
|
|
220
|
-
get functionalReferenceReferencedMethod(): MethodDefinition | undefined {
|
|
221
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionFunctionalReferenceReferencedMethodConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
|
|
222
|
-
}
|
|
223
|
-
/** @deprecated */
|
|
224
|
-
setFunctionalReferenceReferencedMethod(functionalReferenceReferencedMethod?: MethodDefinition): this {
|
|
225
|
-
global.generatedEs2panda._ClassDefinitionSetFunctionalReferenceReferencedMethod(global.context, this.peer, passNode(functionalReferenceReferencedMethod))
|
|
226
|
-
return this
|
|
227
|
-
}
|
|
228
|
-
get localPrefix(): string {
|
|
229
|
-
return unpackString(global.generatedEs2panda._ClassDefinitionLocalPrefixConst(global.context, this.peer))
|
|
230
|
-
}
|
|
231
|
-
get origEnumDecl(): TSEnumDeclaration | undefined {
|
|
232
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionOrigEnumDeclConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_ENUM_DECLARATION)
|
|
233
|
-
}
|
|
234
|
-
get anonClass(): ClassDeclaration | undefined {
|
|
235
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionGetAnonClass(global.context, this.peer))
|
|
236
|
-
}
|
|
237
|
-
get hasPrivateMethod(): boolean {
|
|
238
|
-
return global.generatedEs2panda._ClassDefinitionHasPrivateMethodConst(global.context, this.peer)
|
|
239
|
-
}
|
|
240
|
-
get hasNativeMethod(): boolean {
|
|
241
|
-
return global.generatedEs2panda._ClassDefinitionHasNativeMethodConst(global.context, this.peer)
|
|
242
|
-
}
|
|
243
|
-
get hasComputedInstanceField(): boolean {
|
|
244
|
-
return global.generatedEs2panda._ClassDefinitionHasComputedInstanceFieldConst(global.context, this.peer)
|
|
245
|
-
}
|
|
246
|
-
/** @deprecated */
|
|
247
|
-
addToExportedClasses(cls?: ClassDeclaration): this {
|
|
248
|
-
global.generatedEs2panda._ClassDefinitionAddToExportedClasses(global.context, this.peer, passNode(cls))
|
|
249
|
-
return this
|
|
250
|
-
}
|
|
251
|
-
/** @deprecated */
|
|
252
|
-
setModifiers(modifiers: Es2pandaClassDefinitionModifiers): this {
|
|
253
|
-
global.generatedEs2panda._ClassDefinitionSetModifiers(global.context, this.peer, modifiers)
|
|
254
|
-
return this
|
|
255
|
-
}
|
|
256
|
-
/** @deprecated */
|
|
257
|
-
emplaceBody(body?: AstNode): this {
|
|
258
|
-
global.generatedEs2panda._ClassDefinitionEmplaceBody(global.context, this.peer, passNode(body))
|
|
259
|
-
return this
|
|
260
|
-
}
|
|
261
|
-
/** @deprecated */
|
|
262
|
-
clearBody(): this {
|
|
263
|
-
global.generatedEs2panda._ClassDefinitionClearBody(global.context, this.peer)
|
|
264
|
-
return this
|
|
265
|
-
}
|
|
266
|
-
/** @deprecated */
|
|
267
|
-
setValueBody(body: AstNode | undefined, index: number): this {
|
|
268
|
-
global.generatedEs2panda._ClassDefinitionSetValueBody(global.context, this.peer, passNode(body), index)
|
|
269
|
-
return this
|
|
270
|
-
}
|
|
271
|
-
get body(): readonly AstNode[] {
|
|
272
|
-
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionBody(global.context, this.peer))
|
|
273
|
-
}
|
|
274
|
-
get bodyForUpdate(): readonly AstNode[] {
|
|
275
|
-
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionBodyForUpdate(global.context, this.peer))
|
|
276
|
-
}
|
|
277
|
-
/** @deprecated */
|
|
278
|
-
emplaceImplements(_implements?: TSClassImplements): this {
|
|
279
|
-
global.generatedEs2panda._ClassDefinitionEmplaceImplements(global.context, this.peer, passNode(_implements))
|
|
280
|
-
return this
|
|
281
|
-
}
|
|
282
|
-
/** @deprecated */
|
|
283
|
-
clearImplements(): this {
|
|
284
|
-
global.generatedEs2panda._ClassDefinitionClearImplements(global.context, this.peer)
|
|
285
|
-
return this
|
|
286
|
-
}
|
|
287
|
-
/** @deprecated */
|
|
288
|
-
setValueImplements(_implements: TSClassImplements | undefined, index: number): this {
|
|
289
|
-
global.generatedEs2panda._ClassDefinitionSetValueImplements(global.context, this.peer, passNode(_implements), index)
|
|
290
|
-
return this
|
|
291
|
-
}
|
|
292
|
-
get implements(): readonly TSClassImplements[] {
|
|
293
|
-
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionImplements(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_CLASS_IMPLEMENTS)
|
|
294
|
-
}
|
|
295
|
-
get implementsForUpdate(): readonly TSClassImplements[] {
|
|
296
|
-
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionImplementsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_CLASS_IMPLEMENTS)
|
|
297
|
-
}
|
|
298
|
-
/** @deprecated */
|
|
299
|
-
setCtor(ctor?: MethodDefinition): this {
|
|
300
|
-
global.generatedEs2panda._ClassDefinitionSetCtor(global.context, this.peer, passNode(ctor))
|
|
301
|
-
return this
|
|
302
|
-
}
|
|
303
|
-
/** @deprecated */
|
|
304
|
-
setTypeParams(typeParams?: TSTypeParameterDeclaration): this {
|
|
305
|
-
global.generatedEs2panda._ClassDefinitionSetTypeParams(global.context, this.peer, passNode(typeParams))
|
|
306
|
-
return this
|
|
307
|
-
}
|
|
308
|
-
/** @deprecated */
|
|
309
|
-
setOrigEnumDecl(origEnumDecl?: TSEnumDeclaration): this {
|
|
310
|
-
global.generatedEs2panda._ClassDefinitionSetOrigEnumDecl(global.context, this.peer, passNode(origEnumDecl))
|
|
311
|
-
return this
|
|
312
|
-
}
|
|
313
|
-
/** @deprecated */
|
|
314
|
-
setAnonClass(anonClass?: ClassDeclaration): this {
|
|
315
|
-
global.generatedEs2panda._ClassDefinitionSetAnonClass(global.context, this.peer, passNode(anonClass))
|
|
316
|
-
return this
|
|
317
|
-
}
|
|
318
|
-
/** @deprecated */
|
|
319
|
-
setInternalName(internalName: string): this {
|
|
320
|
-
global.generatedEs2panda._ClassDefinitionSetInternalName(global.context, this.peer, internalName)
|
|
321
|
-
return this
|
|
322
|
-
}
|
|
323
|
-
get hasAnnotations(): boolean {
|
|
324
|
-
return global.generatedEs2panda._ClassDefinitionHasAnnotationsConst(global.context, this.peer)
|
|
325
|
-
}
|
|
326
|
-
/** @deprecated */
|
|
327
|
-
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
328
|
-
global.generatedEs2panda._ClassDefinitionEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
329
|
-
return this
|
|
330
|
-
}
|
|
331
|
-
/** @deprecated */
|
|
332
|
-
clearAnnotations(): this {
|
|
333
|
-
global.generatedEs2panda._ClassDefinitionClearAnnotations(global.context, this.peer)
|
|
334
|
-
return this
|
|
335
|
-
}
|
|
336
|
-
/** @deprecated */
|
|
337
|
-
dumpAnnotations(dumper?: SrcDumper): this {
|
|
338
|
-
global.generatedEs2panda._ClassDefinitionDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
339
|
-
return this
|
|
340
|
-
}
|
|
341
|
-
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
342
|
-
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
343
|
-
}
|
|
344
|
-
get annotations(): readonly AnnotationUsage[] {
|
|
345
|
-
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
346
|
-
}
|
|
347
|
-
/** @deprecated */
|
|
348
|
-
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
349
|
-
global.generatedEs2panda._ClassDefinitionSetAnnotations(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
350
|
-
return this
|
|
351
|
-
}
|
|
352
|
-
/** @deprecated */
|
|
353
|
-
setAnnotations1(annotationList: readonly AnnotationUsage[]): this {
|
|
354
|
-
global.generatedEs2panda._ClassDefinitionSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
355
|
-
return this
|
|
356
|
-
}
|
|
357
|
-
setBody = extension_ClassDefinitionSetBody
|
|
358
|
-
protected readonly brandClassDefinition: undefined
|
|
359
|
-
}
|
|
360
|
-
export function isClassDefinition(node: object | undefined): node is ClassDefinition {
|
|
361
|
-
return node instanceof ClassDefinition
|
|
362
|
-
}
|
|
363
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)) {
|
|
364
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION, (peer: KNativePointer) => new ClassDefinition(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION))
|
|
365
|
-
}
|