@idlizer/arktscgen 2.1.9-arktscgen-6 → 2.1.9-arktscgen-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/libarkts-copy/generator/options.json5 +165 -3
- package/build/libarkts-copy/native/meson.build +11 -12
- package/build/libarkts-copy/native/meson_options.txt +1 -1
- package/build/libarkts-copy/native/mingw.cross +14 -0
- package/build/libarkts-copy/native/src/bridges.cc +105 -15
- package/build/libarkts-copy/native/src/common.cc +11 -7
- package/build/libarkts-copy/native/src/common.h +1 -0
- package/build/libarkts-copy/native/src/generated/bridges.cc +318 -35
- package/build/libarkts-copy/package.json +24 -21
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +33 -6
- package/build/libarkts-copy/src/arkts-api/ChainExpressionFilter.ts +2 -1
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +18 -12
- package/build/libarkts-copy/src/arkts-api/ProgramProvider.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +15 -26
- package/build/libarkts-copy/src/arkts-api/index.ts +2 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/BlockStatement.ts +0 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/CallExpression.ts +1 -22
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDefinition.ts +7 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassProperty.ts +1 -22
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSFunctionType.ts +2 -5
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSImportDeclaration.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSModule.ts +44 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSParameterExpression.ts +1 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/MethodDefinition.ts +3 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +10 -11
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +17 -6
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +3 -6
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +3 -3
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +26 -5
- package/build/libarkts-copy/src/arkts-api/peers/ExternalSource.ts +4 -0
- package/build/libarkts-copy/src/arkts-api/plugins.ts +15 -7
- package/build/libarkts-copy/src/arkts-api/static/global.ts +3 -2
- package/build/libarkts-copy/src/{wrapper-compat/arkts-api → arkts-api}/static/globalUtils.ts +4 -4
- package/build/libarkts-copy/src/arkts-api/static/profiler.ts +0 -8
- package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +80 -0
- package/build/libarkts-copy/src/arkts-api/utilities/nativePtrDecoder.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +5 -5
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +217 -29
- package/build/libarkts-copy/src/arkts-api/visitor.ts +17 -10
- package/build/libarkts-copy/src/checkSdk.ts +15 -0
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +343 -321
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +97 -14
- package/build/libarkts-copy/src/generated/factory.ts +40 -27
- package/build/libarkts-copy/src/generated/index.ts +4 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +26 -8
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/BindingProps.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +19 -7
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +21 -8
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +37 -13
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +19 -7
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/CodeGen.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/Declaration.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/DiagnosticInfo.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +20 -13
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +77 -0
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +46 -14
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +21 -9
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +20 -7
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +20 -8
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/Expression.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +5 -3
- package/build/libarkts-copy/src/generated/peers/FunctionDecl.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/IRNode.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +14 -6
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/ImportSource.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/InterfaceDecl.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/LabelPair.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/Literal.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +23 -7
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +17 -7
- package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +103 -0
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/Program.ts +4 -2
- package/build/libarkts-copy/src/generated/peers/Property.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +47 -14
- package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/SourceRange.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/Statement.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/SuggestionInfo.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +19 -6
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +21 -8
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +42 -11
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +8 -4
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/VReg.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +20 -8
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +9 -5
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +9 -5
- package/build/libarkts-copy/src/index.ts +1 -4
- package/build/libarkts-copy/src/plugin-utils.ts +45 -32
- package/build/libarkts-copy/src/reexport-for-generated.ts +10 -1
- package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +14 -14
- package/build/libarkts-copy/src/ts-api/index.ts +1 -1
- package/build/libarkts-copy/src/ts-api/types.ts +56 -56
- package/build/libarkts-copy/src/ts-api/utilities/private.ts +6 -6
- package/build/libarkts-copy/src/ts-api/utilities/public.ts +3 -3
- package/build/libarkts-copy/src/ts-api/visitor/visitor.ts +4 -4
- package/build/libarkts-copy/src/utils.ts +13 -159
- package/build/libarkts-copy/src/wrapper-compat/README.md +4 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/index.ts +5 -5
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrayExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrowFunctionExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/AssignmentExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/BlockStatement.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/CallExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDefinition.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassProperty.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSFunctionType.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSImportDeclaration.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSParameterExpression.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ExpressionStatement.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/IfStatement.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MemberExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MethodDefinition.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/NumberLiteral.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ObjectExpression.ts +3 -3
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/Property.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ScriptFunction.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/StructDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSInterfaceDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeParameter.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TryStatement.ts +3 -3
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclarator.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Diagnostic.ts +4 -5
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticInfo.ts +4 -3
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticKind.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/ImportPathManager.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Program.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourcePosition.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourceRange.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SuggestionInfo.ts +4 -3
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/to-be-generated/MemberExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/types.ts +12 -30
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/nativePtrDecoder.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/private.ts +4 -4
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/public.ts +10 -8
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/visitor.ts +10 -10
- package/lib/index.js +2799 -2665
- package/package.json +2 -2
- package/templates/Es2pandaEnums.ts +1 -2
- package/templates/Es2pandaNativeModule.ts +2 -3
- package/templates/factory.ts +1 -2
- package/templates/index.ts +1 -2
- package/templates/node-map.ts +1 -2
- package/templates/peer.ts +1 -2
- package/build/libarkts-copy/src/arkts-api/CheckedBackFilter.ts +0 -131
- package/build/libarkts-copy/src/arkts-api/CompileWithCache.ts +0 -193
- package/build/libarkts-copy/src/arkts-api/InferVoidReturnType.ts +0 -89
- package/build/libarkts-copy/src/arkts-api/SetBaseOverloads.ts +0 -44
- package/build/libarkts-copy/src/arkts-api/node-utilities/AnnotationUsage.ts +0 -29
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArrowFunctionExpression.ts +0 -49
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDeclaration.ts +0 -54
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +0 -68
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclaration.ts +0 -54
- package/build/libarkts-copy/src/arkts-api/utilities/method-definition.ts +0 -38
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/ArktsObject.ts +0 -45
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Config.ts +0 -53
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Context.ts +0 -60
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
#include <common.h>
|
|
17
17
|
|
|
18
18
|
/*
|
|
19
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen v2.1.9-arktscgen-
|
|
20
|
-
* es2panda
|
|
19
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen v2.1.9-arktscgen-8. DO NOT EDIT MANUALLY!
|
|
20
|
+
* es2panda 2d77536b9b49352e16827106a4f4311e221008c5(2025-07-30) sdk v1.5.0-dev.39323
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
KNativePointer impl_CreateNumberLiteral(KNativePointer context, KInt value)
|
|
@@ -505,24 +505,6 @@ KInt impl_ETSFunctionTypeFlagsConst(KNativePointer context, KNativePointer recei
|
|
|
505
505
|
}
|
|
506
506
|
KOALA_INTEROP_2(ETSFunctionTypeFlagsConst, KInt, KNativePointer, KNativePointer);
|
|
507
507
|
|
|
508
|
-
KBoolean impl_ETSFunctionTypeIsThrowingConst(KNativePointer context, KNativePointer receiver)
|
|
509
|
-
{
|
|
510
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
511
|
-
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
512
|
-
auto result = GetImpl()->ETSFunctionTypeIrIsThrowingConst(_context, _receiver);
|
|
513
|
-
return result;
|
|
514
|
-
}
|
|
515
|
-
KOALA_INTEROP_2(ETSFunctionTypeIsThrowingConst, KBoolean, KNativePointer, KNativePointer);
|
|
516
|
-
|
|
517
|
-
KBoolean impl_ETSFunctionTypeIsRethrowingConst(KNativePointer context, KNativePointer receiver)
|
|
518
|
-
{
|
|
519
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
520
|
-
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
521
|
-
auto result = GetImpl()->ETSFunctionTypeIrIsRethrowingConst(_context, _receiver);
|
|
522
|
-
return result;
|
|
523
|
-
}
|
|
524
|
-
KOALA_INTEROP_2(ETSFunctionTypeIsRethrowingConst, KBoolean, KNativePointer, KNativePointer);
|
|
525
|
-
|
|
526
508
|
KBoolean impl_ETSFunctionTypeIsExtensionFunctionConst(KNativePointer context, KNativePointer receiver)
|
|
527
509
|
{
|
|
528
510
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -819,6 +801,37 @@ KNativePointer impl_UpdateTSEnumDeclaration(KNativePointer context, KNativePoint
|
|
|
819
801
|
}
|
|
820
802
|
KOALA_INTEROP_8(UpdateTSEnumDeclaration, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KBoolean, KBoolean, KBoolean);
|
|
821
803
|
|
|
804
|
+
KNativePointer impl_CreateTSEnumDeclaration1(KNativePointer context, KNativePointer key, KNativePointerArray members, KUInt membersSequenceLength, KBoolean isConst, KBoolean isStatic, KBoolean isDeclare, KNativePointer typeNode)
|
|
805
|
+
{
|
|
806
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
807
|
+
const auto _key = reinterpret_cast<es2panda_AstNode*>(key);
|
|
808
|
+
const auto _members = reinterpret_cast<es2panda_AstNode**>(members);
|
|
809
|
+
const auto _membersSequenceLength = static_cast<KUInt>(membersSequenceLength);
|
|
810
|
+
const auto _isConst = static_cast<KBoolean>(isConst);
|
|
811
|
+
const auto _isStatic = static_cast<KBoolean>(isStatic);
|
|
812
|
+
const auto _isDeclare = static_cast<KBoolean>(isDeclare);
|
|
813
|
+
const auto _typeNode = reinterpret_cast<es2panda_AstNode*>(typeNode);
|
|
814
|
+
auto result = GetImpl()->CreateTSEnumDeclaration1(_context, _key, _members, _membersSequenceLength, _isConst, _isStatic, _isDeclare, _typeNode);
|
|
815
|
+
return result;
|
|
816
|
+
}
|
|
817
|
+
KOALA_INTEROP_8(CreateTSEnumDeclaration1, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KBoolean, KBoolean, KBoolean, KNativePointer);
|
|
818
|
+
|
|
819
|
+
KNativePointer impl_UpdateTSEnumDeclaration1(KNativePointer context, KNativePointer original, KNativePointer key, KNativePointerArray members, KUInt membersSequenceLength, KBoolean isConst, KBoolean isStatic, KBoolean isDeclare, KNativePointer typeNode)
|
|
820
|
+
{
|
|
821
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
822
|
+
const auto _original = reinterpret_cast<es2panda_AstNode*>(original);
|
|
823
|
+
const auto _key = reinterpret_cast<es2panda_AstNode*>(key);
|
|
824
|
+
const auto _members = reinterpret_cast<es2panda_AstNode**>(members);
|
|
825
|
+
const auto _membersSequenceLength = static_cast<KUInt>(membersSequenceLength);
|
|
826
|
+
const auto _isConst = static_cast<KBoolean>(isConst);
|
|
827
|
+
const auto _isStatic = static_cast<KBoolean>(isStatic);
|
|
828
|
+
const auto _isDeclare = static_cast<KBoolean>(isDeclare);
|
|
829
|
+
const auto _typeNode = reinterpret_cast<es2panda_AstNode*>(typeNode);
|
|
830
|
+
auto result = GetImpl()->UpdateTSEnumDeclaration1(_context, _original, _key, _members, _membersSequenceLength, _isConst, _isStatic, _isDeclare, _typeNode);
|
|
831
|
+
return result;
|
|
832
|
+
}
|
|
833
|
+
KOALA_INTEROP_9(UpdateTSEnumDeclaration1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KBoolean, KBoolean, KBoolean, KNativePointer);
|
|
834
|
+
|
|
822
835
|
KNativePointer impl_TSEnumDeclarationKeyConst(KNativePointer context, KNativePointer receiver)
|
|
823
836
|
{
|
|
824
837
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -828,6 +841,15 @@ KNativePointer impl_TSEnumDeclarationKeyConst(KNativePointer context, KNativePoi
|
|
|
828
841
|
}
|
|
829
842
|
KOALA_INTEROP_2(TSEnumDeclarationKeyConst, KNativePointer, KNativePointer, KNativePointer);
|
|
830
843
|
|
|
844
|
+
KNativePointer impl_TSEnumDeclarationTypeNodes(KNativePointer context, KNativePointer receiver)
|
|
845
|
+
{
|
|
846
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
847
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
848
|
+
auto result = GetImpl()->TSEnumDeclarationTypeNodes(_context, _receiver);
|
|
849
|
+
return result;
|
|
850
|
+
}
|
|
851
|
+
KOALA_INTEROP_2(TSEnumDeclarationTypeNodes, KNativePointer, KNativePointer, KNativePointer);
|
|
852
|
+
|
|
831
853
|
KNativePointer impl_TSEnumDeclarationKey(KNativePointer context, KNativePointer receiver)
|
|
832
854
|
{
|
|
833
855
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -4166,32 +4188,23 @@ KBoolean impl_ScriptFunctionHasThrowStatementConst(KNativePointer context, KNati
|
|
|
4166
4188
|
}
|
|
4167
4189
|
KOALA_INTEROP_2(ScriptFunctionHasThrowStatementConst, KBoolean, KNativePointer, KNativePointer);
|
|
4168
4190
|
|
|
4169
|
-
KBoolean
|
|
4170
|
-
{
|
|
4171
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
4172
|
-
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
4173
|
-
auto result = GetImpl()->ScriptFunctionIsThrowingConst(_context, _receiver);
|
|
4174
|
-
return result;
|
|
4175
|
-
}
|
|
4176
|
-
KOALA_INTEROP_2(ScriptFunctionIsThrowingConst, KBoolean, KNativePointer, KNativePointer);
|
|
4177
|
-
|
|
4178
|
-
KBoolean impl_ScriptFunctionIsRethrowingConst(KNativePointer context, KNativePointer receiver)
|
|
4191
|
+
KBoolean impl_ScriptFunctionIsTrailingLambdaConst(KNativePointer context, KNativePointer receiver)
|
|
4179
4192
|
{
|
|
4180
4193
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
4181
4194
|
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
4182
|
-
auto result = GetImpl()->
|
|
4195
|
+
auto result = GetImpl()->ScriptFunctionIsTrailingLambdaConst(_context, _receiver);
|
|
4183
4196
|
return result;
|
|
4184
4197
|
}
|
|
4185
|
-
KOALA_INTEROP_2(
|
|
4198
|
+
KOALA_INTEROP_2(ScriptFunctionIsTrailingLambdaConst, KBoolean, KNativePointer, KNativePointer);
|
|
4186
4199
|
|
|
4187
|
-
KBoolean
|
|
4200
|
+
KBoolean impl_ScriptFunctionIsSyntheticConst(KNativePointer context, KNativePointer receiver)
|
|
4188
4201
|
{
|
|
4189
4202
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
4190
4203
|
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
4191
|
-
auto result = GetImpl()->
|
|
4204
|
+
auto result = GetImpl()->ScriptFunctionIsSyntheticConst(_context, _receiver);
|
|
4192
4205
|
return result;
|
|
4193
4206
|
}
|
|
4194
|
-
KOALA_INTEROP_2(
|
|
4207
|
+
KOALA_INTEROP_2(ScriptFunctionIsSyntheticConst, KBoolean, KNativePointer, KNativePointer);
|
|
4195
4208
|
|
|
4196
4209
|
KBoolean impl_ScriptFunctionIsDynamicConst(KNativePointer context, KNativePointer receiver)
|
|
4197
4210
|
{
|
|
@@ -4268,6 +4281,34 @@ KUInt impl_ScriptFunctionFormalParamsLengthConst(KNativePointer context, KNative
|
|
|
4268
4281
|
}
|
|
4269
4282
|
KOALA_INTEROP_2(ScriptFunctionFormalParamsLengthConst, KUInt, KNativePointer, KNativePointer);
|
|
4270
4283
|
|
|
4284
|
+
void impl_ScriptFunctionSetAsyncPairMethod(KNativePointer context, KNativePointer receiver, KNativePointer asyncPairFunction)
|
|
4285
|
+
{
|
|
4286
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
4287
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
4288
|
+
const auto _asyncPairFunction = reinterpret_cast<es2panda_AstNode*>(asyncPairFunction);
|
|
4289
|
+
GetImpl()->ScriptFunctionSetAsyncPairMethod(_context, _receiver, _asyncPairFunction);
|
|
4290
|
+
return ;
|
|
4291
|
+
}
|
|
4292
|
+
KOALA_INTEROP_V3(ScriptFunctionSetAsyncPairMethod, KNativePointer, KNativePointer, KNativePointer);
|
|
4293
|
+
|
|
4294
|
+
KNativePointer impl_ScriptFunctionAsyncPairMethodConst(KNativePointer context, KNativePointer receiver)
|
|
4295
|
+
{
|
|
4296
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
4297
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
4298
|
+
auto result = GetImpl()->ScriptFunctionAsyncPairMethodConst(_context, _receiver);
|
|
4299
|
+
return (void*)result;
|
|
4300
|
+
}
|
|
4301
|
+
KOALA_INTEROP_2(ScriptFunctionAsyncPairMethodConst, KNativePointer, KNativePointer, KNativePointer);
|
|
4302
|
+
|
|
4303
|
+
KNativePointer impl_ScriptFunctionAsyncPairMethod(KNativePointer context, KNativePointer receiver)
|
|
4304
|
+
{
|
|
4305
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
4306
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
4307
|
+
auto result = GetImpl()->ScriptFunctionAsyncPairMethod(_context, _receiver);
|
|
4308
|
+
return result;
|
|
4309
|
+
}
|
|
4310
|
+
KOALA_INTEROP_2(ScriptFunctionAsyncPairMethod, KNativePointer, KNativePointer, KNativePointer);
|
|
4311
|
+
|
|
4271
4312
|
void impl_ScriptFunctionEmplaceReturnStatements(KNativePointer context, KNativePointer receiver, KNativePointer returnStatements)
|
|
4272
4313
|
{
|
|
4273
4314
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -6856,6 +6897,15 @@ KNativePointer impl_AstNodeGetOrCreateHistoryNodeConst(KNativePointer context, K
|
|
|
6856
6897
|
}
|
|
6857
6898
|
KOALA_INTEROP_2(AstNodeGetOrCreateHistoryNodeConst, KNativePointer, KNativePointer, KNativePointer);
|
|
6858
6899
|
|
|
6900
|
+
void impl_AstNodeCleanCheckInformation(KNativePointer context, KNativePointer receiver)
|
|
6901
|
+
{
|
|
6902
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
6903
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
6904
|
+
GetImpl()->AstNodeCleanCheckInformation(_context, _receiver);
|
|
6905
|
+
return ;
|
|
6906
|
+
}
|
|
6907
|
+
KOALA_INTEROP_V2(AstNodeCleanCheckInformation, KNativePointer, KNativePointer);
|
|
6908
|
+
|
|
6859
6909
|
KNativePointer impl_CreateUnaryExpression(KNativePointer context, KNativePointer argument, KInt unaryOperator)
|
|
6860
6910
|
{
|
|
6861
6911
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -8493,6 +8543,84 @@ KNativePointer impl_UpdateCharLiteral(KNativePointer context, KNativePointer ori
|
|
|
8493
8543
|
}
|
|
8494
8544
|
KOALA_INTEROP_2(UpdateCharLiteral, KNativePointer, KNativePointer, KNativePointer);
|
|
8495
8545
|
|
|
8546
|
+
KNativePointer impl_CreateETSIntrinsicNode(KNativePointer context)
|
|
8547
|
+
{
|
|
8548
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8549
|
+
auto result = GetImpl()->CreateETSIntrinsicNode(_context);
|
|
8550
|
+
return result;
|
|
8551
|
+
}
|
|
8552
|
+
KOALA_INTEROP_1(CreateETSIntrinsicNode, KNativePointer, KNativePointer);
|
|
8553
|
+
|
|
8554
|
+
KNativePointer impl_UpdateETSIntrinsicNode(KNativePointer context, KNativePointer original)
|
|
8555
|
+
{
|
|
8556
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8557
|
+
const auto _original = reinterpret_cast<es2panda_AstNode*>(original);
|
|
8558
|
+
auto result = GetImpl()->UpdateETSIntrinsicNode(_context, _original);
|
|
8559
|
+
return result;
|
|
8560
|
+
}
|
|
8561
|
+
KOALA_INTEROP_2(UpdateETSIntrinsicNode, KNativePointer, KNativePointer, KNativePointer);
|
|
8562
|
+
|
|
8563
|
+
KNativePointer impl_CreateETSIntrinsicNode1(KNativePointer context, KNativePointer other)
|
|
8564
|
+
{
|
|
8565
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8566
|
+
const auto _other = reinterpret_cast<es2panda_AstNode*>(other);
|
|
8567
|
+
auto result = GetImpl()->CreateETSIntrinsicNode1(_context, _other);
|
|
8568
|
+
return result;
|
|
8569
|
+
}
|
|
8570
|
+
KOALA_INTEROP_2(CreateETSIntrinsicNode1, KNativePointer, KNativePointer, KNativePointer);
|
|
8571
|
+
|
|
8572
|
+
KNativePointer impl_UpdateETSIntrinsicNode1(KNativePointer context, KNativePointer original, KNativePointer other)
|
|
8573
|
+
{
|
|
8574
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8575
|
+
const auto _original = reinterpret_cast<es2panda_AstNode*>(original);
|
|
8576
|
+
const auto _other = reinterpret_cast<es2panda_AstNode*>(other);
|
|
8577
|
+
auto result = GetImpl()->UpdateETSIntrinsicNode1(_context, _original, _other);
|
|
8578
|
+
return result;
|
|
8579
|
+
}
|
|
8580
|
+
KOALA_INTEROP_3(UpdateETSIntrinsicNode1, KNativePointer, KNativePointer, KNativePointer, KNativePointer);
|
|
8581
|
+
|
|
8582
|
+
KNativePointer impl_CreateETSIntrinsicNode2(KNativePointer context, KInt type, KNativePointerArray _arguments, KUInt _argumentsSequenceLength)
|
|
8583
|
+
{
|
|
8584
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8585
|
+
const auto _type = static_cast<Es2pandaIntrinsicNodeType>(type);
|
|
8586
|
+
const auto __arguments = reinterpret_cast<es2panda_AstNode**>(_arguments);
|
|
8587
|
+
const auto __argumentsSequenceLength = static_cast<KUInt>(_argumentsSequenceLength);
|
|
8588
|
+
auto result = GetImpl()->CreateETSIntrinsicNode2(_context, _type, __arguments, __argumentsSequenceLength);
|
|
8589
|
+
return result;
|
|
8590
|
+
}
|
|
8591
|
+
KOALA_INTEROP_4(CreateETSIntrinsicNode2, KNativePointer, KNativePointer, KInt, KNativePointerArray, KUInt);
|
|
8592
|
+
|
|
8593
|
+
KNativePointer impl_UpdateETSIntrinsicNode2(KNativePointer context, KNativePointer original, KInt type, KNativePointerArray _arguments, KUInt _argumentsSequenceLength)
|
|
8594
|
+
{
|
|
8595
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8596
|
+
const auto _original = reinterpret_cast<es2panda_AstNode*>(original);
|
|
8597
|
+
const auto _type = static_cast<Es2pandaIntrinsicNodeType>(type);
|
|
8598
|
+
const auto __arguments = reinterpret_cast<es2panda_AstNode**>(_arguments);
|
|
8599
|
+
const auto __argumentsSequenceLength = static_cast<KUInt>(_argumentsSequenceLength);
|
|
8600
|
+
auto result = GetImpl()->UpdateETSIntrinsicNode2(_context, _original, _type, __arguments, __argumentsSequenceLength);
|
|
8601
|
+
return result;
|
|
8602
|
+
}
|
|
8603
|
+
KOALA_INTEROP_5(UpdateETSIntrinsicNode2, KNativePointer, KNativePointer, KNativePointer, KInt, KNativePointerArray, KUInt);
|
|
8604
|
+
|
|
8605
|
+
KInt impl_ETSIntrinsicNodeTypeConst(KNativePointer context, KNativePointer receiver)
|
|
8606
|
+
{
|
|
8607
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8608
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
8609
|
+
auto result = GetImpl()->ETSIntrinsicNodeTypeConst(_context, _receiver);
|
|
8610
|
+
return result;
|
|
8611
|
+
}
|
|
8612
|
+
KOALA_INTEROP_2(ETSIntrinsicNodeTypeConst, KInt, KNativePointer, KNativePointer);
|
|
8613
|
+
|
|
8614
|
+
KNativePointer impl_ETSIntrinsicNodeArgumentsConst(KNativePointer context, KNativePointer receiver)
|
|
8615
|
+
{
|
|
8616
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8617
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
8618
|
+
std::size_t length;
|
|
8619
|
+
auto result = GetImpl()->ETSIntrinsicNodeArgumentsConst(_context, _receiver, &length);
|
|
8620
|
+
return (void*)StageArena::cloneVector(result, length);
|
|
8621
|
+
}
|
|
8622
|
+
KOALA_INTEROP_2(ETSIntrinsicNodeArgumentsConst, KNativePointer, KNativePointer, KNativePointer);
|
|
8623
|
+
|
|
8496
8624
|
KNativePointer impl_CreateETSPackageDeclaration(KNativePointer context, KNativePointer name)
|
|
8497
8625
|
{
|
|
8498
8626
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -10186,6 +10314,34 @@ void impl_ETSParameterExpressionSetIdent(KNativePointer context, KNativePointer
|
|
|
10186
10314
|
}
|
|
10187
10315
|
KOALA_INTEROP_V3(ETSParameterExpressionSetIdent, KNativePointer, KNativePointer, KNativePointer);
|
|
10188
10316
|
|
|
10317
|
+
KNativePointer impl_ETSParameterExpressionSpread(KNativePointer context, KNativePointer receiver)
|
|
10318
|
+
{
|
|
10319
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
10320
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
10321
|
+
auto result = GetImpl()->ETSParameterExpressionSpread(_context, _receiver);
|
|
10322
|
+
return result;
|
|
10323
|
+
}
|
|
10324
|
+
KOALA_INTEROP_2(ETSParameterExpressionSpread, KNativePointer, KNativePointer, KNativePointer);
|
|
10325
|
+
|
|
10326
|
+
KNativePointer impl_ETSParameterExpressionSpreadConst(KNativePointer context, KNativePointer receiver)
|
|
10327
|
+
{
|
|
10328
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
10329
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
10330
|
+
auto result = GetImpl()->ETSParameterExpressionSpreadConst(_context, _receiver);
|
|
10331
|
+
return (void*)result;
|
|
10332
|
+
}
|
|
10333
|
+
KOALA_INTEROP_2(ETSParameterExpressionSpreadConst, KNativePointer, KNativePointer, KNativePointer);
|
|
10334
|
+
|
|
10335
|
+
void impl_ETSParameterExpressionSetSpread(KNativePointer context, KNativePointer receiver, KNativePointer spread)
|
|
10336
|
+
{
|
|
10337
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
10338
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
10339
|
+
const auto _spread = reinterpret_cast<es2panda_AstNode*>(spread);
|
|
10340
|
+
GetImpl()->ETSParameterExpressionSetSpread(_context, _receiver, _spread);
|
|
10341
|
+
return ;
|
|
10342
|
+
}
|
|
10343
|
+
KOALA_INTEROP_V3(ETSParameterExpressionSetSpread, KNativePointer, KNativePointer, KNativePointer);
|
|
10344
|
+
|
|
10189
10345
|
KNativePointer impl_ETSParameterExpressionRestParameterConst(KNativePointer context, KNativePointer receiver)
|
|
10190
10346
|
{
|
|
10191
10347
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -11845,6 +12001,133 @@ void impl_MethodDefinitionSetValueOverloads(KNativePointer context, KNativePoint
|
|
|
11845
12001
|
}
|
|
11846
12002
|
KOALA_INTEROP_V4(MethodDefinitionSetValueOverloads, KNativePointer, KNativePointer, KNativePointer, KUInt);
|
|
11847
12003
|
|
|
12004
|
+
KNativePointer impl_CreateOverloadDeclaration(KNativePointer context, KNativePointer key, KInt modifiers)
|
|
12005
|
+
{
|
|
12006
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12007
|
+
const auto _key = reinterpret_cast<es2panda_AstNode*>(key);
|
|
12008
|
+
const auto _modifiers = static_cast<Es2pandaModifierFlags>(modifiers);
|
|
12009
|
+
auto result = GetImpl()->CreateOverloadDeclaration(_context, _key, _modifiers);
|
|
12010
|
+
return result;
|
|
12011
|
+
}
|
|
12012
|
+
KOALA_INTEROP_3(CreateOverloadDeclaration, KNativePointer, KNativePointer, KNativePointer, KInt);
|
|
12013
|
+
|
|
12014
|
+
KNativePointer impl_UpdateOverloadDeclaration(KNativePointer context, KNativePointer original, KNativePointer key, KInt modifiers)
|
|
12015
|
+
{
|
|
12016
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12017
|
+
const auto _original = reinterpret_cast<es2panda_AstNode*>(original);
|
|
12018
|
+
const auto _key = reinterpret_cast<es2panda_AstNode*>(key);
|
|
12019
|
+
const auto _modifiers = static_cast<Es2pandaModifierFlags>(modifiers);
|
|
12020
|
+
auto result = GetImpl()->UpdateOverloadDeclaration(_context, _original, _key, _modifiers);
|
|
12021
|
+
return result;
|
|
12022
|
+
}
|
|
12023
|
+
KOALA_INTEROP_4(UpdateOverloadDeclaration, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KInt);
|
|
12024
|
+
|
|
12025
|
+
KInt impl_OverloadDeclarationFlagConst(KNativePointer context, KNativePointer receiver)
|
|
12026
|
+
{
|
|
12027
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12028
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12029
|
+
auto result = GetImpl()->OverloadDeclarationFlagConst(_context, _receiver);
|
|
12030
|
+
return result;
|
|
12031
|
+
}
|
|
12032
|
+
KOALA_INTEROP_2(OverloadDeclarationFlagConst, KInt, KNativePointer, KNativePointer);
|
|
12033
|
+
|
|
12034
|
+
KNativePointer impl_OverloadDeclarationOverloadedList(KNativePointer context, KNativePointer receiver)
|
|
12035
|
+
{
|
|
12036
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12037
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12038
|
+
std::size_t length;
|
|
12039
|
+
auto result = GetImpl()->OverloadDeclarationOverloadedList(_context, _receiver, &length);
|
|
12040
|
+
return StageArena::cloneVector(result, length);
|
|
12041
|
+
}
|
|
12042
|
+
KOALA_INTEROP_2(OverloadDeclarationOverloadedList, KNativePointer, KNativePointer, KNativePointer);
|
|
12043
|
+
|
|
12044
|
+
void impl_OverloadDeclarationSetOverloadedList(KNativePointer context, KNativePointer receiver, KNativePointerArray overloadedList, KUInt overloadedListSequenceLength)
|
|
12045
|
+
{
|
|
12046
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12047
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12048
|
+
const auto _overloadedList = reinterpret_cast<es2panda_AstNode**>(overloadedList);
|
|
12049
|
+
const auto _overloadedListSequenceLength = static_cast<KUInt>(overloadedListSequenceLength);
|
|
12050
|
+
GetImpl()->OverloadDeclarationSetOverloadedList(_context, _receiver, _overloadedList, _overloadedListSequenceLength);
|
|
12051
|
+
return ;
|
|
12052
|
+
}
|
|
12053
|
+
KOALA_INTEROP_V4(OverloadDeclarationSetOverloadedList, KNativePointer, KNativePointer, KNativePointerArray, KUInt);
|
|
12054
|
+
|
|
12055
|
+
void impl_OverloadDeclarationPushFront(KNativePointer context, KNativePointer receiver, KNativePointer overloadedExpression)
|
|
12056
|
+
{
|
|
12057
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12058
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12059
|
+
const auto _overloadedExpression = reinterpret_cast<es2panda_AstNode*>(overloadedExpression);
|
|
12060
|
+
GetImpl()->OverloadDeclarationPushFront(_context, _receiver, _overloadedExpression);
|
|
12061
|
+
return ;
|
|
12062
|
+
}
|
|
12063
|
+
KOALA_INTEROP_V3(OverloadDeclarationPushFront, KNativePointer, KNativePointer, KNativePointer);
|
|
12064
|
+
|
|
12065
|
+
void impl_OverloadDeclarationAddOverloadDeclFlag(KNativePointer context, KNativePointer receiver, KInt overloadFlag)
|
|
12066
|
+
{
|
|
12067
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12068
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12069
|
+
const auto _overloadFlag = static_cast<Es2pandaOverloadDeclFlags>(overloadFlag);
|
|
12070
|
+
GetImpl()->OverloadDeclarationAddOverloadDeclFlag(_context, _receiver, _overloadFlag);
|
|
12071
|
+
return ;
|
|
12072
|
+
}
|
|
12073
|
+
KOALA_INTEROP_V3(OverloadDeclarationAddOverloadDeclFlag, KNativePointer, KNativePointer, KInt);
|
|
12074
|
+
|
|
12075
|
+
KBoolean impl_OverloadDeclarationHasOverloadDeclFlagConst(KNativePointer context, KNativePointer receiver, KInt overloadFlag)
|
|
12076
|
+
{
|
|
12077
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12078
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12079
|
+
const auto _overloadFlag = static_cast<Es2pandaOverloadDeclFlags>(overloadFlag);
|
|
12080
|
+
auto result = GetImpl()->OverloadDeclarationHasOverloadDeclFlagConst(_context, _receiver, _overloadFlag);
|
|
12081
|
+
return result;
|
|
12082
|
+
}
|
|
12083
|
+
KOALA_INTEROP_3(OverloadDeclarationHasOverloadDeclFlagConst, KBoolean, KNativePointer, KNativePointer, KInt);
|
|
12084
|
+
|
|
12085
|
+
KBoolean impl_OverloadDeclarationIsConstructorOverloadDeclaration(KNativePointer context, KNativePointer receiver)
|
|
12086
|
+
{
|
|
12087
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12088
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12089
|
+
auto result = GetImpl()->OverloadDeclarationIsConstructorOverloadDeclaration(_context, _receiver);
|
|
12090
|
+
return result;
|
|
12091
|
+
}
|
|
12092
|
+
KOALA_INTEROP_2(OverloadDeclarationIsConstructorOverloadDeclaration, KBoolean, KNativePointer, KNativePointer);
|
|
12093
|
+
|
|
12094
|
+
KBoolean impl_OverloadDeclarationIsFunctionOverloadDeclaration(KNativePointer context, KNativePointer receiver)
|
|
12095
|
+
{
|
|
12096
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12097
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12098
|
+
auto result = GetImpl()->OverloadDeclarationIsFunctionOverloadDeclaration(_context, _receiver);
|
|
12099
|
+
return result;
|
|
12100
|
+
}
|
|
12101
|
+
KOALA_INTEROP_2(OverloadDeclarationIsFunctionOverloadDeclaration, KBoolean, KNativePointer, KNativePointer);
|
|
12102
|
+
|
|
12103
|
+
KBoolean impl_OverloadDeclarationIsClassMethodOverloadDeclaration(KNativePointer context, KNativePointer receiver)
|
|
12104
|
+
{
|
|
12105
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12106
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12107
|
+
auto result = GetImpl()->OverloadDeclarationIsClassMethodOverloadDeclaration(_context, _receiver);
|
|
12108
|
+
return result;
|
|
12109
|
+
}
|
|
12110
|
+
KOALA_INTEROP_2(OverloadDeclarationIsClassMethodOverloadDeclaration, KBoolean, KNativePointer, KNativePointer);
|
|
12111
|
+
|
|
12112
|
+
KBoolean impl_OverloadDeclarationIsInterfaceMethodOverloadDeclaration(KNativePointer context, KNativePointer receiver)
|
|
12113
|
+
{
|
|
12114
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12115
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12116
|
+
auto result = GetImpl()->OverloadDeclarationIsInterfaceMethodOverloadDeclaration(_context, _receiver);
|
|
12117
|
+
return result;
|
|
12118
|
+
}
|
|
12119
|
+
KOALA_INTEROP_2(OverloadDeclarationIsInterfaceMethodOverloadDeclaration, KBoolean, KNativePointer, KNativePointer);
|
|
12120
|
+
|
|
12121
|
+
void impl_OverloadDeclarationDumpModifierConst(KNativePointer context, KNativePointer receiver, KNativePointer dumper)
|
|
12122
|
+
{
|
|
12123
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12124
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12125
|
+
const auto _dumper = reinterpret_cast<es2panda_SrcDumper*>(dumper);
|
|
12126
|
+
GetImpl()->OverloadDeclarationDumpModifierConst(_context, _receiver, _dumper);
|
|
12127
|
+
return ;
|
|
12128
|
+
}
|
|
12129
|
+
KOALA_INTEROP_V3(OverloadDeclarationDumpModifierConst, KNativePointer, KNativePointer, KNativePointer);
|
|
12130
|
+
|
|
11848
12131
|
KNativePointer impl_CreateTSNullKeyword(KNativePointer context)
|
|
11849
12132
|
{
|
|
11850
12133
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koalaui/libarkts",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.6+devel",
|
|
4
4
|
"bin": "./lib/es2panda",
|
|
5
5
|
"typesVersions": {
|
|
6
6
|
"*": {
|
|
7
7
|
"./compat/*": [
|
|
8
|
-
"./
|
|
8
|
+
"./lib/types/wrapper-compat/index.d.ts"
|
|
9
9
|
],
|
|
10
10
|
"*": [
|
|
11
|
-
"./
|
|
11
|
+
"./lib/types/index.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
},
|
|
@@ -23,17 +23,21 @@
|
|
|
23
23
|
"./plugins/build/src/**/*"
|
|
24
24
|
],
|
|
25
25
|
"config": {
|
|
26
|
-
"gen_version": "2.1.9-arktscgen-
|
|
26
|
+
"gen_version": "2.1.9-arktscgen-8",
|
|
27
27
|
"panda_sdk_path": "../../incremental/tools/panda/node_modules/@panda/sdk",
|
|
28
28
|
"ohos_panda_sdk_path": "../build/sdk",
|
|
29
29
|
"panda_sdk_version": "next"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@koalaui/ets-tsc": "4.9.5-
|
|
33
|
-
"@koalaui/build-common": "1.7.
|
|
34
|
-
"@koalaui/compat": "1.7.
|
|
35
|
-
"@koalaui/common": "1.7.
|
|
36
|
-
"@koalaui/
|
|
32
|
+
"@koalaui/ets-tsc": "4.9.5-r6",
|
|
33
|
+
"@koalaui/build-common": "1.7.6+devel",
|
|
34
|
+
"@koalaui/compat": "1.7.6+devel",
|
|
35
|
+
"@koalaui/common": "1.7.6+devel",
|
|
36
|
+
"@koalaui/harness": "1.7.6+devel",
|
|
37
|
+
"@koalaui/interop": "1.7.6+devel",
|
|
38
|
+
"@koalaui/fast-arktsc": "file:../fast-arktsc",
|
|
39
|
+
"@types/mocha": "^9.1.0",
|
|
40
|
+
"mocha": "^9.2.2",
|
|
37
41
|
"node-addon-api": "8.0.0",
|
|
38
42
|
"node-api-headers": "0.0.5",
|
|
39
43
|
"commander": "10.0.1"
|
|
@@ -43,27 +47,26 @@
|
|
|
43
47
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
44
48
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
45
49
|
"@rollup/plugin-terser": "^0.4.4",
|
|
46
|
-
"@rollup/plugin-typescript": "^11.1.6"
|
|
50
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
51
|
+
"rimraf": "^6.0.1"
|
|
47
52
|
},
|
|
48
53
|
"scripts": {
|
|
49
54
|
"clean": "rimraf build native/build* ./.rollup.cache tsconfig.tsbuildinfo lib",
|
|
50
55
|
"clean:plugins": "rimraf plugins/build",
|
|
51
56
|
"compile:koala:interop": "npm run --prefix ../../interop compile",
|
|
52
57
|
"compile:meson": "cd native && meson setup build && meson compile -C build",
|
|
58
|
+
"compile:meson:mingw": "cd native && meson setup --cross-file ./mingw.cross mingw_build && meson compile -C mingw_build",
|
|
53
59
|
"crosscompile:meson": "cd native && CXX=clang++ meson setup -D cross_compile=true build && CXX=clang++ meson compile -C build",
|
|
54
60
|
"copy:.node": "mkdir -p ./build/native/build && cp ./native/build/es2panda_*.node ./build/native/build",
|
|
55
61
|
"compile:native": "npm run compile:koala:interop && npm run compile:meson && npm run copy:.node",
|
|
56
62
|
"crosscompile:native": "npm run compile:koala:interop && npm run crosscompile:meson && npm run copy:.node",
|
|
57
|
-
"compile:src": "npx ets-tsc -p ./tsconfig.json",
|
|
58
63
|
"compile": "npm run compile:native && npm run compile:js",
|
|
59
64
|
"compile:release": "npm run crosscompile:native && npm run compile:js",
|
|
60
|
-
"compile:js": "
|
|
61
|
-
"compile:
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"simultaneous": "../../incremental/tools/panda/arkts/ui2abc --arktsconfig arktsconfig.json --output ./build/abc/main.abc:./build/abc/library.abc plugins/input/main.ets:plugins/input/library.ets",
|
|
66
|
-
"run": "npm run compile && npm run compile:plugins && npm run direct",
|
|
65
|
+
"compile:js": "rm -rf lib/ && rollup -c rollup.lib.mjs && rollup -c rollup.es2panda.mjs",
|
|
66
|
+
"compile:plugins": "rollup -c ./rollup.printer-plugin.mjs",
|
|
67
|
+
"direct": "fast-arktsc --config arktsconfig.json --compiler ../../incremental/tools/panda/arkts/ui2abc --link-name ./build/abc/main.abc && ninja -f build/abc/build.ninja",
|
|
68
|
+
"simultaneous": "mkdir -p build/abc && bash ../../incremental/tools/panda/arkts/ui2abc --simultaneous --arktsconfig arktsconfig.json --output ./build/abc/main.abc:./build/abc/library.abc plugins/input/main.ets:plugins/input/library.ets",
|
|
69
|
+
"run": "npm run compile && npm run compile:plugins && npm run simultaneous",
|
|
67
70
|
"run:memo": "npm run compile && npm run compile:plugins && npm run compile --prefix ../memo-plugin && npm run memo",
|
|
68
71
|
"run:abc": "$npm_package_config_panda_sdk_path/linux_host_tools/bin/ark --load-runtimes=ets --boot-panda-files=$npm_package_config_panda_sdk_path/ets/etsstdlib.abc ./main.abc main.ETSGLOBAL::main",
|
|
69
72
|
"mocha": "PANDA_SDK_PATH=${PANDA_SDK_PATH:=$npm_package_config_panda_sdk_path} TS_NODE_PROJECT=./test/tsconfig.json mocha -r tsconfig-paths/register --reporter-option maxDiffSize=0",
|
|
@@ -76,9 +79,9 @@
|
|
|
76
79
|
"panda:sdk:clean": "cd ../../incremental/tools/panda && rimraf node_modules",
|
|
77
80
|
"panda:sdk:install": "cd ../../incremental/tools/panda && echo \"Installing panda sdk $npm_package_config_panda_sdk_version\" && PANDA_SDK_VERSION=$npm_package_config_panda_sdk_version npm run panda:sdk:install",
|
|
78
81
|
"panda:sdk:reinstall": "npm run panda:sdk:clean && npm run panda:sdk:install",
|
|
79
|
-
"regenerate:current": "npm run compile -C ../../../arktscgen && node ../../../arktscgen --panda-sdk-path $npm_package_config_panda_sdk_path --output-dir ../ --options-file ./generator/options.json5 --no-initialize --debug",
|
|
80
|
-
"regenerate": "npx --yes @idlizer/arktscgen@$npm_package_config_gen_version --panda-sdk-path $npm_package_config_panda_sdk_path --output-dir ../ --options-file ./generator/options.json5 --no-initialize",
|
|
82
|
+
"regenerate:current": "rimraf -rf src/generated && npm run compile -C ../../../arktscgen && node ../../../arktscgen --panda-sdk-path $npm_package_config_panda_sdk_path --output-dir ../ --options-file ./generator/options.json5 --no-initialize --debug",
|
|
83
|
+
"regenerate": "rimraf -rf src/generated && npx --yes @idlizer/arktscgen@$npm_package_config_gen_version --panda-sdk-path $npm_package_config_panda_sdk_path --output-dir ../ --options-file ./generator/options.json5 --no-initialize",
|
|
81
84
|
"regenerate:ohos": "npx --yes @idlizer/arktscgen@$npm_package_config_gen_version --panda-sdk-path ${PANDA_SDK_PATH:=$npm_package_config_ohos_panda_sdk_path} --output-dir ../ --options-file ./generator/options.json5 --no-initialize",
|
|
82
|
-
"reinstall:regenerate": "npm run panda:sdk:reinstall && npm run regenerate"
|
|
85
|
+
"reinstall:regenerate": "npm run panda:sdk:reinstall && npm run regenerate && git diff --shortstat"
|
|
83
86
|
}
|
|
84
87
|
}
|
|
@@ -29,7 +29,7 @@ import * as path from "path"
|
|
|
29
29
|
import * as fs from "fs"
|
|
30
30
|
import { Es2pandaPluginDiagnosticType } from "./generated/Es2pandaEnums"
|
|
31
31
|
|
|
32
|
-
//
|
|
32
|
+
// Improve: this type should be in interop
|
|
33
33
|
export type KPtrArray = BigUint64Array
|
|
34
34
|
|
|
35
35
|
export class Es2pandaNativeModule {
|
|
@@ -48,6 +48,9 @@ export class Es2pandaNativeModule {
|
|
|
48
48
|
_ContextErrorMessage(context: KPtr): KPtr {
|
|
49
49
|
throw new Error("Not implemented")
|
|
50
50
|
}
|
|
51
|
+
_GetAllErrorMessages(context: KPtr): KPtr {
|
|
52
|
+
throw new Error("Not implemented")
|
|
53
|
+
}
|
|
51
54
|
_AstNodeChildren(context: KPtr, node: KPtr): KPtr {
|
|
52
55
|
throw new Error("Not implemented")
|
|
53
56
|
}
|
|
@@ -159,6 +162,30 @@ export class Es2pandaNativeModule {
|
|
|
159
162
|
_OptionsArkTsConfig(context: KNativePointer, options: KNativePointer): KNativePointer {
|
|
160
163
|
throw new Error("Not implemented");
|
|
161
164
|
}
|
|
165
|
+
_Checker_ScriptFunctionSignature(context: KNativePointer, node: KNativePointer): KNativePointer {
|
|
166
|
+
throw new Error("Not implemented");
|
|
167
|
+
}
|
|
168
|
+
_Checker_ScriptFunctionSetSignature(context: KNativePointer, node: KNativePointer, signature: KNativePointer): void {
|
|
169
|
+
throw new Error("Not implemented");
|
|
170
|
+
}
|
|
171
|
+
_Checker_SignatureReturnType(context: KNativePointer, signature: KNativePointer): KNativePointer {
|
|
172
|
+
throw new Error("Not implemented");
|
|
173
|
+
}
|
|
174
|
+
_Checker_ScriptFunctionGetPreferredReturnType(context: KNativePointer, node: KNativePointer): KNativePointer {
|
|
175
|
+
throw new Error("Not implemented");
|
|
176
|
+
}
|
|
177
|
+
_Checker_ScriptFunctionSetPreferredReturnType(context: KNativePointer, node: KNativePointer, type: KNativePointer): void {
|
|
178
|
+
throw new Error("Not implemented");
|
|
179
|
+
}
|
|
180
|
+
_Checker_TypeToString(context: KNativePointer, type: KNativePointer): KNativePointer {
|
|
181
|
+
throw new Error("Not implemented");
|
|
182
|
+
}
|
|
183
|
+
_Checker_TypeNodeGetType(context: KNativePointer, node: KNativePointer): KNativePointer {
|
|
184
|
+
throw new Error("Not implemented");
|
|
185
|
+
}
|
|
186
|
+
_JsdocStringFromDeclaration(context: KPtr, node: KPtr): KPtr {
|
|
187
|
+
throw new Error("Not implemented")
|
|
188
|
+
}
|
|
162
189
|
|
|
163
190
|
// From koala-wrapper
|
|
164
191
|
_ClassVariableDeclaration(context: KNativePointer, classInstance: KNativePointer): KNativePointer {
|
|
@@ -185,18 +212,18 @@ export class Es2pandaNativeModule {
|
|
|
185
212
|
_CreateDiagnosticKind(context: KNativePointer, message: string, type: Es2pandaPluginDiagnosticType): KNativePointer {
|
|
186
213
|
throw new Error("Not implemented")
|
|
187
214
|
}
|
|
188
|
-
_CreateDiagnosticInfo(context: KNativePointer, kind: KNativePointer, args: string[], argc: number): KNativePointer {
|
|
215
|
+
_CreateDiagnosticInfo(context: KNativePointer, kind: KNativePointer, args: string[], argc: number, pos: KNativePointer): KNativePointer {
|
|
189
216
|
throw new Error("Not implemented")
|
|
190
217
|
}
|
|
191
218
|
_CreateSuggestionInfo(context: KNativePointer, kind: KNativePointer, args: string[],
|
|
192
|
-
argc: number, substitutionCode: string): KNativePointer {
|
|
219
|
+
argc: number, substitutionCode: string, range: KNativePointer): KNativePointer {
|
|
193
220
|
throw new Error("Not implemented")
|
|
194
221
|
}
|
|
195
222
|
_LogDiagnostic(context: KNativePointer, kind: KNativePointer, argv: string[], argc: number, pos: KNativePointer): void {
|
|
196
223
|
throw new Error("Not implemented")
|
|
197
224
|
}
|
|
198
225
|
_LogDiagnosticWithSuggestion(context: KNativePointer, diagnosticInfo: KNativePointer,
|
|
199
|
-
suggestionInfo?: KNativePointer
|
|
226
|
+
suggestionInfo?: KNativePointer): void {
|
|
200
227
|
throw new Error("Not implemented")
|
|
201
228
|
}
|
|
202
229
|
_SetUpSoPath(soPath: string): void {
|
|
@@ -211,7 +238,7 @@ export class Es2pandaNativeModule {
|
|
|
211
238
|
_ProgramCanSkipPhases(context: KNativePointer, program: KNativePointer): boolean {
|
|
212
239
|
throw new Error("Not implemented")
|
|
213
240
|
}
|
|
214
|
-
_GenerateTsDeclarationsFromContext(config: KPtr, outputDeclEts: String, outputEts: String, exportAll: KBoolean, isolated: KBoolean): KPtr {
|
|
241
|
+
_GenerateTsDeclarationsFromContext(config: KPtr, outputDeclEts: String, outputEts: String, exportAll: KBoolean, isolated: KBoolean, recordFile: String): KPtr {
|
|
215
242
|
throw new Error("Not implemented")
|
|
216
243
|
}
|
|
217
244
|
_GenerateStaticDeclarationsFromContext(config: KPtr, outputPath: String): KPtr {
|
|
@@ -255,4 +282,4 @@ export function initGeneratedEs2panda(): GeneratedEs2pandaNativeModule {
|
|
|
255
282
|
// registerNativeModule("InteropNativeModule", NativeModule)
|
|
256
283
|
loadNativeModuleLibrary("NativeModule", instance)
|
|
257
284
|
return instance
|
|
258
|
-
}
|
|
285
|
+
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
import { ChainExpression, Expression, isChainExpression, isMemberExpression, MemberExpression } from "src/generated";
|
|
16
|
+
import { BlockStatement, ChainExpression, Expression, isChainExpression, isMemberExpression, MemberExpression } from "src/generated";
|
|
17
17
|
import { AbstractVisitor } from "./AbstractVisitor";
|
|
18
18
|
import { AstNode } from "./peers/AstNode"
|
|
19
19
|
import { factory } from "./factory/nodeFactory";
|
|
@@ -65,6 +65,7 @@ export class ChainExpressionFilter extends AbstractVisitor {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
|
|
68
|
+
visitor(beforeChildren: BlockStatement): BlockStatement
|
|
68
69
|
visitor(beforeChildren: AstNode): AstNode {
|
|
69
70
|
const node = this.visitEachChild(beforeChildren)
|
|
70
71
|
if (isChainExpression(node)) {
|