@idlizer/arktscgen 2.1.9-arktscgen-6 → 2.1.9-arktscgen-9
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 +165 -3
- package/build/libarkts-copy/native/meson.build +11 -12
- package/build/libarkts-copy/native/meson_options.txt +1 -1
- package/build/libarkts-copy/native/mingw.cross +14 -0
- package/build/libarkts-copy/native/src/bridges.cc +105 -15
- package/build/libarkts-copy/native/src/common.cc +11 -7
- package/build/libarkts-copy/native/src/common.h +1 -0
- package/build/libarkts-copy/native/src/generated/bridges.cc +318 -35
- package/build/libarkts-copy/package.json +24 -21
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +33 -6
- package/build/libarkts-copy/src/arkts-api/ChainExpressionFilter.ts +2 -1
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +18 -12
- package/build/libarkts-copy/src/arkts-api/ProgramProvider.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +15 -26
- package/build/libarkts-copy/src/arkts-api/index.ts +2 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/BlockStatement.ts +0 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/CallExpression.ts +1 -22
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDefinition.ts +7 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassProperty.ts +1 -22
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSFunctionType.ts +2 -5
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSImportDeclaration.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSModule.ts +44 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSParameterExpression.ts +1 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/MethodDefinition.ts +3 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +10 -11
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +17 -6
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +3 -6
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +3 -3
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +26 -5
- package/build/libarkts-copy/src/arkts-api/peers/ExternalSource.ts +4 -0
- package/build/libarkts-copy/src/arkts-api/plugins.ts +15 -7
- package/build/libarkts-copy/src/arkts-api/static/global.ts +3 -2
- package/build/libarkts-copy/src/{wrapper-compat/arkts-api → arkts-api}/static/globalUtils.ts +4 -4
- package/build/libarkts-copy/src/arkts-api/static/profiler.ts +0 -8
- package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +80 -0
- package/build/libarkts-copy/src/arkts-api/utilities/nativePtrDecoder.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +5 -5
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +217 -29
- package/build/libarkts-copy/src/arkts-api/visitor.ts +17 -10
- package/build/libarkts-copy/src/checkSdk.ts +15 -0
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +343 -321
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +97 -14
- package/build/libarkts-copy/src/generated/factory.ts +40 -27
- package/build/libarkts-copy/src/generated/index.ts +4 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +26 -8
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/BindingProps.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +19 -7
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +21 -8
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +37 -13
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +19 -7
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/CodeGen.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/Declaration.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/DiagnosticInfo.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +20 -13
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +77 -0
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +46 -14
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +21 -9
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +20 -7
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +20 -8
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/Expression.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +5 -3
- package/build/libarkts-copy/src/generated/peers/FunctionDecl.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/IRNode.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +14 -6
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ImportSource.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/InterfaceDecl.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/LabelPair.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/Literal.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +23 -7
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +17 -7
- package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +103 -0
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/Program.ts +4 -2
- package/build/libarkts-copy/src/generated/peers/Property.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +47 -14
- package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/SourceRange.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/Statement.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/SuggestionInfo.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +19 -6
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +21 -8
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +42 -11
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/VReg.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +20 -8
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +9 -5
- package/build/libarkts-copy/src/index.ts +1 -4
- package/build/libarkts-copy/src/plugin-utils.ts +45 -32
- package/build/libarkts-copy/src/reexport-for-generated.ts +10 -1
- package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +14 -14
- package/build/libarkts-copy/src/ts-api/index.ts +1 -1
- package/build/libarkts-copy/src/ts-api/types.ts +56 -56
- package/build/libarkts-copy/src/ts-api/utilities/private.ts +6 -6
- package/build/libarkts-copy/src/ts-api/utilities/public.ts +3 -3
- package/build/libarkts-copy/src/ts-api/visitor/visitor.ts +4 -4
- package/build/libarkts-copy/src/utils.ts +13 -159
- package/build/libarkts-copy/src/wrapper-compat/README.md +4 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/index.ts +5 -5
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrayExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrowFunctionExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/AssignmentExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/BlockStatement.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/CallExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDefinition.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassProperty.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSFunctionType.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSImportDeclaration.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSParameterExpression.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ExpressionStatement.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/IfStatement.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MemberExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MethodDefinition.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/NumberLiteral.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ObjectExpression.ts +3 -3
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/Property.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ScriptFunction.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/StructDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSInterfaceDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeParameter.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TryStatement.ts +3 -3
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclarator.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Diagnostic.ts +4 -5
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticInfo.ts +4 -3
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticKind.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/ImportPathManager.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Program.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourcePosition.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourceRange.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SuggestionInfo.ts +4 -3
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/to-be-generated/MemberExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/types.ts +12 -30
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/nativePtrDecoder.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/private.ts +4 -4
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/public.ts +10 -8
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/visitor.ts +10 -10
- package/lib/index.js +2799 -2665
- package/package.json +2 -2
- package/templates/Es2pandaEnums.ts +1 -2
- package/templates/Es2pandaNativeModule.ts +2 -3
- package/templates/factory.ts +1 -2
- package/templates/index.ts +1 -2
- package/templates/node-map.ts +1 -2
- package/templates/peer.ts +1 -2
- package/build/libarkts-copy/src/arkts-api/CheckedBackFilter.ts +0 -131
- package/build/libarkts-copy/src/arkts-api/CompileWithCache.ts +0 -193
- package/build/libarkts-copy/src/arkts-api/InferVoidReturnType.ts +0 -89
- package/build/libarkts-copy/src/arkts-api/SetBaseOverloads.ts +0 -44
- package/build/libarkts-copy/src/arkts-api/node-utilities/AnnotationUsage.ts +0 -29
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArrowFunctionExpression.ts +0 -49
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDeclaration.ts +0 -54
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +0 -68
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclaration.ts +0 -54
- package/build/libarkts-copy/src/arkts-api/utilities/method-definition.ts +0 -38
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/ArktsObject.ts +0 -45
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Config.ts +0 -53
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Context.ts +0 -60
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
import {
|
|
@@ -29,7 +28,7 @@ import {
|
|
|
29
28
|
KLong
|
|
30
29
|
} from "@koalaui/interop"
|
|
31
30
|
|
|
32
|
-
//
|
|
31
|
+
// Improve: this type should be in interop
|
|
33
32
|
export type KNativePointerArray = BigUint64Array
|
|
34
33
|
|
|
35
34
|
export class Es2pandaNativeModule {
|
|
@@ -183,12 +182,6 @@ export class Es2pandaNativeModule {
|
|
|
183
182
|
_ETSFunctionTypeFlagsConst(context: KNativePointer, receiver: KNativePointer): KInt {
|
|
184
183
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
185
184
|
}
|
|
186
|
-
_ETSFunctionTypeIsThrowingConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
187
|
-
throw new Error("This methods was not overloaded by native module initialization")
|
|
188
|
-
}
|
|
189
|
-
_ETSFunctionTypeIsRethrowingConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
190
|
-
throw new Error("This methods was not overloaded by native module initialization")
|
|
191
|
-
}
|
|
192
185
|
_ETSFunctionTypeIsExtensionFunctionConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
193
186
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
194
187
|
}
|
|
@@ -279,9 +272,18 @@ export class Es2pandaNativeModule {
|
|
|
279
272
|
_UpdateTSEnumDeclaration(context: KNativePointer, original: KNativePointer, key: KNativePointer, members: BigUint64Array, membersSequenceLength: KUInt, isConst: KBoolean, isStatic: KBoolean, isDeclare: KBoolean): KNativePointer {
|
|
280
273
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
281
274
|
}
|
|
275
|
+
_CreateTSEnumDeclaration1(context: KNativePointer, key: KNativePointer, members: BigUint64Array, membersSequenceLength: KUInt, isConst: KBoolean, isStatic: KBoolean, isDeclare: KBoolean, typeNode: KNativePointer): KNativePointer {
|
|
276
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
277
|
+
}
|
|
278
|
+
_UpdateTSEnumDeclaration1(context: KNativePointer, original: KNativePointer, key: KNativePointer, members: BigUint64Array, membersSequenceLength: KUInt, isConst: KBoolean, isStatic: KBoolean, isDeclare: KBoolean, typeNode: KNativePointer): KNativePointer {
|
|
279
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
280
|
+
}
|
|
282
281
|
_TSEnumDeclarationKeyConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
283
282
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
284
283
|
}
|
|
284
|
+
_TSEnumDeclarationTypeNodes(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
285
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
286
|
+
}
|
|
285
287
|
_TSEnumDeclarationKey(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
286
288
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
287
289
|
}
|
|
@@ -1311,13 +1313,10 @@ export class Es2pandaNativeModule {
|
|
|
1311
1313
|
_ScriptFunctionHasThrowStatementConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
1312
1314
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
1313
1315
|
}
|
|
1314
|
-
|
|
1315
|
-
throw new Error("This methods was not overloaded by native module initialization")
|
|
1316
|
-
}
|
|
1317
|
-
_ScriptFunctionIsRethrowingConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
1316
|
+
_ScriptFunctionIsTrailingLambdaConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
1318
1317
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
1319
1318
|
}
|
|
1320
|
-
|
|
1319
|
+
_ScriptFunctionIsSyntheticConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
1321
1320
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
1322
1321
|
}
|
|
1323
1322
|
_ScriptFunctionIsDynamicConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
@@ -1344,6 +1343,15 @@ export class Es2pandaNativeModule {
|
|
|
1344
1343
|
_ScriptFunctionFormalParamsLengthConst(context: KNativePointer, receiver: KNativePointer): KUInt {
|
|
1345
1344
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
1346
1345
|
}
|
|
1346
|
+
_ScriptFunctionSetAsyncPairMethod(context: KNativePointer, receiver: KNativePointer, asyncPairFunction: KNativePointer): void {
|
|
1347
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
1348
|
+
}
|
|
1349
|
+
_ScriptFunctionAsyncPairMethodConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
1350
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
1351
|
+
}
|
|
1352
|
+
_ScriptFunctionAsyncPairMethod(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
1353
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
1354
|
+
}
|
|
1347
1355
|
_ScriptFunctionEmplaceReturnStatements(context: KNativePointer, receiver: KNativePointer, returnStatements: KNativePointer): void {
|
|
1348
1356
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
1349
1357
|
}
|
|
@@ -2145,6 +2153,9 @@ export class Es2pandaNativeModule {
|
|
|
2145
2153
|
_AstNodeGetOrCreateHistoryNodeConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
2146
2154
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
2147
2155
|
}
|
|
2156
|
+
_AstNodeCleanCheckInformation(context: KNativePointer, receiver: KNativePointer): void {
|
|
2157
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2158
|
+
}
|
|
2148
2159
|
_CreateUnaryExpression(context: KNativePointer, argument: KNativePointer, unaryOperator: KInt): KNativePointer {
|
|
2149
2160
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
2150
2161
|
}
|
|
@@ -2652,6 +2663,30 @@ export class Es2pandaNativeModule {
|
|
|
2652
2663
|
_UpdateCharLiteral(context: KNativePointer, original: KNativePointer): KNativePointer {
|
|
2653
2664
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
2654
2665
|
}
|
|
2666
|
+
_CreateETSIntrinsicNode(context: KNativePointer): KNativePointer {
|
|
2667
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2668
|
+
}
|
|
2669
|
+
_UpdateETSIntrinsicNode(context: KNativePointer, original: KNativePointer): KNativePointer {
|
|
2670
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2671
|
+
}
|
|
2672
|
+
_CreateETSIntrinsicNode1(context: KNativePointer, other: KNativePointer): KNativePointer {
|
|
2673
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2674
|
+
}
|
|
2675
|
+
_UpdateETSIntrinsicNode1(context: KNativePointer, original: KNativePointer, other: KNativePointer): KNativePointer {
|
|
2676
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2677
|
+
}
|
|
2678
|
+
_CreateETSIntrinsicNode2(context: KNativePointer, type: KInt, _arguments: BigUint64Array, _argumentsSequenceLength: KUInt): KNativePointer {
|
|
2679
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2680
|
+
}
|
|
2681
|
+
_UpdateETSIntrinsicNode2(context: KNativePointer, original: KNativePointer, type: KInt, _arguments: BigUint64Array, _argumentsSequenceLength: KUInt): KNativePointer {
|
|
2682
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2683
|
+
}
|
|
2684
|
+
_ETSIntrinsicNodeTypeConst(context: KNativePointer, receiver: KNativePointer): KInt {
|
|
2685
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2686
|
+
}
|
|
2687
|
+
_ETSIntrinsicNodeArgumentsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
2688
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2689
|
+
}
|
|
2655
2690
|
_CreateETSPackageDeclaration(context: KNativePointer, name: KNativePointer): KNativePointer {
|
|
2656
2691
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
2657
2692
|
}
|
|
@@ -3165,6 +3200,15 @@ export class Es2pandaNativeModule {
|
|
|
3165
3200
|
_ETSParameterExpressionSetIdent(context: KNativePointer, receiver: KNativePointer, ident: KNativePointer): void {
|
|
3166
3201
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3167
3202
|
}
|
|
3203
|
+
_ETSParameterExpressionSpread(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
3204
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3205
|
+
}
|
|
3206
|
+
_ETSParameterExpressionSpreadConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
3207
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3208
|
+
}
|
|
3209
|
+
_ETSParameterExpressionSetSpread(context: KNativePointer, receiver: KNativePointer, spread: KNativePointer): void {
|
|
3210
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3211
|
+
}
|
|
3168
3212
|
_ETSParameterExpressionRestParameterConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
3169
3213
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3170
3214
|
}
|
|
@@ -3675,6 +3719,45 @@ export class Es2pandaNativeModule {
|
|
|
3675
3719
|
_MethodDefinitionSetValueOverloads(context: KNativePointer, receiver: KNativePointer, overloads: KNativePointer, index: KUInt): void {
|
|
3676
3720
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3677
3721
|
}
|
|
3722
|
+
_CreateOverloadDeclaration(context: KNativePointer, key: KNativePointer, modifiers: KInt): KNativePointer {
|
|
3723
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3724
|
+
}
|
|
3725
|
+
_UpdateOverloadDeclaration(context: KNativePointer, original: KNativePointer, key: KNativePointer, modifiers: KInt): KNativePointer {
|
|
3726
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3727
|
+
}
|
|
3728
|
+
_OverloadDeclarationFlagConst(context: KNativePointer, receiver: KNativePointer): KInt {
|
|
3729
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3730
|
+
}
|
|
3731
|
+
_OverloadDeclarationOverloadedList(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
3732
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3733
|
+
}
|
|
3734
|
+
_OverloadDeclarationSetOverloadedList(context: KNativePointer, receiver: KNativePointer, overloadedList: BigUint64Array, overloadedListSequenceLength: KUInt): void {
|
|
3735
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3736
|
+
}
|
|
3737
|
+
_OverloadDeclarationPushFront(context: KNativePointer, receiver: KNativePointer, overloadedExpression: KNativePointer): void {
|
|
3738
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3739
|
+
}
|
|
3740
|
+
_OverloadDeclarationAddOverloadDeclFlag(context: KNativePointer, receiver: KNativePointer, overloadFlag: KInt): void {
|
|
3741
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3742
|
+
}
|
|
3743
|
+
_OverloadDeclarationHasOverloadDeclFlagConst(context: KNativePointer, receiver: KNativePointer, overloadFlag: KInt): KBoolean {
|
|
3744
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3745
|
+
}
|
|
3746
|
+
_OverloadDeclarationIsConstructorOverloadDeclaration(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
3747
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3748
|
+
}
|
|
3749
|
+
_OverloadDeclarationIsFunctionOverloadDeclaration(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
3750
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3751
|
+
}
|
|
3752
|
+
_OverloadDeclarationIsClassMethodOverloadDeclaration(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
3753
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3754
|
+
}
|
|
3755
|
+
_OverloadDeclarationIsInterfaceMethodOverloadDeclaration(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
3756
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3757
|
+
}
|
|
3758
|
+
_OverloadDeclarationDumpModifierConst(context: KNativePointer, receiver: KNativePointer, dumper: KNativePointer): void {
|
|
3759
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3760
|
+
}
|
|
3678
3761
|
_CreateTSNullKeyword(context: KNativePointer): KNativePointer {
|
|
3679
3762
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3680
3763
|
}
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
import {
|
|
@@ -58,6 +57,7 @@ import { DebuggerStatement } from "./peers/DebuggerStatement"
|
|
|
58
57
|
import { Decorator } from "./peers/Decorator"
|
|
59
58
|
import { DoWhileStatement } from "./peers/DoWhileStatement"
|
|
60
59
|
import { ETSClassLiteral } from "./peers/ETSClassLiteral"
|
|
60
|
+
import { ETSIntrinsicNode } from "./peers/ETSIntrinsicNode"
|
|
61
61
|
import { ETSKeyofType } from "./peers/ETSKeyofType"
|
|
62
62
|
import { ETSNewArrayInstanceExpression } from "./peers/ETSNewArrayInstanceExpression"
|
|
63
63
|
import { ETSNewClassInstanceExpression } from "./peers/ETSNewClassInstanceExpression"
|
|
@@ -69,7 +69,9 @@ import { ETSTypeReferencePart } from "./peers/ETSTypeReferencePart"
|
|
|
69
69
|
import { ETSUndefinedType } from "./peers/ETSUndefinedType"
|
|
70
70
|
import { ETSUnionType } from "./peers/ETSUnionType"
|
|
71
71
|
import { EmptyStatement } from "./peers/EmptyStatement"
|
|
72
|
+
import { Es2pandaIntrinsicNodeType } from "./Es2pandaEnums"
|
|
72
73
|
import { Es2pandaMetaPropertyKind } from "./Es2pandaEnums"
|
|
74
|
+
import { Es2pandaModifierFlags } from "./Es2pandaEnums"
|
|
73
75
|
import { Es2pandaPrimitiveType } from "./Es2pandaEnums"
|
|
74
76
|
import { Es2pandaPropertyKind } from "./Es2pandaEnums"
|
|
75
77
|
import { Es2pandaTokenType } from "./Es2pandaEnums"
|
|
@@ -164,6 +166,7 @@ import { VariableDeclaration } from "./peers/VariableDeclaration"
|
|
|
164
166
|
import { VariableDeclarator } from "./peers/VariableDeclarator"
|
|
165
167
|
import { WhileStatement } from "./peers/WhileStatement"
|
|
166
168
|
import { YieldExpression } from "./peers/YieldExpression"
|
|
169
|
+
|
|
167
170
|
export const factory = {
|
|
168
171
|
createLabelledStatement(ident?: Identifier, body?: Statement): LabelledStatement {
|
|
169
172
|
return LabelledStatement.createLabelledStatement(ident, body)
|
|
@@ -331,14 +334,14 @@ export const factory = {
|
|
|
331
334
|
return updateNodeByNode(TemplateElement.create1TemplateElement(raw, cooked), original)
|
|
332
335
|
}
|
|
333
336
|
,
|
|
334
|
-
createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[]): VariableDeclaration {
|
|
335
|
-
return VariableDeclaration.createVariableDeclaration(kind, declarators)
|
|
337
|
+
createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], annotations?: readonly AnnotationUsage[]): VariableDeclaration {
|
|
338
|
+
return VariableDeclaration.createVariableDeclaration(kind, declarators, annotations)
|
|
336
339
|
}
|
|
337
340
|
,
|
|
338
|
-
updateVariableDeclaration(original: VariableDeclaration, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[]): VariableDeclaration {
|
|
339
|
-
if (isSameNativeObject(kind, original.kind) && isSameNativeObject(declarators, original.declarators))
|
|
341
|
+
updateVariableDeclaration(original: VariableDeclaration, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], annotations?: readonly AnnotationUsage[]): VariableDeclaration {
|
|
342
|
+
if (isSameNativeObject(kind, original.kind) && isSameNativeObject(declarators, original.declarators) && isSameNativeObject(annotations, original.annotations))
|
|
340
343
|
return original
|
|
341
|
-
return updateNodeByNode(VariableDeclaration.createVariableDeclaration(kind, declarators), original)
|
|
344
|
+
return updateNodeByNode(VariableDeclaration.createVariableDeclaration(kind, declarators, annotations), original)
|
|
342
345
|
}
|
|
343
346
|
,
|
|
344
347
|
createUndefinedLiteral(): UndefinedLiteral {
|
|
@@ -367,14 +370,14 @@ export const factory = {
|
|
|
367
370
|
return updateNodeByNode(TSObjectKeyword.createTSObjectKeyword(), original)
|
|
368
371
|
}
|
|
369
372
|
,
|
|
370
|
-
createETSUnionType(types: readonly TypeNode[]): ETSUnionType {
|
|
371
|
-
return ETSUnionType.createETSUnionType(types)
|
|
373
|
+
createETSUnionType(types: readonly TypeNode[], annotations?: readonly AnnotationUsage[]): ETSUnionType {
|
|
374
|
+
return ETSUnionType.createETSUnionType(types, annotations)
|
|
372
375
|
}
|
|
373
376
|
,
|
|
374
|
-
updateETSUnionType(original: ETSUnionType, types: readonly TypeNode[]): ETSUnionType {
|
|
375
|
-
if (isSameNativeObject(types, original.types))
|
|
377
|
+
updateETSUnionType(original: ETSUnionType, types: readonly TypeNode[], annotations?: readonly AnnotationUsage[]): ETSUnionType {
|
|
378
|
+
if (isSameNativeObject(types, original.types) && isSameNativeObject(annotations, original.annotations))
|
|
376
379
|
return original
|
|
377
|
-
return updateNodeByNode(ETSUnionType.createETSUnionType(types), original)
|
|
380
|
+
return updateNodeByNode(ETSUnionType.createETSUnionType(types, annotations), original)
|
|
378
381
|
}
|
|
379
382
|
,
|
|
380
383
|
createETSKeyofType(typeRef?: TypeNode): ETSKeyofType {
|
|
@@ -407,14 +410,14 @@ export const factory = {
|
|
|
407
410
|
return updateNodeByNode(TSLiteralType.createTSLiteralType(literal), original)
|
|
408
411
|
}
|
|
409
412
|
,
|
|
410
|
-
createTSTypeAliasDeclaration(id: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, typeAnnotation: TypeNode): TSTypeAliasDeclaration {
|
|
411
|
-
return TSTypeAliasDeclaration.createTSTypeAliasDeclaration(id, typeParams, typeAnnotation)
|
|
413
|
+
createTSTypeAliasDeclaration(id: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, typeAnnotation: TypeNode, annotations?: readonly AnnotationUsage[], modifierFlags?: Es2pandaModifierFlags): TSTypeAliasDeclaration {
|
|
414
|
+
return TSTypeAliasDeclaration.createTSTypeAliasDeclaration(id, typeParams, typeAnnotation, annotations, modifierFlags)
|
|
412
415
|
}
|
|
413
416
|
,
|
|
414
|
-
updateTSTypeAliasDeclaration(original: TSTypeAliasDeclaration, id: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, typeAnnotation: TypeNode): TSTypeAliasDeclaration {
|
|
415
|
-
if (isSameNativeObject(id, original.id) && isSameNativeObject(typeParams, original.typeParams) && isSameNativeObject(typeAnnotation, original.typeAnnotation))
|
|
417
|
+
updateTSTypeAliasDeclaration(original: TSTypeAliasDeclaration, id: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, typeAnnotation: TypeNode, annotations?: readonly AnnotationUsage[], modifierFlags?: Es2pandaModifierFlags): TSTypeAliasDeclaration {
|
|
418
|
+
if (isSameNativeObject(id, original.id) && isSameNativeObject(typeParams, original.typeParams) && isSameNativeObject(typeAnnotation, original.typeAnnotation) && isSameNativeObject(annotations, original.annotations) && isSameNativeObject(modifierFlags, original.modifierFlags))
|
|
416
419
|
return original
|
|
417
|
-
return updateNodeByNode(TSTypeAliasDeclaration.createTSTypeAliasDeclaration(id, typeParams, typeAnnotation), original)
|
|
420
|
+
return updateNodeByNode(TSTypeAliasDeclaration.createTSTypeAliasDeclaration(id, typeParams, typeAnnotation, annotations, modifierFlags), original)
|
|
418
421
|
}
|
|
419
422
|
,
|
|
420
423
|
createDebuggerStatement(): DebuggerStatement {
|
|
@@ -673,6 +676,16 @@ export const factory = {
|
|
|
673
676
|
return updateNodeByNode(CharLiteral.createCharLiteral(), original)
|
|
674
677
|
}
|
|
675
678
|
,
|
|
679
|
+
createETSIntrinsicNode(type: Es2pandaIntrinsicNodeType, _arguments: readonly Expression[]): ETSIntrinsicNode {
|
|
680
|
+
return ETSIntrinsicNode.create2ETSIntrinsicNode(type, _arguments)
|
|
681
|
+
}
|
|
682
|
+
,
|
|
683
|
+
updateETSIntrinsicNode(original: ETSIntrinsicNode, type: Es2pandaIntrinsicNodeType, _arguments: readonly Expression[]): ETSIntrinsicNode {
|
|
684
|
+
if (isSameNativeObject(type, original.type) && isSameNativeObject(_arguments, original.arguments))
|
|
685
|
+
return original
|
|
686
|
+
return updateNodeByNode(ETSIntrinsicNode.create2ETSIntrinsicNode(type, _arguments), original)
|
|
687
|
+
}
|
|
688
|
+
,
|
|
676
689
|
createTSModuleBlock(statements: readonly Statement[]): TSModuleBlock {
|
|
677
690
|
return TSModuleBlock.createTSModuleBlock(statements)
|
|
678
691
|
}
|
|
@@ -1039,14 +1052,14 @@ export const factory = {
|
|
|
1039
1052
|
return updateNodeByNode(TSAnyKeyword.createTSAnyKeyword(), original)
|
|
1040
1053
|
}
|
|
1041
1054
|
,
|
|
1042
|
-
createClassDeclaration(definition?:
|
|
1043
|
-
return ClassDeclaration.createClassDeclaration(definition)
|
|
1055
|
+
createClassDeclaration(definition: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
1056
|
+
return ClassDeclaration.createClassDeclaration(definition, modifierFlags)
|
|
1044
1057
|
}
|
|
1045
1058
|
,
|
|
1046
|
-
updateClassDeclaration(original: ClassDeclaration, definition?:
|
|
1047
|
-
if (isSameNativeObject(definition, original.definition))
|
|
1059
|
+
updateClassDeclaration(original: ClassDeclaration, definition: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
1060
|
+
if (isSameNativeObject(definition, original.definition) && isSameNativeObject(modifierFlags, original.modifierFlags))
|
|
1048
1061
|
return original
|
|
1049
|
-
return updateNodeByNode(ClassDeclaration.createClassDeclaration(definition), original)
|
|
1062
|
+
return updateNodeByNode(ClassDeclaration.createClassDeclaration(definition, modifierFlags), original)
|
|
1050
1063
|
}
|
|
1051
1064
|
,
|
|
1052
1065
|
createTSIndexedAccessType(objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType {
|
|
@@ -1195,14 +1208,14 @@ export const factory = {
|
|
|
1195
1208
|
return updateNodeByNode(SequenceExpression.createSequenceExpression(sequence), original)
|
|
1196
1209
|
}
|
|
1197
1210
|
,
|
|
1198
|
-
createArrowFunctionExpression(_function?: ScriptFunction): ArrowFunctionExpression {
|
|
1199
|
-
return ArrowFunctionExpression.createArrowFunctionExpression(_function)
|
|
1211
|
+
createArrowFunctionExpression(_function?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
1212
|
+
return ArrowFunctionExpression.createArrowFunctionExpression(_function, annotations)
|
|
1200
1213
|
}
|
|
1201
1214
|
,
|
|
1202
|
-
updateArrowFunctionExpression(original: ArrowFunctionExpression, _function?: ScriptFunction): ArrowFunctionExpression {
|
|
1203
|
-
if (isSameNativeObject(_function, original.function))
|
|
1215
|
+
updateArrowFunctionExpression(original: ArrowFunctionExpression, _function?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
1216
|
+
if (isSameNativeObject(_function, original.function) && isSameNativeObject(annotations, original.annotations))
|
|
1204
1217
|
return original
|
|
1205
|
-
return updateNodeByNode(ArrowFunctionExpression.createArrowFunctionExpression(_function), original)
|
|
1218
|
+
return updateNodeByNode(ArrowFunctionExpression.createArrowFunctionExpression(_function, annotations), original)
|
|
1206
1219
|
}
|
|
1207
1220
|
,
|
|
1208
1221
|
createOmittedExpression(): OmittedExpression {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
20
|
+
|
|
21
21
|
export * from "./peers/SourcePosition"
|
|
22
22
|
export * from "./peers/SourceRange"
|
|
23
23
|
export * from "./peers/LabelPair"
|
|
@@ -125,6 +125,7 @@ export * from "./peers/ImportDeclaration"
|
|
|
125
125
|
export * from "./peers/TSParenthesizedType"
|
|
126
126
|
export * from "./peers/Literal"
|
|
127
127
|
export * from "./peers/CharLiteral"
|
|
128
|
+
export * from "./peers/ETSIntrinsicNode"
|
|
128
129
|
export * from "./peers/ETSPackageDeclaration"
|
|
129
130
|
export * from "./peers/ETSImportDeclaration"
|
|
130
131
|
export * from "./peers/ETSStructDeclaration"
|
|
@@ -171,6 +172,7 @@ export * from "./peers/Statement"
|
|
|
171
172
|
export * from "./peers/DirectEvalExpression"
|
|
172
173
|
export * from "./peers/TSTypeParameterDeclaration"
|
|
173
174
|
export * from "./peers/MethodDefinition"
|
|
175
|
+
export * from "./peers/OverloadDeclaration"
|
|
174
176
|
export * from "./peers/TSNullKeyword"
|
|
175
177
|
export * from "./peers/TSInterfaceHeritage"
|
|
176
178
|
export * from "./peers/Expression"
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
import {
|
|
@@ -33,6 +32,7 @@ import {
|
|
|
33
32
|
unpackString
|
|
34
33
|
} from "../../reexport-for-generated"
|
|
35
34
|
|
|
35
|
+
|
|
36
36
|
export class AnnotatedAstNode extends AstNode {
|
|
37
37
|
constructor(pointer: KNativePointer) {
|
|
38
38
|
super(pointer)
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
import {
|
|
@@ -35,6 +34,7 @@ import {
|
|
|
35
34
|
|
|
36
35
|
import { Expression } from "./Expression"
|
|
37
36
|
import { TypeNode } from "./TypeNode"
|
|
37
|
+
|
|
38
38
|
export class AnnotatedExpression extends Expression {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
40
|
super(pointer)
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
import {
|
|
@@ -34,6 +33,7 @@ import {
|
|
|
34
33
|
} from "../../reexport-for-generated"
|
|
35
34
|
|
|
36
35
|
import { Statement } from "./Statement"
|
|
36
|
+
|
|
37
37
|
export class AnnotatedStatement extends Statement {
|
|
38
38
|
constructor(pointer: KNativePointer) {
|
|
39
39
|
super(pointer)
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
import {
|
|
@@ -38,19 +37,26 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
38
37
|
import { Expression } from "./Expression"
|
|
39
38
|
import { Identifier } from "./Identifier"
|
|
40
39
|
import { Statement } from "./Statement"
|
|
40
|
+
|
|
41
41
|
export class AnnotationDeclaration extends Statement {
|
|
42
42
|
constructor(pointer: KNativePointer) {
|
|
43
43
|
assertValidPeer(pointer, 1)
|
|
44
44
|
super(pointer)
|
|
45
45
|
}
|
|
46
46
|
static create1AnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[]): AnnotationDeclaration {
|
|
47
|
-
|
|
47
|
+
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration1(global.context, passNode(expr), passNodeArray(properties), properties.length))
|
|
48
|
+
result.setChildrenParentPtr()
|
|
49
|
+
return result
|
|
48
50
|
}
|
|
49
51
|
static updateAnnotationDeclaration(original?: AnnotationDeclaration, expr?: Expression): AnnotationDeclaration {
|
|
50
|
-
|
|
52
|
+
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration(global.context, passNode(original), passNode(expr)))
|
|
53
|
+
result.setChildrenParentPtr()
|
|
54
|
+
return result
|
|
51
55
|
}
|
|
52
56
|
static update1AnnotationDeclaration(original: AnnotationDeclaration | undefined, expr: Expression | undefined, properties: readonly AstNode[]): AnnotationDeclaration {
|
|
53
|
-
|
|
57
|
+
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration1(global.context, passNode(original), passNode(expr), passNodeArray(properties), properties.length))
|
|
58
|
+
result.setChildrenParentPtr()
|
|
59
|
+
return result
|
|
54
60
|
}
|
|
55
61
|
get internalName(): string {
|
|
56
62
|
return unpackString(global.generatedEs2panda._AnnotationDeclarationInternalNameConst(global.context, this.peer))
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
import {
|
|
@@ -37,19 +36,26 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
37
36
|
import { Expression } from "./Expression"
|
|
38
37
|
import { Identifier } from "./Identifier"
|
|
39
38
|
import { Statement } from "./Statement"
|
|
39
|
+
|
|
40
40
|
export class AnnotationUsage extends Statement {
|
|
41
41
|
constructor(pointer: KNativePointer) {
|
|
42
42
|
assertValidPeer(pointer, 2)
|
|
43
43
|
super(pointer)
|
|
44
44
|
}
|
|
45
45
|
static create1AnnotationUsage(expr: Expression | undefined, properties: readonly AstNode[]): AnnotationUsage {
|
|
46
|
-
|
|
46
|
+
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsage1(global.context, passNode(expr), passNodeArray(properties), properties.length))
|
|
47
|
+
result.setChildrenParentPtr()
|
|
48
|
+
return result
|
|
47
49
|
}
|
|
48
50
|
static updateAnnotationUsage(original?: AnnotationUsage, expr?: Expression): AnnotationUsage {
|
|
49
|
-
|
|
51
|
+
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsage(global.context, passNode(original), passNode(expr)))
|
|
52
|
+
result.setChildrenParentPtr()
|
|
53
|
+
return result
|
|
50
54
|
}
|
|
51
55
|
static update1AnnotationUsage(original: AnnotationUsage | undefined, expr: Expression | undefined, properties: readonly AstNode[]): AnnotationUsage {
|
|
52
|
-
|
|
56
|
+
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsage1(global.context, passNode(original), passNode(expr), passNodeArray(properties), properties.length))
|
|
57
|
+
result.setChildrenParentPtr()
|
|
58
|
+
return result
|
|
53
59
|
}
|
|
54
60
|
get expr(): Expression | undefined {
|
|
55
61
|
return unpackNode(global.generatedEs2panda._AnnotationUsageExpr(global.context, this.peer))
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
import {
|
|
@@ -33,6 +32,7 @@ import {
|
|
|
33
32
|
unpackString
|
|
34
33
|
} from "../../reexport-for-generated"
|
|
35
34
|
|
|
35
|
+
|
|
36
36
|
export class ArkTsConfig extends ArktsObject {
|
|
37
37
|
constructor(pointer: KNativePointer) {
|
|
38
38
|
super(pointer)
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
import {
|
|
@@ -39,19 +38,26 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
39
38
|
import { Expression } from "./Expression"
|
|
40
39
|
import { TypeNode } from "./TypeNode"
|
|
41
40
|
import { ValidationInfo } from "./ValidationInfo"
|
|
41
|
+
|
|
42
42
|
export class ArrayExpression extends AnnotatedExpression {
|
|
43
43
|
constructor(pointer: KNativePointer) {
|
|
44
|
-
assertValidPeer(pointer,
|
|
44
|
+
assertValidPeer(pointer, 159)
|
|
45
45
|
super(pointer)
|
|
46
46
|
}
|
|
47
47
|
static create1ArrayExpression(nodeType: Es2pandaAstNodeType, elements: readonly Expression[], trailingComma: boolean): ArrayExpression {
|
|
48
|
-
|
|
48
|
+
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._CreateArrayExpression1(global.context, nodeType, passNodeArray(elements), elements.length, trailingComma))
|
|
49
|
+
result.setChildrenParentPtr()
|
|
50
|
+
return result
|
|
49
51
|
}
|
|
50
52
|
static updateArrayExpression(original: ArrayExpression | undefined, elements: readonly Expression[]): ArrayExpression {
|
|
51
|
-
|
|
53
|
+
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._UpdateArrayExpression(global.context, passNode(original), passNodeArray(elements), elements.length))
|
|
54
|
+
result.setChildrenParentPtr()
|
|
55
|
+
return result
|
|
52
56
|
}
|
|
53
57
|
static update1ArrayExpression(original: ArrayExpression | undefined, nodeType: Es2pandaAstNodeType, elements: readonly Expression[], trailingComma: boolean): ArrayExpression {
|
|
54
|
-
|
|
58
|
+
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._UpdateArrayExpression1(global.context, passNode(original), nodeType, passNodeArray(elements), elements.length, trailingComma))
|
|
59
|
+
result.setChildrenParentPtr()
|
|
60
|
+
return result
|
|
55
61
|
}
|
|
56
62
|
get elements(): readonly Expression[] {
|
|
57
63
|
return unpackNodeArray(global.generatedEs2panda._ArrayExpressionElements(global.context, this.peer))
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen
|
|
18
|
-
* es2panda 6f5e9d7d520d1f88dd3dedf2aa32bc86329d980a(2025-06-26) sdk v1.5.0-dev.34166
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
import {
|
|
@@ -38,19 +37,38 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
38
37
|
import { Expression } from "./Expression"
|
|
39
38
|
import { ScriptFunction } from "./ScriptFunction"
|
|
40
39
|
import { TypeNode } from "./TypeNode"
|
|
40
|
+
|
|
41
41
|
export class ArrowFunctionExpression extends Expression {
|
|
42
42
|
constructor(pointer: KNativePointer) {
|
|
43
43
|
assertValidPeer(pointer, 0)
|
|
44
44
|
super(pointer)
|
|
45
45
|
}
|
|
46
|
-
static createArrowFunctionExpression(func?: ScriptFunction): ArrowFunctionExpression {
|
|
47
|
-
|
|
46
|
+
static createArrowFunctionExpression(func?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
47
|
+
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression(global.context, passNode(func)))
|
|
48
|
+
if (annotations)
|
|
49
|
+
{
|
|
50
|
+
result.setAnnotations(annotations)
|
|
51
|
+
}
|
|
52
|
+
result.setChildrenParentPtr()
|
|
53
|
+
return result
|
|
48
54
|
}
|
|
49
|
-
static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction): ArrowFunctionExpression {
|
|
50
|
-
|
|
55
|
+
static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
56
|
+
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression(global.context, passNode(original), passNode(func)))
|
|
57
|
+
if (annotations)
|
|
58
|
+
{
|
|
59
|
+
result.setAnnotations(annotations)
|
|
60
|
+
}
|
|
61
|
+
result.setChildrenParentPtr()
|
|
62
|
+
return result
|
|
51
63
|
}
|
|
52
|
-
static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression): ArrowFunctionExpression {
|
|
53
|
-
|
|
64
|
+
static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
65
|
+
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression1(global.context, passNode(original), passNode(other)))
|
|
66
|
+
if (annotations)
|
|
67
|
+
{
|
|
68
|
+
result.setAnnotations(annotations)
|
|
69
|
+
}
|
|
70
|
+
result.setChildrenParentPtr()
|
|
71
|
+
return result
|
|
54
72
|
}
|
|
55
73
|
get function(): ScriptFunction | undefined {
|
|
56
74
|
return unpackNode(global.generatedEs2panda._ArrowFunctionExpressionFunction(global.context, this.peer))
|