From 16107a98f4f29692134194867652cb1dfa9735e7 Mon Sep 17 00:00:00 2001 From: "evgeniy.generalov" Date: Tue, 22 Jul 2025 20:08:19 +0300 Subject: [PATCH 1/2] Js doc info --- .../libarkts/native/src/generated/bridges.cc | 281 +++++++++++++++++- .../libarkts/src/generated/Es2pandaEnums.ts | 99 +++--- .../src/generated/Es2pandaNativeModule.ts | 81 +++++ ui2abc/libarkts/src/generated/index.ts | 1 + .../src/generated/peers/AnnotatedAstNode.ts | 3 +- .../generated/peers/AnnotatedExpression.ts | 3 +- .../src/generated/peers/AnnotatedStatement.ts | 3 +- .../generated/peers/AnnotationDeclaration.ts | 3 +- .../src/generated/peers/AnnotationUsage.ts | 3 +- .../src/generated/peers/ArkTsConfig.ts | 3 +- .../src/generated/peers/ArrayExpression.ts | 3 +- .../peers/ArrowFunctionExpression.ts | 12 +- .../src/generated/peers/AssertStatement.ts | 3 +- .../generated/peers/AssignmentExpression.ts | 3 +- .../libarkts/src/generated/peers/AstDumper.ts | 3 +- .../src/generated/peers/AstVerifier.ts | 3 +- .../src/generated/peers/AstVisitor.ts | 3 +- .../src/generated/peers/AwaitExpression.ts | 3 +- .../src/generated/peers/BigIntLiteral.ts | 3 +- .../src/generated/peers/BinaryExpression.ts | 3 +- .../src/generated/peers/BindingProps.ts | 3 +- .../src/generated/peers/BlockExpression.ts | 3 +- .../src/generated/peers/BlockStatement.ts | 3 +- .../src/generated/peers/BooleanLiteral.ts | 3 +- .../src/generated/peers/BreakStatement.ts | 3 +- .../src/generated/peers/CallExpression.ts | 3 +- .../src/generated/peers/CatchClause.ts | 3 +- .../src/generated/peers/ChainExpression.ts | 3 +- .../src/generated/peers/CharLiteral.ts | 3 +- .../src/generated/peers/ClassDeclaration.ts | 3 +- .../src/generated/peers/ClassDefinition.ts | 12 +- .../src/generated/peers/ClassElement.ts | 3 +- .../src/generated/peers/ClassExpression.ts | 3 +- .../src/generated/peers/ClassProperty.ts | 12 +- .../src/generated/peers/ClassStaticBlock.ts | 3 +- .../libarkts/src/generated/peers/CodeGen.ts | 3 +- .../generated/peers/ConditionalExpression.ts | 3 +- .../src/generated/peers/ContinueStatement.ts | 3 +- .../src/generated/peers/DebuggerStatement.ts | 3 +- .../src/generated/peers/Declaration.ts | 3 +- .../libarkts/src/generated/peers/Decorator.ts | 3 +- .../src/generated/peers/DiagnosticInfo.ts | 3 +- .../generated/peers/DirectEvalExpression.ts | 3 +- .../src/generated/peers/DoWhileStatement.ts | 3 +- .../src/generated/peers/DynamicImportData.ts | 3 +- .../src/generated/peers/ETSClassLiteral.ts | 3 +- .../src/generated/peers/ETSFunctionType.ts | 3 +- .../generated/peers/ETSImportDeclaration.ts | 3 +- .../src/generated/peers/ETSIntrinsicNode.ts | 3 +- .../src/generated/peers/ETSKeyofType.ts | 3 +- .../libarkts/src/generated/peers/ETSModule.ts | 12 +- .../peers/ETSNewArrayInstanceExpression.ts | 3 +- .../peers/ETSNewClassInstanceExpression.ts | 3 +- .../ETSNewMultiDimArrayInstanceExpression.ts | 3 +- .../src/generated/peers/ETSNullType.ts | 3 +- .../generated/peers/ETSPackageDeclaration.ts | 3 +- .../generated/peers/ETSParameterExpression.ts | 3 +- .../src/generated/peers/ETSPrimitiveType.ts | 3 +- .../generated/peers/ETSReExportDeclaration.ts | 3 +- .../generated/peers/ETSStringLiteralType.ts | 3 +- .../generated/peers/ETSStructDeclaration.ts | 3 +- .../libarkts/src/generated/peers/ETSTuple.ts | 3 +- .../src/generated/peers/ETSTypeReference.ts | 3 +- .../generated/peers/ETSTypeReferencePart.ts | 3 +- .../src/generated/peers/ETSUndefinedType.ts | 3 +- .../src/generated/peers/ETSUnionType.ts | 3 +- .../src/generated/peers/ETSWildcardType.ts | 3 +- .../src/generated/peers/EmptyStatement.ts | 3 +- .../src/generated/peers/ErrorLogger.ts | 3 +- .../generated/peers/ExportAllDeclaration.ts | 3 +- .../peers/ExportDefaultDeclaration.ts | 3 +- .../generated/peers/ExportNamedDeclaration.ts | 3 +- .../src/generated/peers/ExportSpecifier.ts | 3 +- .../src/generated/peers/Expression.ts | 3 +- .../generated/peers/ExpressionStatement.ts | 3 +- .../src/generated/peers/ForInStatement.ts | 3 +- .../src/generated/peers/ForOfStatement.ts | 3 +- .../src/generated/peers/ForUpdateStatement.ts | 3 +- .../src/generated/peers/FunctionDecl.ts | 3 +- .../generated/peers/FunctionDeclaration.ts | 12 +- .../src/generated/peers/FunctionExpression.ts | 3 +- .../src/generated/peers/FunctionSignature.ts | 3 +- ui2abc/libarkts/src/generated/peers/IRNode.ts | 3 +- .../src/generated/peers/Identifier.ts | 3 +- .../src/generated/peers/IfStatement.ts | 3 +- .../src/generated/peers/ImportDeclaration.ts | 3 +- .../generated/peers/ImportDefaultSpecifier.ts | 3 +- .../src/generated/peers/ImportExpression.ts | 3 +- .../peers/ImportNamespaceSpecifier.ts | 3 +- .../src/generated/peers/ImportSource.ts | 3 +- .../src/generated/peers/ImportSpecifier.ts | 3 +- .../libarkts/src/generated/peers/IndexInfo.ts | 3 +- .../src/generated/peers/InterfaceDecl.ts | 3 +- .../libarkts/src/generated/peers/JsDocInfo.ts | 42 +++ .../libarkts/src/generated/peers/LabelPair.ts | 3 +- .../src/generated/peers/LabelledStatement.ts | 3 +- .../libarkts/src/generated/peers/Literal.ts | 3 +- .../src/generated/peers/LoopStatement.ts | 3 +- .../peers/MaybeOptionalExpression.ts | 3 +- .../src/generated/peers/MemberExpression.ts | 3 +- .../src/generated/peers/MetaProperty.ts | 3 +- .../src/generated/peers/MethodDefinition.ts | 3 +- .../libarkts/src/generated/peers/NamedType.ts | 3 +- .../src/generated/peers/NewExpression.ts | 3 +- .../src/generated/peers/NullLiteral.ts | 3 +- .../src/generated/peers/NumberLiteral.ts | 3 +- .../src/generated/peers/ObjectDescriptor.ts | 3 +- .../src/generated/peers/ObjectExpression.ts | 3 +- .../src/generated/peers/OmittedExpression.ts | 3 +- .../src/generated/peers/OpaqueTypeNode.ts | 3 +- .../generated/peers/OverloadDeclaration.ts | 3 +- .../peers/PrefixAssertionExpression.ts | 3 +- .../libarkts/src/generated/peers/Program.ts | 3 +- .../libarkts/src/generated/peers/Property.ts | 3 +- .../src/generated/peers/RegExpLiteral.ts | 3 +- .../src/generated/peers/ReturnStatement.ts | 3 +- .../src/generated/peers/ScopeFindResult.ts | 3 +- .../src/generated/peers/ScriptFunction.ts | 12 +- .../src/generated/peers/ScriptFunctionData.ts | 3 +- .../src/generated/peers/SequenceExpression.ts | 3 +- .../src/generated/peers/SignatureInfo.ts | 3 +- .../src/generated/peers/SourcePosition.ts | 3 +- .../src/generated/peers/SourceRange.ts | 3 +- .../src/generated/peers/SpreadElement.ts | 3 +- .../libarkts/src/generated/peers/SrcDumper.ts | 3 +- .../libarkts/src/generated/peers/Statement.ts | 3 +- .../src/generated/peers/StringLiteral.ts | 3 +- .../src/generated/peers/SuggestionInfo.ts | 3 +- .../src/generated/peers/SuperExpression.ts | 3 +- .../generated/peers/SwitchCaseStatement.ts | 3 +- .../src/generated/peers/SwitchStatement.ts | 3 +- .../src/generated/peers/TSAnyKeyword.ts | 3 +- .../src/generated/peers/TSArrayType.ts | 3 +- .../src/generated/peers/TSAsExpression.ts | 3 +- .../src/generated/peers/TSBigintKeyword.ts | 3 +- .../src/generated/peers/TSBooleanKeyword.ts | 3 +- .../src/generated/peers/TSClassImplements.ts | 3 +- .../src/generated/peers/TSConditionalType.ts | 3 +- .../src/generated/peers/TSConstructorType.ts | 3 +- .../src/generated/peers/TSEnumDeclaration.ts | 3 +- .../src/generated/peers/TSEnumMember.ts | 3 +- .../peers/TSExternalModuleReference.ts | 3 +- .../src/generated/peers/TSFunctionType.ts | 3 +- .../peers/TSImportEqualsDeclaration.ts | 3 +- .../src/generated/peers/TSImportType.ts | 3 +- .../src/generated/peers/TSIndexSignature.ts | 3 +- .../generated/peers/TSIndexedAccessType.ts | 3 +- .../src/generated/peers/TSInferType.ts | 3 +- .../src/generated/peers/TSInterfaceBody.ts | 3 +- .../generated/peers/TSInterfaceDeclaration.ts | 12 +- .../generated/peers/TSInterfaceHeritage.ts | 3 +- .../src/generated/peers/TSIntersectionType.ts | 3 +- .../src/generated/peers/TSLiteralType.ts | 3 +- .../src/generated/peers/TSMappedType.ts | 3 +- .../src/generated/peers/TSMethodSignature.ts | 3 +- .../src/generated/peers/TSModuleBlock.ts | 3 +- .../generated/peers/TSModuleDeclaration.ts | 3 +- .../src/generated/peers/TSNamedTupleMember.ts | 3 +- .../src/generated/peers/TSNeverKeyword.ts | 3 +- .../generated/peers/TSNonNullExpression.ts | 3 +- .../src/generated/peers/TSNullKeyword.ts | 3 +- .../src/generated/peers/TSNumberKeyword.ts | 3 +- .../src/generated/peers/TSObjectKeyword.ts | 3 +- .../generated/peers/TSParameterProperty.ts | 3 +- .../generated/peers/TSParenthesizedType.ts | 3 +- .../generated/peers/TSPropertySignature.ts | 3 +- .../src/generated/peers/TSQualifiedName.ts | 3 +- .../generated/peers/TSSignatureDeclaration.ts | 3 +- .../src/generated/peers/TSStringKeyword.ts | 3 +- .../src/generated/peers/TSThisType.ts | 3 +- .../src/generated/peers/TSTupleType.ts | 3 +- .../generated/peers/TSTypeAliasDeclaration.ts | 12 +- .../src/generated/peers/TSTypeAssertion.ts | 3 +- .../src/generated/peers/TSTypeLiteral.ts | 3 +- .../src/generated/peers/TSTypeOperator.ts | 3 +- .../src/generated/peers/TSTypeParameter.ts | 3 +- .../peers/TSTypeParameterDeclaration.ts | 3 +- .../peers/TSTypeParameterInstantiation.ts | 3 +- .../src/generated/peers/TSTypePredicate.ts | 3 +- .../src/generated/peers/TSTypeQuery.ts | 3 +- .../src/generated/peers/TSTypeReference.ts | 3 +- .../src/generated/peers/TSUndefinedKeyword.ts | 3 +- .../src/generated/peers/TSUnionType.ts | 3 +- .../src/generated/peers/TSUnknownKeyword.ts | 3 +- .../src/generated/peers/TSVoidKeyword.ts | 3 +- .../peers/TaggedTemplateExpression.ts | 3 +- .../src/generated/peers/TemplateElement.ts | 3 +- .../src/generated/peers/TemplateLiteral.ts | 3 +- .../src/generated/peers/ThisExpression.ts | 3 +- .../src/generated/peers/ThrowStatement.ts | 3 +- .../src/generated/peers/TryStatement.ts | 3 +- .../libarkts/src/generated/peers/TypeNode.ts | 3 +- .../src/generated/peers/TypedAstNode.ts | 3 +- .../src/generated/peers/TypedStatement.ts | 3 +- .../src/generated/peers/TypeofExpression.ts | 3 +- .../src/generated/peers/UnaryExpression.ts | 3 +- .../src/generated/peers/UndefinedLiteral.ts | 3 +- .../src/generated/peers/UpdateExpression.ts | 3 +- ui2abc/libarkts/src/generated/peers/VReg.ts | 3 +- .../src/generated/peers/ValidationInfo.ts | 3 +- .../generated/peers/VariableDeclaration.ts | 12 +- .../src/generated/peers/VariableDeclarator.ts | 3 +- .../generated/peers/VerificationContext.ts | 3 +- .../src/generated/peers/VerifierMessage.ts | 3 +- .../src/generated/peers/WhileStatement.ts | 3 +- .../src/generated/peers/YieldExpression.ts | 3 +- 206 files changed, 936 insertions(+), 252 deletions(-) create mode 100644 ui2abc/libarkts/src/generated/peers/JsDocInfo.ts diff --git a/ui2abc/libarkts/native/src/generated/bridges.cc b/ui2abc/libarkts/native/src/generated/bridges.cc index 9c46c866d..f29078ddb 100644 --- a/ui2abc/libarkts/native/src/generated/bridges.cc +++ b/ui2abc/libarkts/native/src/generated/bridges.cc @@ -16,7 +16,7 @@ #include /* - * THIS FILE IS AUTOGENERATED BY arktscgen v2.1.9-arktscgen-8. DO NOT EDIT MANUALLY! + * THIS FILE IS AUTOGENERATED BY arktscgen v2.1.9+devel. DO NOT EDIT MANUALLY! * es2panda c962477266722fec18ce4851b5efccddada11561(2025-07-22) sdk v1.5.0-dev.38458 */ @@ -375,6 +375,37 @@ void impl_ClassPropertyAddAnnotations(KNativePointer context, KNativePointer rec } KOALA_INTEROP_V3(ClassPropertyAddAnnotations, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_ClassPropertyJsDocInformation(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ClassPropertyJsDocInformation(_context, _receiver, &length); + return StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(ClassPropertyJsDocInformation, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ClassPropertyJsDocInformationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ClassPropertyJsDocInformationConst(_context, _receiver, &length); + return (void*)StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(ClassPropertyJsDocInformationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ClassPropertySetJsDocInformation(KNativePointer context, KNativePointer receiver, KNativePointerArray jsDocInformation, KUInt jsDocInformationSequenceLength) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _jsDocInformation = reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); + GetImpl()->ClassPropertySetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + return ; +} +KOALA_INTEROP_V4(ClassPropertySetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateTSVoidKeyword(KNativePointer context) { const auto _context = reinterpret_cast(context); @@ -2059,6 +2090,37 @@ void impl_FunctionDeclarationAddAnnotations(KNativePointer context, KNativePoint } KOALA_INTEROP_V3(FunctionDeclarationAddAnnotations, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_FunctionDeclarationJsDocInformation(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->FunctionDeclarationJsDocInformation(_context, _receiver, &length); + return StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(FunctionDeclarationJsDocInformation, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_FunctionDeclarationJsDocInformationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->FunctionDeclarationJsDocInformationConst(_context, _receiver, &length); + return (void*)StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(FunctionDeclarationJsDocInformationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_FunctionDeclarationSetJsDocInformation(KNativePointer context, KNativePointer receiver, KNativePointerArray jsDocInformation, KUInt jsDocInformationSequenceLength) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _jsDocInformation = reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); + GetImpl()->FunctionDeclarationSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + return ; +} +KOALA_INTEROP_V4(FunctionDeclarationSetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateETSTypeReference(KNativePointer context, KNativePointer part) { const auto _context = reinterpret_cast(context); @@ -2722,6 +2784,37 @@ void impl_TSInterfaceDeclarationAddAnnotations(KNativePointer context, KNativePo } KOALA_INTEROP_V3(TSInterfaceDeclarationAddAnnotations, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_TSInterfaceDeclarationJsDocInformation(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->TSInterfaceDeclarationJsDocInformation(_context, _receiver, &length); + return StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(TSInterfaceDeclarationJsDocInformation, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_TSInterfaceDeclarationJsDocInformationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->TSInterfaceDeclarationJsDocInformationConst(_context, _receiver, &length); + return (void*)StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(TSInterfaceDeclarationJsDocInformationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_TSInterfaceDeclarationSetJsDocInformation(KNativePointer context, KNativePointer receiver, KNativePointerArray jsDocInformation, KUInt jsDocInformationSequenceLength) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _jsDocInformation = reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); + GetImpl()->TSInterfaceDeclarationSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + return ; +} +KOALA_INTEROP_V4(TSInterfaceDeclarationSetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateVariableDeclaration(KNativePointer context, KInt kind, KNativePointerArray declarators, KUInt declaratorsSequenceLength) { const auto _context = reinterpret_cast(context); @@ -2916,6 +3009,37 @@ void impl_VariableDeclarationAddAnnotations(KNativePointer context, KNativePoint } KOALA_INTEROP_V3(VariableDeclarationAddAnnotations, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_VariableDeclarationJsDocInformation(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->VariableDeclarationJsDocInformation(_context, _receiver, &length); + return StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(VariableDeclarationJsDocInformation, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_VariableDeclarationJsDocInformationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->VariableDeclarationJsDocInformationConst(_context, _receiver, &length); + return (void*)StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(VariableDeclarationJsDocInformationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_VariableDeclarationSetJsDocInformation(KNativePointer context, KNativePointer receiver, KNativePointerArray jsDocInformation, KUInt jsDocInformationSequenceLength) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _jsDocInformation = reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); + GetImpl()->VariableDeclarationSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + return ; +} +KOALA_INTEROP_V4(VariableDeclarationSetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateUndefinedLiteral(KNativePointer context) { const auto _context = reinterpret_cast(context); @@ -3675,6 +3799,37 @@ void impl_TSTypeAliasDeclarationSetTsTypeAnnotation(KNativePointer context, KNat } KOALA_INTEROP_V3(TSTypeAliasDeclarationSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_TSTypeAliasDeclarationJsDocInformation(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->TSTypeAliasDeclarationJsDocInformation(_context, _receiver, &length); + return StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(TSTypeAliasDeclarationJsDocInformation, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_TSTypeAliasDeclarationJsDocInformationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->TSTypeAliasDeclarationJsDocInformationConst(_context, _receiver, &length); + return (void*)StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(TSTypeAliasDeclarationJsDocInformationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_TSTypeAliasDeclarationSetJsDocInformation(KNativePointer context, KNativePointer receiver, KNativePointerArray jsDocInformation, KUInt jsDocInformationSequenceLength) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _jsDocInformation = reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); + GetImpl()->TSTypeAliasDeclarationSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + return ; +} +KOALA_INTEROP_V4(TSTypeAliasDeclarationSetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateDebuggerStatement(KNativePointer context) { const auto _context = reinterpret_cast(context); @@ -4443,6 +4598,37 @@ void impl_ScriptFunctionAddAnnotations(KNativePointer context, KNativePointer re } KOALA_INTEROP_V3(ScriptFunctionAddAnnotations, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_ScriptFunctionJsDocInformation(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ScriptFunctionJsDocInformation(_context, _receiver, &length); + return StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(ScriptFunctionJsDocInformation, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ScriptFunctionJsDocInformationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ScriptFunctionJsDocInformationConst(_context, _receiver, &length); + return (void*)StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(ScriptFunctionJsDocInformationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ScriptFunctionSetJsDocInformation(KNativePointer context, KNativePointer receiver, KNativePointerArray jsDocInformation, KUInt jsDocInformationSequenceLength) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _jsDocInformation = reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); + GetImpl()->ScriptFunctionSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + return ; +} +KOALA_INTEROP_V4(ScriptFunctionSetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateClassDefinition(KNativePointer context, KNativePointer ident, KNativePointer typeParams, KNativePointer superTypeParams, KNativePointerArray _implements, KUInt _implementsSequenceLength, KNativePointer ctor, KNativePointer superClass, KNativePointerArray body, KUInt bodySequenceLength, KInt modifiers, KInt flags) { const auto _context = reinterpret_cast(context); @@ -5252,6 +5438,37 @@ void impl_ClassDefinitionAddAnnotations(KNativePointer context, KNativePointer r } KOALA_INTEROP_V3(ClassDefinitionAddAnnotations, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_ClassDefinitionJsDocInformation(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ClassDefinitionJsDocInformation(_context, _receiver, &length); + return StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(ClassDefinitionJsDocInformation, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ClassDefinitionJsDocInformationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ClassDefinitionJsDocInformationConst(_context, _receiver, &length); + return (void*)StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(ClassDefinitionJsDocInformationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ClassDefinitionSetJsDocInformation(KNativePointer context, KNativePointer receiver, KNativePointerArray jsDocInformation, KUInt jsDocInformationSequenceLength) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _jsDocInformation = reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); + GetImpl()->ClassDefinitionSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + return ; +} +KOALA_INTEROP_V4(ClassDefinitionSetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateArrayExpression(KNativePointer context, KNativePointerArray elements, KUInt elementsSequenceLength) { const auto _context = reinterpret_cast(context); @@ -7875,6 +8092,37 @@ void impl_ETSModuleAddAnnotations(KNativePointer context, KNativePointer receive } KOALA_INTEROP_V3(ETSModuleAddAnnotations, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_ETSModuleJsDocInformation(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ETSModuleJsDocInformation(_context, _receiver, &length); + return StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(ETSModuleJsDocInformation, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ETSModuleJsDocInformationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ETSModuleJsDocInformationConst(_context, _receiver, &length); + return (void*)StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(ETSModuleJsDocInformationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ETSModuleSetJsDocInformation(KNativePointer context, KNativePointer receiver, KNativePointerArray jsDocInformation, KUInt jsDocInformationSequenceLength) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _jsDocInformation = reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); + GetImpl()->ETSModuleSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + return ; +} +KOALA_INTEROP_V4(ETSModuleSetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateMetaProperty(KNativePointer context, KInt kind) { const auto _context = reinterpret_cast(context); @@ -13872,6 +14120,37 @@ void impl_ArrowFunctionExpressionAddAnnotations(KNativePointer context, KNativeP } KOALA_INTEROP_V3(ArrowFunctionExpressionAddAnnotations, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_ArrowFunctionExpressionJsDocInformation(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ArrowFunctionExpressionJsDocInformation(_context, _receiver, &length); + return StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(ArrowFunctionExpressionJsDocInformation, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ArrowFunctionExpressionJsDocInformationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ArrowFunctionExpressionJsDocInformationConst(_context, _receiver, &length); + return (void*)StageArena::cloneVector(result, length); +} +KOALA_INTEROP_2(ArrowFunctionExpressionJsDocInformationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ArrowFunctionExpressionSetJsDocInformation(KNativePointer context, KNativePointer receiver, KNativePointerArray jsDocInformation, KUInt jsDocInformationSequenceLength) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _jsDocInformation = reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); + GetImpl()->ArrowFunctionExpressionSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + return ; +} +KOALA_INTEROP_V4(ArrowFunctionExpressionSetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateOmittedExpression(KNativePointer context) { const auto _context = reinterpret_cast(context); diff --git a/ui2abc/libarkts/src/generated/Es2pandaEnums.ts b/ui2abc/libarkts/src/generated/Es2pandaEnums.ts index 8885e9d2a..07de7de2a 100644 --- a/ui2abc/libarkts/src/generated/Es2pandaEnums.ts +++ b/ui2abc/libarkts/src/generated/Es2pandaEnums.ts @@ -484,53 +484,54 @@ export enum Es2pandaTokenType { TOKEN_TYPE_KEYW_NATIVE = 143, TOKEN_TYPE_KEYW_NEVER = 144, TOKEN_TYPE_KEYW_NEW = 145, - TOKEN_TYPE_KEYW_NON_NULLABLE = 146, - TOKEN_TYPE_LITERAL_NULL = 147, - TOKEN_TYPE_KEYW_NUMBER = 148, - TOKEN_TYPE_KEYW_OBJECT = 149, - TOKEN_TYPE_KEYW_BUILTIN_OBJECT = 150, - TOKEN_TYPE_KEYW_OF = 151, - TOKEN_TYPE_KEYW_FINAL = 152, - TOKEN_TYPE_KEYW_OUT = 153, - TOKEN_TYPE_KEYW_OVERLOAD = 154, - TOKEN_TYPE_KEYW_OVERRIDE = 155, - TOKEN_TYPE_KEYW_PACKAGE = 156, - TOKEN_TYPE_KEYW_INTERNAL = 157, - TOKEN_TYPE_KEYW_PRIVATE = 158, - TOKEN_TYPE_KEYW_PROTECTED = 159, - TOKEN_TYPE_KEYW_PUBLIC = 160, - TOKEN_TYPE_KEYW_READONLY = 161, - TOKEN_TYPE_KEYW_RETURN = 162, - TOKEN_TYPE_KEYW_REQUIRE = 163, - TOKEN_TYPE_KEYW_SET = 164, - TOKEN_TYPE_KEYW_SHORT = 165, - TOKEN_TYPE_KEYW_BUILTIN_SHORT = 166, - TOKEN_TYPE_KEYW_STATIC = 167, - TOKEN_TYPE_KEYW_STRING = 168, - TOKEN_TYPE_KEYW_BUILTIN_STRING = 169, - TOKEN_TYPE_KEYW_STRUCT = 170, - TOKEN_TYPE_KEYW_SUPER = 171, - TOKEN_TYPE_KEYW_SWITCH = 172, - TOKEN_TYPE_KEYW_TARGET = 173, - TOKEN_TYPE_KEYW_THIS = 174, - TOKEN_TYPE_KEYW_THROW = 175, - TOKEN_TYPE_LITERAL_TRUE = 176, - TOKEN_TYPE_KEYW_TRY = 177, - TOKEN_TYPE_KEYW_TYPE = 178, - TOKEN_TYPE_KEYW_TYPEOF = 179, - TOKEN_TYPE_KEYW_U8 = 180, - TOKEN_TYPE_KEYW_U16 = 181, - TOKEN_TYPE_KEYW_U32 = 182, - TOKEN_TYPE_KEYW_U64 = 183, - TOKEN_TYPE_KEYW_UNDEFINED = 184, - TOKEN_TYPE_KEYW_UNKNOWN = 185, - TOKEN_TYPE_KEYW_USIZE = 186, - TOKEN_TYPE_KEYW_V128 = 187, - TOKEN_TYPE_KEYW_VAR = 188, - TOKEN_TYPE_KEYW_VOID = 189, - TOKEN_TYPE_KEYW_WHILE = 190, - TOKEN_TYPE_KEYW_WITH = 191, - TOKEN_TYPE_KEYW_YIELD = 192, + TOKEN_TYPE_LITERAL_NULL = 146, + TOKEN_TYPE_KEYW_NUMBER = 147, + TOKEN_TYPE_KEYW_OBJECT = 148, + TOKEN_TYPE_KEYW_BUILTIN_OBJECT = 149, + TOKEN_TYPE_KEYW_OF = 150, + TOKEN_TYPE_KEYW_FINAL = 151, + TOKEN_TYPE_KEYW_OUT = 152, + TOKEN_TYPE_KEYW_OVERLOAD = 153, + TOKEN_TYPE_KEYW_OVERRIDE = 154, + TOKEN_TYPE_KEYW_PACKAGE = 155, + TOKEN_TYPE_KEYW_INTERNAL = 156, + TOKEN_TYPE_KEYW_PRIVATE = 157, + TOKEN_TYPE_KEYW_PROTECTED = 158, + TOKEN_TYPE_KEYW_PUBLIC = 159, + TOKEN_TYPE_KEYW_READONLY = 160, + TOKEN_TYPE_KEYW_RETURN = 161, + TOKEN_TYPE_KEYW_REQUIRE = 162, + TOKEN_TYPE_KEYW_SET = 163, + TOKEN_TYPE_KEYW_SHORT = 164, + TOKEN_TYPE_KEYW_BUILTIN_SHORT = 165, + TOKEN_TYPE_KEYW_STATIC = 166, + TOKEN_TYPE_KEYW_STRING = 167, + TOKEN_TYPE_KEYW_BUILTIN_STRING = 168, + TOKEN_TYPE_KEYW_STRUCT = 169, + TOKEN_TYPE_KEYW_SUPER = 170, + TOKEN_TYPE_KEYW_SWITCH = 171, + TOKEN_TYPE_KEYW_TARGET = 172, + TOKEN_TYPE_KEYW_THIS = 173, + TOKEN_TYPE_KEYW_THROW = 174, + TOKEN_TYPE_LITERAL_TRUE = 175, + TOKEN_TYPE_KEYW_TRY = 176, + TOKEN_TYPE_KEYW_TYPE = 177, + TOKEN_TYPE_KEYW_TYPEOF = 178, + TOKEN_TYPE_KEYW_U8 = 179, + TOKEN_TYPE_KEYW_U16 = 180, + TOKEN_TYPE_KEYW_U32 = 181, + TOKEN_TYPE_KEYW_U64 = 182, + TOKEN_TYPE_KEYW_UNDEFINED = 183, + TOKEN_TYPE_KEYW_UNKNOWN = 184, + TOKEN_TYPE_KEYW_USIZE = 185, + TOKEN_TYPE_KEYW_V128 = 186, + TOKEN_TYPE_KEYW_VAR = 187, + TOKEN_TYPE_KEYW_VOID = 188, + TOKEN_TYPE_KEYW_WHILE = 189, + TOKEN_TYPE_KEYW_WITH = 190, + TOKEN_TYPE_KEYW_YIELD = 191, + TOKEN_TYPE_JS_DOC_START = 192, + TOKEN_TYPE_JS_DOC_END = 193, TOKEN_TYPE_FIRST_PUNCTUATOR = 6, TOKEN_TYPE_FIRST_KEYW = 68 } @@ -1146,7 +1147,6 @@ export enum Es2pandaPropertySearchFlags { PROPERTY_SEARCH_FLAGS_DISALLOW_SYNTHETIC_METHOD_CREATION = 1024, PROPERTY_SEARCH_FLAGS_IS_SETTER = 2048, PROPERTY_SEARCH_FLAGS_IS_GETTER = 4096, - PROPERTY_SEARCH_FLAGS_IGNORE_OVERLOAD = 8192, PROPERTY_SEARCH_FLAGS_SEARCH_INSTANCE = 7, PROPERTY_SEARCH_FLAGS_SEARCH_STATIC = 56, PROPERTY_SEARCH_FLAGS_SEARCH_METHOD = 9, @@ -1301,8 +1301,7 @@ export enum Es2pandaTypeAnnotationParsingOptions { TYPE_ANNOTATION_PARSING_OPTIONS_ALLOW_DECLARATION_SITE_VARIANCE = 16384, TYPE_ANNOTATION_PARSING_OPTIONS_DISALLOW_UNION = 32768, TYPE_ANNOTATION_PARSING_OPTIONS_POTENTIAL_NEW_ARRAY = 65536, - TYPE_ANNOTATION_PARSING_OPTIONS_ANNOTATION_NOT_ALLOW = 131072, - TYPE_ANNOTATION_PARSING_OPTIONS_INSTANCEOF = 262144 + TYPE_ANNOTATION_PARSING_OPTIONS_ANNOTATION_NOT_ALLOW = 131072 } export enum Es2pandaScriptKind { SCRIPT_KIND_SCRIPT = 0, diff --git a/ui2abc/libarkts/src/generated/Es2pandaNativeModule.ts b/ui2abc/libarkts/src/generated/Es2pandaNativeModule.ts index e916648c7..966b99530 100644 --- a/ui2abc/libarkts/src/generated/Es2pandaNativeModule.ts +++ b/ui2abc/libarkts/src/generated/Es2pandaNativeModule.ts @@ -140,6 +140,15 @@ export class Es2pandaNativeModule { _ClassPropertyAddAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _ClassPropertyJsDocInformation(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ClassPropertyJsDocInformationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ClassPropertySetJsDocInformation(context: KNativePointer, receiver: KNativePointer, jsDocInformation: BigUint64Array, jsDocInformationSequenceLength: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateTSVoidKeyword(context: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -656,6 +665,15 @@ export class Es2pandaNativeModule { _FunctionDeclarationAddAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _FunctionDeclarationJsDocInformation(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _FunctionDeclarationJsDocInformationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _FunctionDeclarationSetJsDocInformation(context: KNativePointer, receiver: KNativePointer, jsDocInformation: BigUint64Array, jsDocInformationSequenceLength: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateETSTypeReference(context: KNativePointer, part: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -860,6 +878,15 @@ export class Es2pandaNativeModule { _TSInterfaceDeclarationAddAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _TSInterfaceDeclarationJsDocInformation(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSInterfaceDeclarationJsDocInformationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSInterfaceDeclarationSetJsDocInformation(context: KNativePointer, receiver: KNativePointer, jsDocInformation: BigUint64Array, jsDocInformationSequenceLength: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateVariableDeclaration(context: KNativePointer, kind: KInt, declarators: BigUint64Array, declaratorsSequenceLength: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -917,6 +944,15 @@ export class Es2pandaNativeModule { _VariableDeclarationAddAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _VariableDeclarationJsDocInformation(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _VariableDeclarationJsDocInformationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _VariableDeclarationSetJsDocInformation(context: KNativePointer, receiver: KNativePointer, jsDocInformation: BigUint64Array, jsDocInformationSequenceLength: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateUndefinedLiteral(context: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1148,6 +1184,15 @@ export class Es2pandaNativeModule { _TSTypeAliasDeclarationSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _TSTypeAliasDeclarationJsDocInformation(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSTypeAliasDeclarationJsDocInformationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSTypeAliasDeclarationSetJsDocInformation(context: KNativePointer, receiver: KNativePointer, jsDocInformation: BigUint64Array, jsDocInformationSequenceLength: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateDebuggerStatement(context: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1391,6 +1436,15 @@ export class Es2pandaNativeModule { _ScriptFunctionAddAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _ScriptFunctionJsDocInformation(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ScriptFunctionJsDocInformationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ScriptFunctionSetJsDocInformation(context: KNativePointer, receiver: KNativePointer, jsDocInformation: BigUint64Array, jsDocInformationSequenceLength: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateClassDefinition(context: KNativePointer, ident: KNativePointer, typeParams: KNativePointer, superTypeParams: KNativePointer, _implements: BigUint64Array, _implementsSequenceLength: KUInt, ctor: KNativePointer, superClass: KNativePointer, body: BigUint64Array, bodySequenceLength: KUInt, modifiers: KInt, flags: KInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1637,6 +1691,15 @@ export class Es2pandaNativeModule { _ClassDefinitionAddAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _ClassDefinitionJsDocInformation(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ClassDefinitionJsDocInformationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ClassDefinitionSetJsDocInformation(context: KNativePointer, receiver: KNativePointer, jsDocInformation: BigUint64Array, jsDocInformationSequenceLength: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateArrayExpression(context: KNativePointer, elements: BigUint64Array, elementsSequenceLength: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2456,6 +2519,15 @@ export class Es2pandaNativeModule { _ETSModuleAddAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _ETSModuleJsDocInformation(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ETSModuleJsDocInformationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ETSModuleSetJsDocInformation(context: KNativePointer, receiver: KNativePointer, jsDocInformation: BigUint64Array, jsDocInformationSequenceLength: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateMetaProperty(context: KNativePointer, kind: KInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -4307,6 +4379,15 @@ export class Es2pandaNativeModule { _ArrowFunctionExpressionAddAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _ArrowFunctionExpressionJsDocInformation(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ArrowFunctionExpressionJsDocInformationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ArrowFunctionExpressionSetJsDocInformation(context: KNativePointer, receiver: KNativePointer, jsDocInformation: BigUint64Array, jsDocInformationSequenceLength: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateOmittedExpression(context: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } diff --git a/ui2abc/libarkts/src/generated/index.ts b/ui2abc/libarkts/src/generated/index.ts index 4950f7628..ceff23716 100644 --- a/ui2abc/libarkts/src/generated/index.ts +++ b/ui2abc/libarkts/src/generated/index.ts @@ -18,6 +18,7 @@ */ +export * from "./peers/JsDocInfo" export * from "./peers/SourcePosition" export * from "./peers/SourceRange" export * from "./peers/LabelPair" diff --git a/ui2abc/libarkts/src/generated/peers/AnnotatedAstNode.ts b/ui2abc/libarkts/src/generated/peers/AnnotatedAstNode.ts index d19fd9421..08fb249e3 100644 --- a/ui2abc/libarkts/src/generated/peers/AnnotatedAstNode.ts +++ b/ui2abc/libarkts/src/generated/peers/AnnotatedAstNode.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/AnnotatedExpression.ts b/ui2abc/libarkts/src/generated/peers/AnnotatedExpression.ts index 88f50f8ec..96041e21d 100644 --- a/ui2abc/libarkts/src/generated/peers/AnnotatedExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/AnnotatedExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/ui2abc/libarkts/src/generated/peers/AnnotatedStatement.ts b/ui2abc/libarkts/src/generated/peers/AnnotatedStatement.ts index f56ae8a69..adadaa3d3 100644 --- a/ui2abc/libarkts/src/generated/peers/AnnotatedStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/AnnotatedStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/ui2abc/libarkts/src/generated/peers/AnnotationDeclaration.ts b/ui2abc/libarkts/src/generated/peers/AnnotationDeclaration.ts index 190d08aa5..e402d3f93 100644 --- a/ui2abc/libarkts/src/generated/peers/AnnotationDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/AnnotationDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" diff --git a/ui2abc/libarkts/src/generated/peers/AnnotationUsage.ts b/ui2abc/libarkts/src/generated/peers/AnnotationUsage.ts index f60c5ec3e..9a75f4abc 100644 --- a/ui2abc/libarkts/src/generated/peers/AnnotationUsage.ts +++ b/ui2abc/libarkts/src/generated/peers/AnnotationUsage.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ArkTsConfig.ts b/ui2abc/libarkts/src/generated/peers/ArkTsConfig.ts index 9fb847b0b..4d12fe518 100644 --- a/ui2abc/libarkts/src/generated/peers/ArkTsConfig.ts +++ b/ui2abc/libarkts/src/generated/peers/ArkTsConfig.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/ArrayExpression.ts b/ui2abc/libarkts/src/generated/peers/ArrayExpression.ts index 7efcb66a1..2847420f6 100644 --- a/ui2abc/libarkts/src/generated/peers/ArrayExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ArrayExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/ui2abc/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/ui2abc/libarkts/src/generated/peers/ArrowFunctionExpression.ts index 115f33659..fe4c3ae10 100644 --- a/ui2abc/libarkts/src/generated/peers/ArrowFunctionExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ArrowFunctionExpression.ts @@ -29,12 +29,14 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" import { Expression } from "./Expression" +import { JsDocInfo } from "./JsDocInfo" import { ScriptFunction } from "./ScriptFunction" import { TypeNode } from "./TypeNode" @@ -112,6 +114,14 @@ export class ArrowFunctionExpression extends Expression { global.generatedEs2panda._ArrowFunctionExpressionAddAnnotations(global.context, this.peer, passNode(annotations)) return this } + get jsDocInformation(): readonly JsDocInfo[] { + return acceptNativeObjectArrayResult(global.generatedEs2panda._ArrowFunctionExpressionJsDocInformation(global.context, this.peer), (peer: KNativePointer) => new JsDocInfo(peer)) + } + /** @deprecated */ + setJsDocInformation(jsDocInformation: readonly JsDocInfo[]): this { + global.generatedEs2panda._ArrowFunctionExpressionSetJsDocInformation(global.context, this.peer, passNodeArray(jsDocInformation), jsDocInformation.length) + return this + } protected readonly brandArrowFunctionExpression: undefined } export function isArrowFunctionExpression(node: object | undefined): node is ArrowFunctionExpression { diff --git a/ui2abc/libarkts/src/generated/peers/AssertStatement.ts b/ui2abc/libarkts/src/generated/peers/AssertStatement.ts index 82f05eb4f..bdfed70b3 100644 --- a/ui2abc/libarkts/src/generated/peers/AssertStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/AssertStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/AssignmentExpression.ts b/ui2abc/libarkts/src/generated/peers/AssignmentExpression.ts index 19b08b7ba..33500fc3e 100644 --- a/ui2abc/libarkts/src/generated/peers/AssignmentExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/AssignmentExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { CodeGen } from "./CodeGen" diff --git a/ui2abc/libarkts/src/generated/peers/AstDumper.ts b/ui2abc/libarkts/src/generated/peers/AstDumper.ts index 195ed40a3..8870ea5c5 100644 --- a/ui2abc/libarkts/src/generated/peers/AstDumper.ts +++ b/ui2abc/libarkts/src/generated/peers/AstDumper.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/AstVerifier.ts b/ui2abc/libarkts/src/generated/peers/AstVerifier.ts index c25f66d6d..9076a030b 100644 --- a/ui2abc/libarkts/src/generated/peers/AstVerifier.ts +++ b/ui2abc/libarkts/src/generated/peers/AstVerifier.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/AstVisitor.ts b/ui2abc/libarkts/src/generated/peers/AstVisitor.ts index ea1fb832a..704b30d20 100644 --- a/ui2abc/libarkts/src/generated/peers/AstVisitor.ts +++ b/ui2abc/libarkts/src/generated/peers/AstVisitor.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/AwaitExpression.ts b/ui2abc/libarkts/src/generated/peers/AwaitExpression.ts index 3a1ae941c..ed0b15975 100644 --- a/ui2abc/libarkts/src/generated/peers/AwaitExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/AwaitExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/BigIntLiteral.ts b/ui2abc/libarkts/src/generated/peers/BigIntLiteral.ts index 638cf0212..cdc3b4d12 100644 --- a/ui2abc/libarkts/src/generated/peers/BigIntLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/BigIntLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/BinaryExpression.ts b/ui2abc/libarkts/src/generated/peers/BinaryExpression.ts index b009c982c..ce33f7dcc 100644 --- a/ui2abc/libarkts/src/generated/peers/BinaryExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/BinaryExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { CodeGen } from "./CodeGen" diff --git a/ui2abc/libarkts/src/generated/peers/BindingProps.ts b/ui2abc/libarkts/src/generated/peers/BindingProps.ts index f401c83d3..47be3e5d7 100644 --- a/ui2abc/libarkts/src/generated/peers/BindingProps.ts +++ b/ui2abc/libarkts/src/generated/peers/BindingProps.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/BlockExpression.ts b/ui2abc/libarkts/src/generated/peers/BlockExpression.ts index 213a580e1..4cbf5e7ee 100644 --- a/ui2abc/libarkts/src/generated/peers/BlockExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/BlockExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/BlockStatement.ts b/ui2abc/libarkts/src/generated/peers/BlockStatement.ts index 6237ccda5..95c81916f 100644 --- a/ui2abc/libarkts/src/generated/peers/BlockStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/BlockStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/BooleanLiteral.ts b/ui2abc/libarkts/src/generated/peers/BooleanLiteral.ts index 1f60295f1..dbcc650ce 100644 --- a/ui2abc/libarkts/src/generated/peers/BooleanLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/BooleanLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/BreakStatement.ts b/ui2abc/libarkts/src/generated/peers/BreakStatement.ts index 915b69096..cd7d4e07a 100644 --- a/ui2abc/libarkts/src/generated/peers/BreakStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/BreakStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/CallExpression.ts b/ui2abc/libarkts/src/generated/peers/CallExpression.ts index 64682c48e..812c44e67 100644 --- a/ui2abc/libarkts/src/generated/peers/CallExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/CallExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { BlockStatement } from "./BlockStatement" diff --git a/ui2abc/libarkts/src/generated/peers/CatchClause.ts b/ui2abc/libarkts/src/generated/peers/CatchClause.ts index 557f53c96..070cd0a07 100644 --- a/ui2abc/libarkts/src/generated/peers/CatchClause.ts +++ b/ui2abc/libarkts/src/generated/peers/CatchClause.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { BlockStatement } from "./BlockStatement" diff --git a/ui2abc/libarkts/src/generated/peers/ChainExpression.ts b/ui2abc/libarkts/src/generated/peers/ChainExpression.ts index 8b1287a5a..31a3ca74e 100644 --- a/ui2abc/libarkts/src/generated/peers/ChainExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ChainExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { CodeGen } from "./CodeGen" diff --git a/ui2abc/libarkts/src/generated/peers/CharLiteral.ts b/ui2abc/libarkts/src/generated/peers/CharLiteral.ts index 15d8ba059..0ac566bad 100644 --- a/ui2abc/libarkts/src/generated/peers/CharLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/CharLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ClassDeclaration.ts b/ui2abc/libarkts/src/generated/peers/ClassDeclaration.ts index 08c1b6206..a195767ec 100644 --- a/ui2abc/libarkts/src/generated/peers/ClassDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/ClassDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ClassDefinition } from "./ClassDefinition" diff --git a/ui2abc/libarkts/src/generated/peers/ClassDefinition.ts b/ui2abc/libarkts/src/generated/peers/ClassDefinition.ts index f47d62363..30027077d 100644 --- a/ui2abc/libarkts/src/generated/peers/ClassDefinition.ts +++ b/ui2abc/libarkts/src/generated/peers/ClassDefinition.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" @@ -39,6 +40,7 @@ import { Es2pandaClassDefinitionModifiers } from "./../Es2pandaEnums" import { Es2pandaModifierFlags } from "./../Es2pandaEnums" import { Expression } from "./Expression" import { Identifier } from "./Identifier" +import { JsDocInfo } from "./JsDocInfo" import { MethodDefinition } from "./MethodDefinition" import { TSClassImplements } from "./TSClassImplements" import { TSEnumDeclaration } from "./TSEnumDeclaration" @@ -348,6 +350,14 @@ export class ClassDefinition extends TypedAstNode { global.generatedEs2panda._ClassDefinitionAddAnnotations(global.context, this.peer, passNode(annotations)) return this } + get jsDocInformation(): readonly JsDocInfo[] { + return acceptNativeObjectArrayResult(global.generatedEs2panda._ClassDefinitionJsDocInformation(global.context, this.peer), (peer: KNativePointer) => new JsDocInfo(peer)) + } + /** @deprecated */ + setJsDocInformation(jsDocInformation: readonly JsDocInfo[]): this { + global.generatedEs2panda._ClassDefinitionSetJsDocInformation(global.context, this.peer, passNodeArray(jsDocInformation), jsDocInformation.length) + return this + } protected readonly brandClassDefinition: undefined } export function isClassDefinition(node: object | undefined): node is ClassDefinition { diff --git a/ui2abc/libarkts/src/generated/peers/ClassElement.ts b/ui2abc/libarkts/src/generated/peers/ClassElement.ts index cc141aad1..5c6b9baff 100644 --- a/ui2abc/libarkts/src/generated/peers/ClassElement.ts +++ b/ui2abc/libarkts/src/generated/peers/ClassElement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Decorator } from "./Decorator" diff --git a/ui2abc/libarkts/src/generated/peers/ClassExpression.ts b/ui2abc/libarkts/src/generated/peers/ClassExpression.ts index 9be7f182f..613696bfd 100644 --- a/ui2abc/libarkts/src/generated/peers/ClassExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ClassExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ClassDefinition } from "./ClassDefinition" diff --git a/ui2abc/libarkts/src/generated/peers/ClassProperty.ts b/ui2abc/libarkts/src/generated/peers/ClassProperty.ts index 9489ec7d4..b924c0c57 100644 --- a/ui2abc/libarkts/src/generated/peers/ClassProperty.ts +++ b/ui2abc/libarkts/src/generated/peers/ClassProperty.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" @@ -37,6 +38,7 @@ import { ClassElement } from "./ClassElement" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" import { Es2pandaModifierFlags } from "./../Es2pandaEnums" import { Expression } from "./Expression" +import { JsDocInfo } from "./JsDocInfo" import { TypeNode } from "./TypeNode" export class ClassProperty extends ClassElement { @@ -122,6 +124,14 @@ export class ClassProperty extends ClassElement { global.generatedEs2panda._ClassPropertyAddAnnotations(global.context, this.peer, passNode(annotations)) return this } + get jsDocInformation(): readonly JsDocInfo[] { + return acceptNativeObjectArrayResult(global.generatedEs2panda._ClassPropertyJsDocInformation(global.context, this.peer), (peer: KNativePointer) => new JsDocInfo(peer)) + } + /** @deprecated */ + setJsDocInformation(jsDocInformation: readonly JsDocInfo[]): this { + global.generatedEs2panda._ClassPropertySetJsDocInformation(global.context, this.peer, passNodeArray(jsDocInformation), jsDocInformation.length) + return this + } protected readonly brandClassProperty: undefined } export function isClassProperty(node: object | undefined): node is ClassProperty { diff --git a/ui2abc/libarkts/src/generated/peers/ClassStaticBlock.ts b/ui2abc/libarkts/src/generated/peers/ClassStaticBlock.ts index 2f6dbf32c..6c35a7656 100644 --- a/ui2abc/libarkts/src/generated/peers/ClassStaticBlock.ts +++ b/ui2abc/libarkts/src/generated/peers/ClassStaticBlock.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" diff --git a/ui2abc/libarkts/src/generated/peers/CodeGen.ts b/ui2abc/libarkts/src/generated/peers/CodeGen.ts index 4272a4ef4..a7cb3e775 100644 --- a/ui2abc/libarkts/src/generated/peers/CodeGen.ts +++ b/ui2abc/libarkts/src/generated/peers/CodeGen.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/ConditionalExpression.ts b/ui2abc/libarkts/src/generated/peers/ConditionalExpression.ts index 40b25ca3a..ae763ded2 100644 --- a/ui2abc/libarkts/src/generated/peers/ConditionalExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ConditionalExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ContinueStatement.ts b/ui2abc/libarkts/src/generated/peers/ContinueStatement.ts index 6dfb1eb02..f4d8fd068 100644 --- a/ui2abc/libarkts/src/generated/peers/ContinueStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/ContinueStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/DebuggerStatement.ts b/ui2abc/libarkts/src/generated/peers/DebuggerStatement.ts index 51eb8f76f..5f878794a 100644 --- a/ui2abc/libarkts/src/generated/peers/DebuggerStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/DebuggerStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/Declaration.ts b/ui2abc/libarkts/src/generated/peers/Declaration.ts index e4dd0dee2..c2360bace 100644 --- a/ui2abc/libarkts/src/generated/peers/Declaration.ts +++ b/ui2abc/libarkts/src/generated/peers/Declaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/Decorator.ts b/ui2abc/libarkts/src/generated/peers/Decorator.ts index 12c48160d..e302818cc 100644 --- a/ui2abc/libarkts/src/generated/peers/Decorator.ts +++ b/ui2abc/libarkts/src/generated/peers/Decorator.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/DiagnosticInfo.ts b/ui2abc/libarkts/src/generated/peers/DiagnosticInfo.ts index 92984570c..bb42c7bf8 100644 --- a/ui2abc/libarkts/src/generated/peers/DiagnosticInfo.ts +++ b/ui2abc/libarkts/src/generated/peers/DiagnosticInfo.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/DirectEvalExpression.ts b/ui2abc/libarkts/src/generated/peers/DirectEvalExpression.ts index 8c0aa6dd5..a264db556 100644 --- a/ui2abc/libarkts/src/generated/peers/DirectEvalExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/DirectEvalExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { CallExpression } from "./CallExpression" diff --git a/ui2abc/libarkts/src/generated/peers/DoWhileStatement.ts b/ui2abc/libarkts/src/generated/peers/DoWhileStatement.ts index 6d24090c9..e1d298731 100644 --- a/ui2abc/libarkts/src/generated/peers/DoWhileStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/DoWhileStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/DynamicImportData.ts b/ui2abc/libarkts/src/generated/peers/DynamicImportData.ts index 83433099d..ed2088443 100644 --- a/ui2abc/libarkts/src/generated/peers/DynamicImportData.ts +++ b/ui2abc/libarkts/src/generated/peers/DynamicImportData.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/ETSClassLiteral.ts b/ui2abc/libarkts/src/generated/peers/ETSClassLiteral.ts index 272b295c4..ee053386d 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSClassLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSClassLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSFunctionType.ts b/ui2abc/libarkts/src/generated/peers/ETSFunctionType.ts index e24edcd3b..b81a59d42 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSFunctionType.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSFunctionType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" diff --git a/ui2abc/libarkts/src/generated/peers/ETSImportDeclaration.ts b/ui2abc/libarkts/src/generated/peers/ETSImportDeclaration.ts index ab09002a8..2c852e749 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSImportDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSImportDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSIntrinsicNode.ts b/ui2abc/libarkts/src/generated/peers/ETSIntrinsicNode.ts index 7db5af75e..d44462bfe 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSIntrinsicNode.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSIntrinsicNode.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSKeyofType.ts b/ui2abc/libarkts/src/generated/peers/ETSKeyofType.ts index 8132ab129..aaa2307cc 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSKeyofType.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSKeyofType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSModule.ts b/ui2abc/libarkts/src/generated/peers/ETSModule.ts index 8306fe2bd..8b9daf408 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSModule.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSModule.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" @@ -38,6 +39,7 @@ import { ClassDefinition } from "./ClassDefinition" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" import { Es2pandaModuleFlag } from "./../Es2pandaEnums" import { Identifier } from "./Identifier" +import { JsDocInfo } from "./JsDocInfo" import { Program } from "./Program" import { Statement } from "./Statement" import { extension_ETSModuleGetNamespaceFlag } from "./../../reexport-for-generated" @@ -121,6 +123,14 @@ export class ETSModule extends BlockStatement { global.generatedEs2panda._ETSModuleAddAnnotations(global.context, this.peer, passNode(annotations)) return this } + get jsDocInformation(): readonly JsDocInfo[] { + return acceptNativeObjectArrayResult(global.generatedEs2panda._ETSModuleJsDocInformation(global.context, this.peer), (peer: KNativePointer) => new JsDocInfo(peer)) + } + /** @deprecated */ + setJsDocInformation(jsDocInformation: readonly JsDocInfo[]): this { + global.generatedEs2panda._ETSModuleSetJsDocInformation(global.context, this.peer, passNodeArray(jsDocInformation), jsDocInformation.length) + return this + } getNamespaceFlag = extension_ETSModuleGetNamespaceFlag protected readonly brandETSModule: undefined } diff --git a/ui2abc/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts b/ui2abc/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts index d9243c1b5..bcef8c4c6 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts b/ui2abc/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts index 7622786ad..d276fb2cf 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts b/ui2abc/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts index 4c103a00b..032222018 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSNullType.ts b/ui2abc/libarkts/src/generated/peers/ETSNullType.ts index 7236feb2f..ec938ecf2 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSNullType.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSNullType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSPackageDeclaration.ts b/ui2abc/libarkts/src/generated/peers/ETSPackageDeclaration.ts index 0c0d5e684..cd932a8a7 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSPackageDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSPackageDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSParameterExpression.ts b/ui2abc/libarkts/src/generated/peers/ETSParameterExpression.ts index 8a6b642d2..2d95b7d88 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSParameterExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSParameterExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/ui2abc/libarkts/src/generated/peers/ETSPrimitiveType.ts b/ui2abc/libarkts/src/generated/peers/ETSPrimitiveType.ts index b53927a4a..a3d624186 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSPrimitiveType.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSPrimitiveType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSReExportDeclaration.ts b/ui2abc/libarkts/src/generated/peers/ETSReExportDeclaration.ts index 749f6ed54..99a18985c 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSReExportDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSReExportDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ETSImportDeclaration } from "./ETSImportDeclaration" diff --git a/ui2abc/libarkts/src/generated/peers/ETSStringLiteralType.ts b/ui2abc/libarkts/src/generated/peers/ETSStringLiteralType.ts index 55197d788..ba6a8c9b3 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSStringLiteralType.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSStringLiteralType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSStructDeclaration.ts b/ui2abc/libarkts/src/generated/peers/ETSStructDeclaration.ts index b24bfb9e0..4835888fa 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSStructDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSStructDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ClassDeclaration } from "./ClassDeclaration" diff --git a/ui2abc/libarkts/src/generated/peers/ETSTuple.ts b/ui2abc/libarkts/src/generated/peers/ETSTuple.ts index 9a39c2b27..52ba0a1bf 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSTuple.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSTuple.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSTypeReference.ts b/ui2abc/libarkts/src/generated/peers/ETSTypeReference.ts index e92d00ca8..a34b093a5 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSTypeReference.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSTypeReference.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ETSTypeReferencePart } from "./ETSTypeReferencePart" diff --git a/ui2abc/libarkts/src/generated/peers/ETSTypeReferencePart.ts b/ui2abc/libarkts/src/generated/peers/ETSTypeReferencePart.ts index f664c0377..fb887f8e3 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSTypeReferencePart.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSTypeReferencePart.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSUndefinedType.ts b/ui2abc/libarkts/src/generated/peers/ETSUndefinedType.ts index ded751887..c403641f0 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSUndefinedType.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSUndefinedType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ETSUnionType.ts b/ui2abc/libarkts/src/generated/peers/ETSUnionType.ts index 564831d04..df27f0196 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSUnionType.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSUnionType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" diff --git a/ui2abc/libarkts/src/generated/peers/ETSWildcardType.ts b/ui2abc/libarkts/src/generated/peers/ETSWildcardType.ts index e5aee3aab..90a23a270 100644 --- a/ui2abc/libarkts/src/generated/peers/ETSWildcardType.ts +++ b/ui2abc/libarkts/src/generated/peers/ETSWildcardType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ETSTypeReference } from "./ETSTypeReference" diff --git a/ui2abc/libarkts/src/generated/peers/EmptyStatement.ts b/ui2abc/libarkts/src/generated/peers/EmptyStatement.ts index 8b9a46b68..d1d6bcee1 100644 --- a/ui2abc/libarkts/src/generated/peers/EmptyStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/EmptyStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ErrorLogger.ts b/ui2abc/libarkts/src/generated/peers/ErrorLogger.ts index dc18c7ea1..d4366f9b4 100644 --- a/ui2abc/libarkts/src/generated/peers/ErrorLogger.ts +++ b/ui2abc/libarkts/src/generated/peers/ErrorLogger.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/ExportAllDeclaration.ts b/ui2abc/libarkts/src/generated/peers/ExportAllDeclaration.ts index e467b638d..ab62ff1e0 100644 --- a/ui2abc/libarkts/src/generated/peers/ExportAllDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/ExportAllDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ExportDefaultDeclaration.ts b/ui2abc/libarkts/src/generated/peers/ExportDefaultDeclaration.ts index 8af9cf0a6..1b80a8ca8 100644 --- a/ui2abc/libarkts/src/generated/peers/ExportDefaultDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/ExportDefaultDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ExportNamedDeclaration.ts b/ui2abc/libarkts/src/generated/peers/ExportNamedDeclaration.ts index 2a3a06646..25ddf9fff 100644 --- a/ui2abc/libarkts/src/generated/peers/ExportNamedDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/ExportNamedDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ExportSpecifier.ts b/ui2abc/libarkts/src/generated/peers/ExportSpecifier.ts index 64653af4f..bbc5da918 100644 --- a/ui2abc/libarkts/src/generated/peers/ExportSpecifier.ts +++ b/ui2abc/libarkts/src/generated/peers/ExportSpecifier.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/Expression.ts b/ui2abc/libarkts/src/generated/peers/Expression.ts index 5954f6633..da51d7ca9 100644 --- a/ui2abc/libarkts/src/generated/peers/Expression.ts +++ b/ui2abc/libarkts/src/generated/peers/Expression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/ui2abc/libarkts/src/generated/peers/ExpressionStatement.ts b/ui2abc/libarkts/src/generated/peers/ExpressionStatement.ts index d1d53fe6c..f5761ac18 100644 --- a/ui2abc/libarkts/src/generated/peers/ExpressionStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/ExpressionStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ForInStatement.ts b/ui2abc/libarkts/src/generated/peers/ForInStatement.ts index d2972fabf..b823713cc 100644 --- a/ui2abc/libarkts/src/generated/peers/ForInStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/ForInStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ForOfStatement.ts b/ui2abc/libarkts/src/generated/peers/ForOfStatement.ts index b8122758f..36b8ac077 100644 --- a/ui2abc/libarkts/src/generated/peers/ForOfStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/ForOfStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ForUpdateStatement.ts b/ui2abc/libarkts/src/generated/peers/ForUpdateStatement.ts index a19407775..e4c177731 100644 --- a/ui2abc/libarkts/src/generated/peers/ForUpdateStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/ForUpdateStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/FunctionDecl.ts b/ui2abc/libarkts/src/generated/peers/FunctionDecl.ts index 592c44126..159ada95b 100644 --- a/ui2abc/libarkts/src/generated/peers/FunctionDecl.ts +++ b/ui2abc/libarkts/src/generated/peers/FunctionDecl.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ScriptFunction } from "./ScriptFunction" diff --git a/ui2abc/libarkts/src/generated/peers/FunctionDeclaration.ts b/ui2abc/libarkts/src/generated/peers/FunctionDeclaration.ts index e4ec85397..75ceae698 100644 --- a/ui2abc/libarkts/src/generated/peers/FunctionDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/FunctionDeclaration.ts @@ -29,12 +29,14 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" import { Decorator } from "./Decorator" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" +import { JsDocInfo } from "./JsDocInfo" import { ScriptFunction } from "./ScriptFunction" import { Statement } from "./Statement" @@ -103,6 +105,14 @@ export class FunctionDeclaration extends Statement { global.generatedEs2panda._FunctionDeclarationAddAnnotations(global.context, this.peer, passNode(annotations)) return this } + get jsDocInformation(): readonly JsDocInfo[] { + return acceptNativeObjectArrayResult(global.generatedEs2panda._FunctionDeclarationJsDocInformation(global.context, this.peer), (peer: KNativePointer) => new JsDocInfo(peer)) + } + /** @deprecated */ + setJsDocInformation(jsDocInformation: readonly JsDocInfo[]): this { + global.generatedEs2panda._FunctionDeclarationSetJsDocInformation(global.context, this.peer, passNodeArray(jsDocInformation), jsDocInformation.length) + return this + } protected readonly brandFunctionDeclaration: undefined } export function isFunctionDeclaration(node: object | undefined): node is FunctionDeclaration { diff --git a/ui2abc/libarkts/src/generated/peers/FunctionExpression.ts b/ui2abc/libarkts/src/generated/peers/FunctionExpression.ts index f787c08b4..bc727111e 100644 --- a/ui2abc/libarkts/src/generated/peers/FunctionExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/FunctionExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/FunctionSignature.ts b/ui2abc/libarkts/src/generated/peers/FunctionSignature.ts index 71d59f047..c5453edfb 100644 --- a/ui2abc/libarkts/src/generated/peers/FunctionSignature.ts +++ b/ui2abc/libarkts/src/generated/peers/FunctionSignature.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/ui2abc/libarkts/src/generated/peers/IRNode.ts b/ui2abc/libarkts/src/generated/peers/IRNode.ts index 7de6aa46a..a1ac0bd9b 100644 --- a/ui2abc/libarkts/src/generated/peers/IRNode.ts +++ b/ui2abc/libarkts/src/generated/peers/IRNode.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/Identifier.ts b/ui2abc/libarkts/src/generated/peers/Identifier.ts index a31866a13..bf1f11b23 100644 --- a/ui2abc/libarkts/src/generated/peers/Identifier.ts +++ b/ui2abc/libarkts/src/generated/peers/Identifier.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/ui2abc/libarkts/src/generated/peers/IfStatement.ts b/ui2abc/libarkts/src/generated/peers/IfStatement.ts index cfc6498a7..5e40f0bae 100644 --- a/ui2abc/libarkts/src/generated/peers/IfStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/IfStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ImportDeclaration.ts b/ui2abc/libarkts/src/generated/peers/ImportDeclaration.ts index e993a8506..121e33a31 100644 --- a/ui2abc/libarkts/src/generated/peers/ImportDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/ImportDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ImportDefaultSpecifier.ts b/ui2abc/libarkts/src/generated/peers/ImportDefaultSpecifier.ts index d3d521102..fae4508b2 100644 --- a/ui2abc/libarkts/src/generated/peers/ImportDefaultSpecifier.ts +++ b/ui2abc/libarkts/src/generated/peers/ImportDefaultSpecifier.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ImportExpression.ts b/ui2abc/libarkts/src/generated/peers/ImportExpression.ts index 4134f90e9..e507e6ac8 100644 --- a/ui2abc/libarkts/src/generated/peers/ImportExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ImportExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts b/ui2abc/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts index 7bda46efc..293ed3c7c 100644 --- a/ui2abc/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts +++ b/ui2abc/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ImportSource.ts b/ui2abc/libarkts/src/generated/peers/ImportSource.ts index f3a7c1dfb..b868aa291 100644 --- a/ui2abc/libarkts/src/generated/peers/ImportSource.ts +++ b/ui2abc/libarkts/src/generated/peers/ImportSource.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/ImportSpecifier.ts b/ui2abc/libarkts/src/generated/peers/ImportSpecifier.ts index ce0210e95..ae8a73a7e 100644 --- a/ui2abc/libarkts/src/generated/peers/ImportSpecifier.ts +++ b/ui2abc/libarkts/src/generated/peers/ImportSpecifier.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/IndexInfo.ts b/ui2abc/libarkts/src/generated/peers/IndexInfo.ts index 82407f689..f34ef96a6 100644 --- a/ui2abc/libarkts/src/generated/peers/IndexInfo.ts +++ b/ui2abc/libarkts/src/generated/peers/IndexInfo.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/InterfaceDecl.ts b/ui2abc/libarkts/src/generated/peers/InterfaceDecl.ts index b08cfda5b..d7eae7bf3 100644 --- a/ui2abc/libarkts/src/generated/peers/InterfaceDecl.ts +++ b/ui2abc/libarkts/src/generated/peers/InterfaceDecl.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { TSInterfaceDeclaration } from "./TSInterfaceDeclaration" diff --git a/ui2abc/libarkts/src/generated/peers/JsDocInfo.ts b/ui2abc/libarkts/src/generated/peers/JsDocInfo.ts new file mode 100644 index 000000000..4a76ec40f --- /dev/null +++ b/ui2abc/libarkts/src/generated/peers/JsDocInfo.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY! + */ + +import { + global, + passNode, + passNodeArray, + unpackNonNullableNode, + unpackNode, + unpackNodeArray, + assertValidPeer, + AstNode, + KNativePointer, + nodeByType, + ArktsObject, + unpackString, + acceptNativeObjectArrayResult +} from "../../reexport-for-generated" + + +export class JsDocInfo extends ArktsObject { + constructor(pointer: KNativePointer) { + super(pointer) + } + protected readonly brandJsDocInfo: undefined +} diff --git a/ui2abc/libarkts/src/generated/peers/LabelPair.ts b/ui2abc/libarkts/src/generated/peers/LabelPair.ts index 4b472593c..69d26179e 100644 --- a/ui2abc/libarkts/src/generated/peers/LabelPair.ts +++ b/ui2abc/libarkts/src/generated/peers/LabelPair.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/LabelledStatement.ts b/ui2abc/libarkts/src/generated/peers/LabelledStatement.ts index e2a3dee67..7856a5b1c 100644 --- a/ui2abc/libarkts/src/generated/peers/LabelledStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/LabelledStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/Literal.ts b/ui2abc/libarkts/src/generated/peers/Literal.ts index 29fc4a793..92c9e78e3 100644 --- a/ui2abc/libarkts/src/generated/peers/Literal.ts +++ b/ui2abc/libarkts/src/generated/peers/Literal.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/ui2abc/libarkts/src/generated/peers/LoopStatement.ts b/ui2abc/libarkts/src/generated/peers/LoopStatement.ts index 8ff650bcd..4229a349e 100644 --- a/ui2abc/libarkts/src/generated/peers/LoopStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/LoopStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/ui2abc/libarkts/src/generated/peers/MaybeOptionalExpression.ts b/ui2abc/libarkts/src/generated/peers/MaybeOptionalExpression.ts index 0fea69d2f..9a1f52e9e 100644 --- a/ui2abc/libarkts/src/generated/peers/MaybeOptionalExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/MaybeOptionalExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/ui2abc/libarkts/src/generated/peers/MemberExpression.ts b/ui2abc/libarkts/src/generated/peers/MemberExpression.ts index e6bcbb484..3f46f614d 100644 --- a/ui2abc/libarkts/src/generated/peers/MemberExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/MemberExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { CodeGen } from "./CodeGen" diff --git a/ui2abc/libarkts/src/generated/peers/MetaProperty.ts b/ui2abc/libarkts/src/generated/peers/MetaProperty.ts index c78957259..d2054d073 100644 --- a/ui2abc/libarkts/src/generated/peers/MetaProperty.ts +++ b/ui2abc/libarkts/src/generated/peers/MetaProperty.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/MethodDefinition.ts b/ui2abc/libarkts/src/generated/peers/MethodDefinition.ts index 4e2d2eb86..3c5601c67 100644 --- a/ui2abc/libarkts/src/generated/peers/MethodDefinition.ts +++ b/ui2abc/libarkts/src/generated/peers/MethodDefinition.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" diff --git a/ui2abc/libarkts/src/generated/peers/NamedType.ts b/ui2abc/libarkts/src/generated/peers/NamedType.ts index 5412e6c2e..106ebc8c9 100644 --- a/ui2abc/libarkts/src/generated/peers/NamedType.ts +++ b/ui2abc/libarkts/src/generated/peers/NamedType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/NewExpression.ts b/ui2abc/libarkts/src/generated/peers/NewExpression.ts index 64d2d15ae..673307ab9 100644 --- a/ui2abc/libarkts/src/generated/peers/NewExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/NewExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/NullLiteral.ts b/ui2abc/libarkts/src/generated/peers/NullLiteral.ts index 55e3672c5..0f319dfdf 100644 --- a/ui2abc/libarkts/src/generated/peers/NullLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/NullLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/NumberLiteral.ts b/ui2abc/libarkts/src/generated/peers/NumberLiteral.ts index 0c1d7994e..0e3c92f8f 100644 --- a/ui2abc/libarkts/src/generated/peers/NumberLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/NumberLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ObjectDescriptor.ts b/ui2abc/libarkts/src/generated/peers/ObjectDescriptor.ts index f5425a8be..30fe2fd4b 100644 --- a/ui2abc/libarkts/src/generated/peers/ObjectDescriptor.ts +++ b/ui2abc/libarkts/src/generated/peers/ObjectDescriptor.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/ObjectExpression.ts b/ui2abc/libarkts/src/generated/peers/ObjectExpression.ts index 66096ebda..ab92011b3 100644 --- a/ui2abc/libarkts/src/generated/peers/ObjectExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ObjectExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/ui2abc/libarkts/src/generated/peers/OmittedExpression.ts b/ui2abc/libarkts/src/generated/peers/OmittedExpression.ts index 25ec68a63..e2136a430 100644 --- a/ui2abc/libarkts/src/generated/peers/OmittedExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/OmittedExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/OpaqueTypeNode.ts b/ui2abc/libarkts/src/generated/peers/OpaqueTypeNode.ts index 61afb1c95..98cc4110e 100644 --- a/ui2abc/libarkts/src/generated/peers/OpaqueTypeNode.ts +++ b/ui2abc/libarkts/src/generated/peers/OpaqueTypeNode.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/OverloadDeclaration.ts b/ui2abc/libarkts/src/generated/peers/OverloadDeclaration.ts index d74d27ced..0a91142ab 100644 --- a/ui2abc/libarkts/src/generated/peers/OverloadDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/OverloadDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" diff --git a/ui2abc/libarkts/src/generated/peers/PrefixAssertionExpression.ts b/ui2abc/libarkts/src/generated/peers/PrefixAssertionExpression.ts index 623f94c2a..9b65fd2ec 100644 --- a/ui2abc/libarkts/src/generated/peers/PrefixAssertionExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/PrefixAssertionExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/Program.ts b/ui2abc/libarkts/src/generated/peers/Program.ts index 34e8662a2..3bf08e0ca 100644 --- a/ui2abc/libarkts/src/generated/peers/Program.ts +++ b/ui2abc/libarkts/src/generated/peers/Program.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { BlockStatement } from "./BlockStatement" diff --git a/ui2abc/libarkts/src/generated/peers/Property.ts b/ui2abc/libarkts/src/generated/peers/Property.ts index 4a0217f8a..90640acdf 100644 --- a/ui2abc/libarkts/src/generated/peers/Property.ts +++ b/ui2abc/libarkts/src/generated/peers/Property.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/RegExpLiteral.ts b/ui2abc/libarkts/src/generated/peers/RegExpLiteral.ts index 487c83927..784afc950 100644 --- a/ui2abc/libarkts/src/generated/peers/RegExpLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/RegExpLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ReturnStatement.ts b/ui2abc/libarkts/src/generated/peers/ReturnStatement.ts index d78a700fd..b620abdfd 100644 --- a/ui2abc/libarkts/src/generated/peers/ReturnStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/ReturnStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ScopeFindResult.ts b/ui2abc/libarkts/src/generated/peers/ScopeFindResult.ts index 86792937a..97ee2e672 100644 --- a/ui2abc/libarkts/src/generated/peers/ScopeFindResult.ts +++ b/ui2abc/libarkts/src/generated/peers/ScopeFindResult.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/ScriptFunction.ts b/ui2abc/libarkts/src/generated/peers/ScriptFunction.ts index deeab37c0..e3329739c 100644 --- a/ui2abc/libarkts/src/generated/peers/ScriptFunction.ts +++ b/ui2abc/libarkts/src/generated/peers/ScriptFunction.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" @@ -38,6 +39,7 @@ import { Es2pandaScriptFunctionFlags } from "./../Es2pandaEnums" import { Expression } from "./Expression" import { FunctionSignature } from "./FunctionSignature" import { Identifier } from "./Identifier" +import { JsDocInfo } from "./JsDocInfo" import { ReturnStatement } from "./ReturnStatement" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { TypeNode } from "./TypeNode" @@ -284,6 +286,14 @@ export class ScriptFunction extends AstNode { global.generatedEs2panda._ScriptFunctionAddAnnotations(global.context, this.peer, passNode(annotations)) return this } + get jsDocInformation(): readonly JsDocInfo[] { + return acceptNativeObjectArrayResult(global.generatedEs2panda._ScriptFunctionJsDocInformation(global.context, this.peer), (peer: KNativePointer) => new JsDocInfo(peer)) + } + /** @deprecated */ + setJsDocInformation(jsDocInformation: readonly JsDocInfo[]): this { + global.generatedEs2panda._ScriptFunctionSetJsDocInformation(global.context, this.peer, passNodeArray(jsDocInformation), jsDocInformation.length) + return this + } getSignaturePointer = extension_ScriptFunctionGetSignaturePointer setSignaturePointer = extension_ScriptFunctionSetSignaturePointer getPreferredReturnTypePointer = extension_ScriptFunctionGetPreferredReturnTypePointer diff --git a/ui2abc/libarkts/src/generated/peers/ScriptFunctionData.ts b/ui2abc/libarkts/src/generated/peers/ScriptFunctionData.ts index 4745973aa..6fab6261c 100644 --- a/ui2abc/libarkts/src/generated/peers/ScriptFunctionData.ts +++ b/ui2abc/libarkts/src/generated/peers/ScriptFunctionData.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/SequenceExpression.ts b/ui2abc/libarkts/src/generated/peers/SequenceExpression.ts index dc97cded1..55cd43661 100644 --- a/ui2abc/libarkts/src/generated/peers/SequenceExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/SequenceExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/SignatureInfo.ts b/ui2abc/libarkts/src/generated/peers/SignatureInfo.ts index 7ea77fdce..e878f4bc4 100644 --- a/ui2abc/libarkts/src/generated/peers/SignatureInfo.ts +++ b/ui2abc/libarkts/src/generated/peers/SignatureInfo.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/SourcePosition.ts b/ui2abc/libarkts/src/generated/peers/SourcePosition.ts index fae7f0496..bfa83a10a 100644 --- a/ui2abc/libarkts/src/generated/peers/SourcePosition.ts +++ b/ui2abc/libarkts/src/generated/peers/SourcePosition.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/SourceRange.ts b/ui2abc/libarkts/src/generated/peers/SourceRange.ts index 1b388713b..cf33a4989 100644 --- a/ui2abc/libarkts/src/generated/peers/SourceRange.ts +++ b/ui2abc/libarkts/src/generated/peers/SourceRange.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/SpreadElement.ts b/ui2abc/libarkts/src/generated/peers/SpreadElement.ts index 30db40822..c7659db6b 100644 --- a/ui2abc/libarkts/src/generated/peers/SpreadElement.ts +++ b/ui2abc/libarkts/src/generated/peers/SpreadElement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/ui2abc/libarkts/src/generated/peers/SrcDumper.ts b/ui2abc/libarkts/src/generated/peers/SrcDumper.ts index fc36424b0..46e355005 100644 --- a/ui2abc/libarkts/src/generated/peers/SrcDumper.ts +++ b/ui2abc/libarkts/src/generated/peers/SrcDumper.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/Statement.ts b/ui2abc/libarkts/src/generated/peers/Statement.ts index e794d315b..0a036bce6 100644 --- a/ui2abc/libarkts/src/generated/peers/Statement.ts +++ b/ui2abc/libarkts/src/generated/peers/Statement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/StringLiteral.ts b/ui2abc/libarkts/src/generated/peers/StringLiteral.ts index fb9a6849d..426f5a66f 100644 --- a/ui2abc/libarkts/src/generated/peers/StringLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/StringLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/SuggestionInfo.ts b/ui2abc/libarkts/src/generated/peers/SuggestionInfo.ts index a4d620bb5..d84e2740f 100644 --- a/ui2abc/libarkts/src/generated/peers/SuggestionInfo.ts +++ b/ui2abc/libarkts/src/generated/peers/SuggestionInfo.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/SuperExpression.ts b/ui2abc/libarkts/src/generated/peers/SuperExpression.ts index 5a8d7deea..52697ebf7 100644 --- a/ui2abc/libarkts/src/generated/peers/SuperExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/SuperExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/SwitchCaseStatement.ts b/ui2abc/libarkts/src/generated/peers/SwitchCaseStatement.ts index 1b9b95141..3e4357c89 100644 --- a/ui2abc/libarkts/src/generated/peers/SwitchCaseStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/SwitchCaseStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/SwitchStatement.ts b/ui2abc/libarkts/src/generated/peers/SwitchStatement.ts index afd752d3b..2d802cb7b 100644 --- a/ui2abc/libarkts/src/generated/peers/SwitchStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/SwitchStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSAnyKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSAnyKeyword.ts index af33b4a0e..56117ade1 100644 --- a/ui2abc/libarkts/src/generated/peers/TSAnyKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSAnyKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSArrayType.ts b/ui2abc/libarkts/src/generated/peers/TSArrayType.ts index 072741266..829bebeeb 100644 --- a/ui2abc/libarkts/src/generated/peers/TSArrayType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSArrayType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSAsExpression.ts b/ui2abc/libarkts/src/generated/peers/TSAsExpression.ts index 9d929aa73..03698670b 100644 --- a/ui2abc/libarkts/src/generated/peers/TSAsExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/TSAsExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/ui2abc/libarkts/src/generated/peers/TSBigintKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSBigintKeyword.ts index 8ebe5619f..47507949b 100644 --- a/ui2abc/libarkts/src/generated/peers/TSBigintKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSBigintKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSBooleanKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSBooleanKeyword.ts index c305386db..35e4f20e9 100644 --- a/ui2abc/libarkts/src/generated/peers/TSBooleanKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSBooleanKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSClassImplements.ts b/ui2abc/libarkts/src/generated/peers/TSClassImplements.ts index 7a5949da0..7442657bf 100644 --- a/ui2abc/libarkts/src/generated/peers/TSClassImplements.ts +++ b/ui2abc/libarkts/src/generated/peers/TSClassImplements.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSConditionalType.ts b/ui2abc/libarkts/src/generated/peers/TSConditionalType.ts index edd7f3eae..10ef0b6ca 100644 --- a/ui2abc/libarkts/src/generated/peers/TSConditionalType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSConditionalType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSConstructorType.ts b/ui2abc/libarkts/src/generated/peers/TSConstructorType.ts index 2212d3511..88bab5328 100644 --- a/ui2abc/libarkts/src/generated/peers/TSConstructorType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSConstructorType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSEnumDeclaration.ts b/ui2abc/libarkts/src/generated/peers/TSEnumDeclaration.ts index 38bcd965e..ebdd944be 100644 --- a/ui2abc/libarkts/src/generated/peers/TSEnumDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/TSEnumDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { ClassDefinition } from "./ClassDefinition" diff --git a/ui2abc/libarkts/src/generated/peers/TSEnumMember.ts b/ui2abc/libarkts/src/generated/peers/TSEnumMember.ts index 96d42d73e..dcadc4c9a 100644 --- a/ui2abc/libarkts/src/generated/peers/TSEnumMember.ts +++ b/ui2abc/libarkts/src/generated/peers/TSEnumMember.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSExternalModuleReference.ts b/ui2abc/libarkts/src/generated/peers/TSExternalModuleReference.ts index 7e8d5d6ba..c0f3f4f04 100644 --- a/ui2abc/libarkts/src/generated/peers/TSExternalModuleReference.ts +++ b/ui2abc/libarkts/src/generated/peers/TSExternalModuleReference.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSFunctionType.ts b/ui2abc/libarkts/src/generated/peers/TSFunctionType.ts index c3c661416..fee20a26b 100644 --- a/ui2abc/libarkts/src/generated/peers/TSFunctionType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSFunctionType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts b/ui2abc/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts index 1029442f9..9fb07b854 100644 --- a/ui2abc/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSImportType.ts b/ui2abc/libarkts/src/generated/peers/TSImportType.ts index 6b0d7ff6c..a1fd1cbf2 100644 --- a/ui2abc/libarkts/src/generated/peers/TSImportType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSImportType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSIndexSignature.ts b/ui2abc/libarkts/src/generated/peers/TSIndexSignature.ts index a031de0b6..73fca0898 100644 --- a/ui2abc/libarkts/src/generated/peers/TSIndexSignature.ts +++ b/ui2abc/libarkts/src/generated/peers/TSIndexSignature.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSIndexedAccessType.ts b/ui2abc/libarkts/src/generated/peers/TSIndexedAccessType.ts index 0aeca993e..3dd9320e7 100644 --- a/ui2abc/libarkts/src/generated/peers/TSIndexedAccessType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSIndexedAccessType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSInferType.ts b/ui2abc/libarkts/src/generated/peers/TSInferType.ts index 2a77a5884..cfc325a33 100644 --- a/ui2abc/libarkts/src/generated/peers/TSInferType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSInferType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSInterfaceBody.ts b/ui2abc/libarkts/src/generated/peers/TSInterfaceBody.ts index 604f0d8bd..e80f06e6e 100644 --- a/ui2abc/libarkts/src/generated/peers/TSInterfaceBody.ts +++ b/ui2abc/libarkts/src/generated/peers/TSInterfaceBody.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSInterfaceDeclaration.ts b/ui2abc/libarkts/src/generated/peers/TSInterfaceDeclaration.ts index 8eb16ed04..4401d90f0 100644 --- a/ui2abc/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" @@ -38,6 +39,7 @@ import { Decorator } from "./Decorator" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" import { Es2pandaModifierFlags } from "./../Es2pandaEnums" import { Identifier } from "./Identifier" +import { JsDocInfo } from "./JsDocInfo" import { TSInterfaceBody } from "./TSInterfaceBody" import { TSInterfaceHeritage } from "./TSInterfaceHeritage" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" @@ -175,6 +177,14 @@ export class TSInterfaceDeclaration extends TypedStatement { global.generatedEs2panda._TSInterfaceDeclarationAddAnnotations(global.context, this.peer, passNode(annotations)) return this } + get jsDocInformation(): readonly JsDocInfo[] { + return acceptNativeObjectArrayResult(global.generatedEs2panda._TSInterfaceDeclarationJsDocInformation(global.context, this.peer), (peer: KNativePointer) => new JsDocInfo(peer)) + } + /** @deprecated */ + setJsDocInformation(jsDocInformation: readonly JsDocInfo[]): this { + global.generatedEs2panda._TSInterfaceDeclarationSetJsDocInformation(global.context, this.peer, passNodeArray(jsDocInformation), jsDocInformation.length) + return this + } protected readonly brandTSInterfaceDeclaration: undefined } export function isTSInterfaceDeclaration(node: object | undefined): node is TSInterfaceDeclaration { diff --git a/ui2abc/libarkts/src/generated/peers/TSInterfaceHeritage.ts b/ui2abc/libarkts/src/generated/peers/TSInterfaceHeritage.ts index f277e8041..c62c3ef8a 100644 --- a/ui2abc/libarkts/src/generated/peers/TSInterfaceHeritage.ts +++ b/ui2abc/libarkts/src/generated/peers/TSInterfaceHeritage.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSIntersectionType.ts b/ui2abc/libarkts/src/generated/peers/TSIntersectionType.ts index 1fbfaa0cb..5b6daf47b 100644 --- a/ui2abc/libarkts/src/generated/peers/TSIntersectionType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSIntersectionType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSLiteralType.ts b/ui2abc/libarkts/src/generated/peers/TSLiteralType.ts index 2583a1e83..cf7ffb92c 100644 --- a/ui2abc/libarkts/src/generated/peers/TSLiteralType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSLiteralType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSMappedType.ts b/ui2abc/libarkts/src/generated/peers/TSMappedType.ts index 9aa5d451e..04fcfe05b 100644 --- a/ui2abc/libarkts/src/generated/peers/TSMappedType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSMappedType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSMethodSignature.ts b/ui2abc/libarkts/src/generated/peers/TSMethodSignature.ts index c325a68ef..6d051fe2a 100644 --- a/ui2abc/libarkts/src/generated/peers/TSMethodSignature.ts +++ b/ui2abc/libarkts/src/generated/peers/TSMethodSignature.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSModuleBlock.ts b/ui2abc/libarkts/src/generated/peers/TSModuleBlock.ts index 11062bf3b..a7c3237cc 100644 --- a/ui2abc/libarkts/src/generated/peers/TSModuleBlock.ts +++ b/ui2abc/libarkts/src/generated/peers/TSModuleBlock.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSModuleDeclaration.ts b/ui2abc/libarkts/src/generated/peers/TSModuleDeclaration.ts index d4813bb73..fd4542ce7 100644 --- a/ui2abc/libarkts/src/generated/peers/TSModuleDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/TSModuleDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSNamedTupleMember.ts b/ui2abc/libarkts/src/generated/peers/TSNamedTupleMember.ts index 0aebfc921..475410f91 100644 --- a/ui2abc/libarkts/src/generated/peers/TSNamedTupleMember.ts +++ b/ui2abc/libarkts/src/generated/peers/TSNamedTupleMember.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSNeverKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSNeverKeyword.ts index dd7cdc5f4..af9cefedb 100644 --- a/ui2abc/libarkts/src/generated/peers/TSNeverKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSNeverKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSNonNullExpression.ts b/ui2abc/libarkts/src/generated/peers/TSNonNullExpression.ts index f38d732fb..d3328754e 100644 --- a/ui2abc/libarkts/src/generated/peers/TSNonNullExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/TSNonNullExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSNullKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSNullKeyword.ts index 06702b620..c439b2000 100644 --- a/ui2abc/libarkts/src/generated/peers/TSNullKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSNullKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSNumberKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSNumberKeyword.ts index 116512e5f..79555f517 100644 --- a/ui2abc/libarkts/src/generated/peers/TSNumberKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSNumberKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSObjectKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSObjectKeyword.ts index 7b8ad2851..6beeea789 100644 --- a/ui2abc/libarkts/src/generated/peers/TSObjectKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSObjectKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSParameterProperty.ts b/ui2abc/libarkts/src/generated/peers/TSParameterProperty.ts index 325b1d5e6..9838431b2 100644 --- a/ui2abc/libarkts/src/generated/peers/TSParameterProperty.ts +++ b/ui2abc/libarkts/src/generated/peers/TSParameterProperty.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAccessibilityOption } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSParenthesizedType.ts b/ui2abc/libarkts/src/generated/peers/TSParenthesizedType.ts index d9166aa91..2f09fea41 100644 --- a/ui2abc/libarkts/src/generated/peers/TSParenthesizedType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSParenthesizedType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSPropertySignature.ts b/ui2abc/libarkts/src/generated/peers/TSPropertySignature.ts index a119d137e..a69e594a5 100644 --- a/ui2abc/libarkts/src/generated/peers/TSPropertySignature.ts +++ b/ui2abc/libarkts/src/generated/peers/TSPropertySignature.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotatedAstNode } from "./AnnotatedAstNode" diff --git a/ui2abc/libarkts/src/generated/peers/TSQualifiedName.ts b/ui2abc/libarkts/src/generated/peers/TSQualifiedName.ts index 8f6fb5440..837eab0b2 100644 --- a/ui2abc/libarkts/src/generated/peers/TSQualifiedName.ts +++ b/ui2abc/libarkts/src/generated/peers/TSQualifiedName.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSSignatureDeclaration.ts b/ui2abc/libarkts/src/generated/peers/TSSignatureDeclaration.ts index 630f27d12..9302fd851 100644 --- a/ui2abc/libarkts/src/generated/peers/TSSignatureDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/TSSignatureDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSStringKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSStringKeyword.ts index d0b60e023..ca596bd1a 100644 --- a/ui2abc/libarkts/src/generated/peers/TSStringKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSStringKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSThisType.ts b/ui2abc/libarkts/src/generated/peers/TSThisType.ts index 76ff3fcf7..5c46202ef 100644 --- a/ui2abc/libarkts/src/generated/peers/TSThisType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSThisType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSTupleType.ts b/ui2abc/libarkts/src/generated/peers/TSTupleType.ts index 170f3cd2e..40511d07e 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTupleType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTupleType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts b/ui2abc/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts index 1c2f9d5fd..622a2b939 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotatedStatement } from "./AnnotatedStatement" @@ -38,6 +39,7 @@ import { Decorator } from "./Decorator" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" import { Es2pandaModifierFlags } from "./../Es2pandaEnums" import { Identifier } from "./Identifier" +import { JsDocInfo } from "./JsDocInfo" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { TypeNode } from "./TypeNode" @@ -156,6 +158,14 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement { global.generatedEs2panda._TSTypeAliasDeclarationSetTsTypeAnnotation(global.context, this.peer, passNode(typeAnnotation)) return this } + get jsDocInformation(): readonly JsDocInfo[] { + return acceptNativeObjectArrayResult(global.generatedEs2panda._TSTypeAliasDeclarationJsDocInformation(global.context, this.peer), (peer: KNativePointer) => new JsDocInfo(peer)) + } + /** @deprecated */ + setJsDocInformation(jsDocInformation: readonly JsDocInfo[]): this { + global.generatedEs2panda._TSTypeAliasDeclarationSetJsDocInformation(global.context, this.peer, passNodeArray(jsDocInformation), jsDocInformation.length) + return this + } protected readonly brandTSTypeAliasDeclaration: undefined } export function isTSTypeAliasDeclaration(node: object | undefined): node is TSTypeAliasDeclaration { diff --git a/ui2abc/libarkts/src/generated/peers/TSTypeAssertion.ts b/ui2abc/libarkts/src/generated/peers/TSTypeAssertion.ts index ba60c5d2b..3b0d2ec31 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTypeAssertion.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTypeAssertion.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/ui2abc/libarkts/src/generated/peers/TSTypeLiteral.ts b/ui2abc/libarkts/src/generated/peers/TSTypeLiteral.ts index c6f14a5ee..9a7597ee7 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTypeLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTypeLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSTypeOperator.ts b/ui2abc/libarkts/src/generated/peers/TSTypeOperator.ts index af0b404c1..eab12f11b 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTypeOperator.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTypeOperator.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSTypeParameter.ts b/ui2abc/libarkts/src/generated/peers/TSTypeParameter.ts index a57d8817d..265929033 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTypeParameter.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTypeParameter.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" diff --git a/ui2abc/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts b/ui2abc/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts index 671d35bcf..23c7137b1 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts b/ui2abc/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts index 5ec0847c7..6c216f3b3 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSTypePredicate.ts b/ui2abc/libarkts/src/generated/peers/TSTypePredicate.ts index 387438112..63949d4bc 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTypePredicate.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTypePredicate.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSTypeQuery.ts b/ui2abc/libarkts/src/generated/peers/TSTypeQuery.ts index 130b4c4bc..c65288f4f 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTypeQuery.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTypeQuery.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSTypeReference.ts b/ui2abc/libarkts/src/generated/peers/TSTypeReference.ts index 833012b20..9c49a3818 100644 --- a/ui2abc/libarkts/src/generated/peers/TSTypeReference.ts +++ b/ui2abc/libarkts/src/generated/peers/TSTypeReference.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSUndefinedKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSUndefinedKeyword.ts index 5ff2b268f..0b9a6050c 100644 --- a/ui2abc/libarkts/src/generated/peers/TSUndefinedKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSUndefinedKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSUnionType.ts b/ui2abc/libarkts/src/generated/peers/TSUnionType.ts index 0ab90db11..a4a0b84a6 100644 --- a/ui2abc/libarkts/src/generated/peers/TSUnionType.ts +++ b/ui2abc/libarkts/src/generated/peers/TSUnionType.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSUnknownKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSUnknownKeyword.ts index dbfa75bf4..bed07902f 100644 --- a/ui2abc/libarkts/src/generated/peers/TSUnknownKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSUnknownKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TSVoidKeyword.ts b/ui2abc/libarkts/src/generated/peers/TSVoidKeyword.ts index d2622c134..00bade340 100644 --- a/ui2abc/libarkts/src/generated/peers/TSVoidKeyword.ts +++ b/ui2abc/libarkts/src/generated/peers/TSVoidKeyword.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TaggedTemplateExpression.ts b/ui2abc/libarkts/src/generated/peers/TaggedTemplateExpression.ts index 04a7676b5..d9eeef801 100644 --- a/ui2abc/libarkts/src/generated/peers/TaggedTemplateExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/TaggedTemplateExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TemplateElement.ts b/ui2abc/libarkts/src/generated/peers/TemplateElement.ts index 0cad7b5a2..2d7666a6f 100644 --- a/ui2abc/libarkts/src/generated/peers/TemplateElement.ts +++ b/ui2abc/libarkts/src/generated/peers/TemplateElement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TemplateLiteral.ts b/ui2abc/libarkts/src/generated/peers/TemplateLiteral.ts index 92a9afdaf..6b49b8695 100644 --- a/ui2abc/libarkts/src/generated/peers/TemplateLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/TemplateLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ThisExpression.ts b/ui2abc/libarkts/src/generated/peers/ThisExpression.ts index f39074db8..1b699d833 100644 --- a/ui2abc/libarkts/src/generated/peers/ThisExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/ThisExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/ThrowStatement.ts b/ui2abc/libarkts/src/generated/peers/ThrowStatement.ts index fbaeeac18..e6a2e364c 100644 --- a/ui2abc/libarkts/src/generated/peers/ThrowStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/ThrowStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/TryStatement.ts b/ui2abc/libarkts/src/generated/peers/TryStatement.ts index 74ad1e54d..d5ff4bdb5 100644 --- a/ui2abc/libarkts/src/generated/peers/TryStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/TryStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { BlockStatement } from "./BlockStatement" diff --git a/ui2abc/libarkts/src/generated/peers/TypeNode.ts b/ui2abc/libarkts/src/generated/peers/TypeNode.ts index 724a22d95..32f2e5338 100644 --- a/ui2abc/libarkts/src/generated/peers/TypeNode.ts +++ b/ui2abc/libarkts/src/generated/peers/TypeNode.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" diff --git a/ui2abc/libarkts/src/generated/peers/TypedAstNode.ts b/ui2abc/libarkts/src/generated/peers/TypedAstNode.ts index f47773eed..e446263e0 100644 --- a/ui2abc/libarkts/src/generated/peers/TypedAstNode.ts +++ b/ui2abc/libarkts/src/generated/peers/TypedAstNode.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/TypedStatement.ts b/ui2abc/libarkts/src/generated/peers/TypedStatement.ts index edd85b779..1bf653807 100644 --- a/ui2abc/libarkts/src/generated/peers/TypedStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/TypedStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/ui2abc/libarkts/src/generated/peers/TypeofExpression.ts b/ui2abc/libarkts/src/generated/peers/TypeofExpression.ts index d10bc077f..733c7a38d 100644 --- a/ui2abc/libarkts/src/generated/peers/TypeofExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/TypeofExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/UnaryExpression.ts b/ui2abc/libarkts/src/generated/peers/UnaryExpression.ts index f56fddd4a..7c47c2e21 100644 --- a/ui2abc/libarkts/src/generated/peers/UnaryExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/UnaryExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/UndefinedLiteral.ts b/ui2abc/libarkts/src/generated/peers/UndefinedLiteral.ts index 9e922a510..484f93246 100644 --- a/ui2abc/libarkts/src/generated/peers/UndefinedLiteral.ts +++ b/ui2abc/libarkts/src/generated/peers/UndefinedLiteral.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/UpdateExpression.ts b/ui2abc/libarkts/src/generated/peers/UpdateExpression.ts index d5666d015..31f95fc6a 100644 --- a/ui2abc/libarkts/src/generated/peers/UpdateExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/UpdateExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/VReg.ts b/ui2abc/libarkts/src/generated/peers/VReg.ts index 5871cd606..56ff62ee8 100644 --- a/ui2abc/libarkts/src/generated/peers/VReg.ts +++ b/ui2abc/libarkts/src/generated/peers/VReg.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/ValidationInfo.ts b/ui2abc/libarkts/src/generated/peers/ValidationInfo.ts index e6d1f44f2..06bd258f3 100644 --- a/ui2abc/libarkts/src/generated/peers/ValidationInfo.ts +++ b/ui2abc/libarkts/src/generated/peers/ValidationInfo.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { SourcePosition } from "./SourcePosition" diff --git a/ui2abc/libarkts/src/generated/peers/VariableDeclaration.ts b/ui2abc/libarkts/src/generated/peers/VariableDeclaration.ts index 5525e2c92..a11062d85 100644 --- a/ui2abc/libarkts/src/generated/peers/VariableDeclaration.ts +++ b/ui2abc/libarkts/src/generated/peers/VariableDeclaration.ts @@ -29,13 +29,15 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { AnnotationUsage } from "./AnnotationUsage" import { Decorator } from "./Decorator" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" import { Es2pandaVariableDeclarationKind } from "./../Es2pandaEnums" +import { JsDocInfo } from "./JsDocInfo" import { Statement } from "./Statement" import { VariableDeclarator } from "./VariableDeclarator" @@ -113,6 +115,14 @@ export class VariableDeclaration extends Statement { global.generatedEs2panda._VariableDeclarationAddAnnotations(global.context, this.peer, passNode(annotations)) return this } + get jsDocInformation(): readonly JsDocInfo[] { + return acceptNativeObjectArrayResult(global.generatedEs2panda._VariableDeclarationJsDocInformation(global.context, this.peer), (peer: KNativePointer) => new JsDocInfo(peer)) + } + /** @deprecated */ + setJsDocInformation(jsDocInformation: readonly JsDocInfo[]): this { + global.generatedEs2panda._VariableDeclarationSetJsDocInformation(global.context, this.peer, passNodeArray(jsDocInformation), jsDocInformation.length) + return this + } protected readonly brandVariableDeclaration: undefined } export function isVariableDeclaration(node: object | undefined): node is VariableDeclaration { diff --git a/ui2abc/libarkts/src/generated/peers/VariableDeclarator.ts b/ui2abc/libarkts/src/generated/peers/VariableDeclarator.ts index 54773ec6e..3282e1436 100644 --- a/ui2abc/libarkts/src/generated/peers/VariableDeclarator.ts +++ b/ui2abc/libarkts/src/generated/peers/VariableDeclarator.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/VerificationContext.ts b/ui2abc/libarkts/src/generated/peers/VerificationContext.ts index d2340ecd4..239d55d67 100644 --- a/ui2abc/libarkts/src/generated/peers/VerificationContext.ts +++ b/ui2abc/libarkts/src/generated/peers/VerificationContext.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/VerifierMessage.ts b/ui2abc/libarkts/src/generated/peers/VerifierMessage.ts index 15482293a..5d930aadf 100644 --- a/ui2abc/libarkts/src/generated/peers/VerifierMessage.ts +++ b/ui2abc/libarkts/src/generated/peers/VerifierMessage.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" diff --git a/ui2abc/libarkts/src/generated/peers/WhileStatement.ts b/ui2abc/libarkts/src/generated/peers/WhileStatement.ts index 353773782..ff1d28e26 100644 --- a/ui2abc/libarkts/src/generated/peers/WhileStatement.ts +++ b/ui2abc/libarkts/src/generated/peers/WhileStatement.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" diff --git a/ui2abc/libarkts/src/generated/peers/YieldExpression.ts b/ui2abc/libarkts/src/generated/peers/YieldExpression.ts index f6063d2f2..0b303ca3a 100644 --- a/ui2abc/libarkts/src/generated/peers/YieldExpression.ts +++ b/ui2abc/libarkts/src/generated/peers/YieldExpression.ts @@ -29,7 +29,8 @@ import { KNativePointer, nodeByType, ArktsObject, - unpackString + unpackString, + acceptNativeObjectArrayResult } from "../../reexport-for-generated" import { Es2pandaAstNodeType } from "./../Es2pandaEnums" -- Gitee From 2562363555582808e8aeefac65c6ced7a747276f Mon Sep 17 00:00:00 2001 From: "evgeniy.generalov" Date: Wed, 23 Jul 2025 12:27:12 +0300 Subject: [PATCH 2/2] Hack bridges for JsDocInfo test --- ui2abc/libarkts/native/meson.build | 5 +- ui2abc/libarkts/native/src/common.h | 8 +- .../libarkts/native/src/generated/bridges.cc | 40 +++++++--- ui2abc/libarkts/src/reexport-for-generated.ts | 3 +- .../test/arkts-api/general/jsdoc.test.ts | 80 +++++++++++++++++++ 5 files changed, 121 insertions(+), 15 deletions(-) create mode 100644 ui2abc/libarkts/test/arkts-api/general/jsdoc.test.ts diff --git a/ui2abc/libarkts/native/meson.build b/ui2abc/libarkts/native/meson.build index f71b55ef8..a6440bc85 100644 --- a/ui2abc/libarkts/native/meson.build +++ b/ui2abc/libarkts/native/meson.build @@ -37,6 +37,9 @@ cflags = [ '-DINTEROP_LIBRARY_NAME=' + get_option('lib_name'), '-DKOALA_USE_NODE_VM', '-DKOALA_NAPI', + '-g', + '-Og', + '-fno-omit-frame-pointer' ] if (host_machine.system() == 'windows') @@ -124,4 +127,4 @@ if is_cross link_args: [cflags_cross], dependencies: [] ) -endif \ No newline at end of file +endif diff --git a/ui2abc/libarkts/native/src/common.h b/ui2abc/libarkts/native/src/common.h index 7b57d89a1..5d34e3b44 100644 --- a/ui2abc/libarkts/native/src/common.h +++ b/ui2abc/libarkts/native/src/common.h @@ -104,12 +104,12 @@ class StageArena { return new (memory) T(arg1, arg2); } template - static T* allocArray(size_t count) + static T* allocArray(size_t count, T const& def = {}) { auto* arena = StageArena::instance(); // align? - void* memory = arena->alloc(sizeof(T) * count); - return new (memory) T(); + auto* const memory = arena->alloc(sizeof(T) * count); + return new (memory) T(def); } template static T* clone(const T& arg) @@ -129,4 +129,4 @@ class StageArena { void cleanup(); }; -#endif // COMMON_H \ No newline at end of file +#endif // COMMON_H diff --git a/ui2abc/libarkts/native/src/generated/bridges.cc b/ui2abc/libarkts/native/src/generated/bridges.cc index f29078ddb..3f443d63b 100644 --- a/ui2abc/libarkts/native/src/generated/bridges.cc +++ b/ui2abc/libarkts/native/src/generated/bridges.cc @@ -17,9 +17,30 @@ /* * THIS FILE IS AUTOGENERATED BY arktscgen v2.1.9+devel. DO NOT EDIT MANUALLY! - * es2panda c962477266722fec18ce4851b5efccddada11561(2025-07-22) sdk v1.5.0-dev.38458 + * es2panda dadaf62cc31d90d86b72a3c7a0e5dd10ac39d1c6(2025-07-08) sdk v1.5.0-dev.36029 */ +static es2panda_JsDocInfo* makeJsDocInfo() +{ + static char* strings[] = { + StageArena::strdup("string1"), + StageArena::strdup("string2"), + StageArena::strdup("string3"), + nullptr + }; + + static auto record = StageArena::allocArray(1, es2panda_JsDocRecord { + StageArena::strdup("name"), + StageArena::strdup("param"), + StageArena::strdup("comment"), + }); + + auto infos = StageArena::allocArray(1, es2panda_JsDocInfo { strings, &record, 1 }); + printf("%s: pointer=%p, length=%u\n", __FUNCTION__, infos, 1); + + return infos; +} + KNativePointer impl_CreateNumberLiteral(KNativePointer context, KInt value) { const auto _context = reinterpret_cast(context); @@ -2114,8 +2135,8 @@ void impl_FunctionDeclarationSetJsDocInformation(KNativePointer context, KNative { const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); - const auto _jsDocInformation = reinterpret_cast(jsDocInformation); - const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); + auto _jsDocInformation = reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); GetImpl()->FunctionDeclarationSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); return ; } @@ -3823,9 +3844,9 @@ void impl_TSTypeAliasDeclarationSetJsDocInformation(KNativePointer context, KNat { const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); - const auto _jsDocInformation = reinterpret_cast(jsDocInformation); - const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); - GetImpl()->TSTypeAliasDeclarationSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + auto _jsDocInformation = makeJsDocInfo(); //reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = 1; // static_cast(jsDocInformationSequenceLength); + GetImpl()->TSTypeAliasDeclarationSetJsDocInformation(_context, _receiver, &_jsDocInformation, _jsDocInformationSequenceLength); return ; } KOALA_INTEROP_V4(TSTypeAliasDeclarationSetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); @@ -8098,6 +8119,7 @@ KNativePointer impl_ETSModuleJsDocInformation(KNativePointer context, KNativePoi const auto _receiver = reinterpret_cast(receiver); std::size_t length; auto result = GetImpl()->ETSModuleJsDocInformation(_context, _receiver, &length); + printf("%s: pointer=%p, length=%zu\n", __FUNCTION__, result, length); return StageArena::cloneVector(result, length); } KOALA_INTEROP_2(ETSModuleJsDocInformation, KNativePointer, KNativePointer, KNativePointer); @@ -8116,9 +8138,9 @@ void impl_ETSModuleSetJsDocInformation(KNativePointer context, KNativePointer re { const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); - const auto _jsDocInformation = reinterpret_cast(jsDocInformation); - const auto _jsDocInformationSequenceLength = static_cast(jsDocInformationSequenceLength); - GetImpl()->ETSModuleSetJsDocInformation(_context, _receiver, _jsDocInformation, _jsDocInformationSequenceLength); + auto _jsDocInformation = makeJsDocInfo(); //reinterpret_cast(jsDocInformation); + const auto _jsDocInformationSequenceLength = 1; //static_cast(jsDocInformationSequenceLength); + GetImpl()->ETSModuleSetJsDocInformation(_context, _receiver, &_jsDocInformation, _jsDocInformationSequenceLength); return ; } KOALA_INTEROP_V4(ETSModuleSetJsDocInformation, KNativePointer, KNativePointer, KNativePointerArray, KUInt); diff --git a/ui2abc/libarkts/src/reexport-for-generated.ts b/ui2abc/libarkts/src/reexport-for-generated.ts index bfc8018cf..aa19e1d82 100644 --- a/ui2abc/libarkts/src/reexport-for-generated.ts +++ b/ui2abc/libarkts/src/reexport-for-generated.ts @@ -26,7 +26,8 @@ export { unpackString, unpackObject, assertValidPeer, - updateNodeByNode + updateNodeByNode, + acceptNativeObjectArrayResult } from "./arkts-api/utilities/private" export { nodeByType } from "./arkts-api/class-by-peer" export { global } from "./arkts-api/static/global" diff --git a/ui2abc/libarkts/test/arkts-api/general/jsdoc.test.ts b/ui2abc/libarkts/test/arkts-api/general/jsdoc.test.ts new file mode 100644 index 000000000..317e95669 --- /dev/null +++ b/ui2abc/libarkts/test/arkts-api/general/jsdoc.test.ts @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import * as util from "../../test-util" +import * as arkts from "../../../src/arkts-api" +import { assert } from "@koalaui/harness" +import { isFunctionDeclaration, isTSTypeAliasDeclaration, JsDocInfo } from "../../../src/arkts-api" + +suite(util.basename(__filename), () => { + test("jsdoc", function() { + const sample_in = + ` + /** + * Regular function + * @description JsDoc aware + */ + export function foo(); + + /** Type T */ + type T = int; + ` + + let script = arkts.createETSModuleFromSource( + sample_in, + arkts.Es2pandaContextState.ES2PANDA_STATE_PARSED + ) + + script.setJsDocInformation([] as JsDocInfo[]) + for (const stmt of script.statements) { + if (isFunctionDeclaration(stmt)) { + stmt.setJsDocInformation([] as JsDocInfo[]) + } + if (isTSTypeAliasDeclaration(stmt)) { + stmt.setJsDocInformation([] as JsDocInfo[]) + } + } + + arkts.factory.updateETSModule( + script, + script.statements, + script.ident, + script.getNamespaceFlag() + ) + console.log(`dump script: ${script.dumpSrc()}`); + + for (const stmt of script.statements) { + if (isFunctionDeclaration(stmt)) { + console.log(`function: ${stmt.dumpSrc()}`); + } + if (isTSTypeAliasDeclaration(stmt)) { + console.log(`alias: ${stmt.dumpSrc()}`); + } + } + + + // Run: nr compile:native && nr mocha -- --grep jsdoc + // + //makeJsDocInfo: pointer=0x55c23f9dfb20, length=1 + //makeJsDocInfo: pointer=0x55c23f9989b0, length=1 + //dump script: + //function foo() + //type T = int; + //function: function foo() + //alias: type T = int; + + //assert.equal(???) + }) +}) -- Gitee