@idlizer/arktscgen 2.1.9-arktscgen-5 → 2.1.9-arktscgen-8
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 +151 -0
- 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 +77 -1
- package/build/libarkts-copy/native/src/common.cc +5 -5
- package/build/libarkts-copy/native/src/generated/bridges.cc +312 -33
- package/build/libarkts-copy/package.json +24 -20
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +19 -1
- 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 -7
- 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 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +11 -7
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +3 -6
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +13 -12
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +35 -4
- package/build/libarkts-copy/src/arkts-api/plugins.ts +12 -3
- package/build/libarkts-copy/src/arkts-api/static/global.ts +2 -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 +57 -0
- package/build/libarkts-copy/src/arkts-api/utilities/nativePtrDecoder.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +6 -8
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +153 -29
- package/build/libarkts-copy/src/arkts-api/visitor.ts +16 -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 +93 -12
- package/build/libarkts-copy/src/generated/factory.ts +38 -25
- package/build/libarkts-copy/src/generated/index.ts +2 -0
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +15 -3
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +10 -2
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +11 -2
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +20 -4
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +10 -2
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +12 -9
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +77 -0
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +3 -1
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +29 -5
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +12 -3
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +14 -2
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +103 -0
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/Program.ts +8 -0
- package/build/libarkts-copy/src/generated/peers/Property.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +26 -9
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +12 -3
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +12 -3
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +29 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +11 -3
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +1 -1
- package/build/libarkts-copy/src/index.ts +1 -4
- package/build/libarkts-copy/src/plugin-utils.ts +37 -37
- package/build/libarkts-copy/src/reexport-for-generated.ts +7 -0
- 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 +3 -4
- 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 +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticInfo.ts +1 -1
- 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/SourceRange.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SuggestionInfo.ts +1 -1
- 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 +10 -11
- 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 +6 -6
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/visitor.ts +10 -10
- package/lib/index.js +7194 -7097
- package/package.json +2 -2
- package/templates/Es2pandaNativeModule.ts +1 -1
- package/templates/bridges.cc +5 -0
- 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/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
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourcePosition.ts +0 -38
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
#include <common.h>
|
|
17
17
|
|
|
18
|
+
/*
|
|
19
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen v2.1.9+devel. DO NOT EDIT MANUALLY!
|
|
20
|
+
* es2panda c962477266722fec18ce4851b5efccddada11561(2025-07-22) sdk v1.5.0-dev.38458
|
|
21
|
+
*/
|
|
22
|
+
|
|
18
23
|
KNativePointer impl_CreateNumberLiteral(KNativePointer context, KInt value)
|
|
19
24
|
{
|
|
20
25
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -500,24 +505,6 @@ KInt impl_ETSFunctionTypeFlagsConst(KNativePointer context, KNativePointer recei
|
|
|
500
505
|
}
|
|
501
506
|
KOALA_INTEROP_2(ETSFunctionTypeFlagsConst, KInt, KNativePointer, KNativePointer);
|
|
502
507
|
|
|
503
|
-
KBoolean impl_ETSFunctionTypeIsThrowingConst(KNativePointer context, KNativePointer receiver)
|
|
504
|
-
{
|
|
505
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
506
|
-
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
507
|
-
auto result = GetImpl()->ETSFunctionTypeIrIsThrowingConst(_context, _receiver);
|
|
508
|
-
return result;
|
|
509
|
-
}
|
|
510
|
-
KOALA_INTEROP_2(ETSFunctionTypeIsThrowingConst, KBoolean, KNativePointer, KNativePointer);
|
|
511
|
-
|
|
512
|
-
KBoolean impl_ETSFunctionTypeIsRethrowingConst(KNativePointer context, KNativePointer receiver)
|
|
513
|
-
{
|
|
514
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
515
|
-
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
516
|
-
auto result = GetImpl()->ETSFunctionTypeIrIsRethrowingConst(_context, _receiver);
|
|
517
|
-
return result;
|
|
518
|
-
}
|
|
519
|
-
KOALA_INTEROP_2(ETSFunctionTypeIsRethrowingConst, KBoolean, KNativePointer, KNativePointer);
|
|
520
|
-
|
|
521
508
|
KBoolean impl_ETSFunctionTypeIsExtensionFunctionConst(KNativePointer context, KNativePointer receiver)
|
|
522
509
|
{
|
|
523
510
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -814,6 +801,37 @@ KNativePointer impl_UpdateTSEnumDeclaration(KNativePointer context, KNativePoint
|
|
|
814
801
|
}
|
|
815
802
|
KOALA_INTEROP_8(UpdateTSEnumDeclaration, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KBoolean, KBoolean, KBoolean);
|
|
816
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
|
+
|
|
817
835
|
KNativePointer impl_TSEnumDeclarationKeyConst(KNativePointer context, KNativePointer receiver)
|
|
818
836
|
{
|
|
819
837
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -823,6 +841,15 @@ KNativePointer impl_TSEnumDeclarationKeyConst(KNativePointer context, KNativePoi
|
|
|
823
841
|
}
|
|
824
842
|
KOALA_INTEROP_2(TSEnumDeclarationKeyConst, KNativePointer, KNativePointer, KNativePointer);
|
|
825
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
|
+
|
|
826
853
|
KNativePointer impl_TSEnumDeclarationKey(KNativePointer context, KNativePointer receiver)
|
|
827
854
|
{
|
|
828
855
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -4161,32 +4188,23 @@ KBoolean impl_ScriptFunctionHasThrowStatementConst(KNativePointer context, KNati
|
|
|
4161
4188
|
}
|
|
4162
4189
|
KOALA_INTEROP_2(ScriptFunctionHasThrowStatementConst, KBoolean, KNativePointer, KNativePointer);
|
|
4163
4190
|
|
|
4164
|
-
KBoolean
|
|
4165
|
-
{
|
|
4166
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
4167
|
-
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
4168
|
-
auto result = GetImpl()->ScriptFunctionIsThrowingConst(_context, _receiver);
|
|
4169
|
-
return result;
|
|
4170
|
-
}
|
|
4171
|
-
KOALA_INTEROP_2(ScriptFunctionIsThrowingConst, KBoolean, KNativePointer, KNativePointer);
|
|
4172
|
-
|
|
4173
|
-
KBoolean impl_ScriptFunctionIsRethrowingConst(KNativePointer context, KNativePointer receiver)
|
|
4191
|
+
KBoolean impl_ScriptFunctionIsTrailingLambdaConst(KNativePointer context, KNativePointer receiver)
|
|
4174
4192
|
{
|
|
4175
4193
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
4176
4194
|
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
4177
|
-
auto result = GetImpl()->
|
|
4195
|
+
auto result = GetImpl()->ScriptFunctionIsTrailingLambdaConst(_context, _receiver);
|
|
4178
4196
|
return result;
|
|
4179
4197
|
}
|
|
4180
|
-
KOALA_INTEROP_2(
|
|
4198
|
+
KOALA_INTEROP_2(ScriptFunctionIsTrailingLambdaConst, KBoolean, KNativePointer, KNativePointer);
|
|
4181
4199
|
|
|
4182
|
-
KBoolean
|
|
4200
|
+
KBoolean impl_ScriptFunctionIsSyntheticConst(KNativePointer context, KNativePointer receiver)
|
|
4183
4201
|
{
|
|
4184
4202
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
4185
4203
|
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
4186
|
-
auto result = GetImpl()->
|
|
4204
|
+
auto result = GetImpl()->ScriptFunctionIsSyntheticConst(_context, _receiver);
|
|
4187
4205
|
return result;
|
|
4188
4206
|
}
|
|
4189
|
-
KOALA_INTEROP_2(
|
|
4207
|
+
KOALA_INTEROP_2(ScriptFunctionIsSyntheticConst, KBoolean, KNativePointer, KNativePointer);
|
|
4190
4208
|
|
|
4191
4209
|
KBoolean impl_ScriptFunctionIsDynamicConst(KNativePointer context, KNativePointer receiver)
|
|
4192
4210
|
{
|
|
@@ -6851,6 +6869,15 @@ KNativePointer impl_AstNodeGetOrCreateHistoryNodeConst(KNativePointer context, K
|
|
|
6851
6869
|
}
|
|
6852
6870
|
KOALA_INTEROP_2(AstNodeGetOrCreateHistoryNodeConst, KNativePointer, KNativePointer, KNativePointer);
|
|
6853
6871
|
|
|
6872
|
+
void impl_AstNodeCleanCheckInformation(KNativePointer context, KNativePointer receiver)
|
|
6873
|
+
{
|
|
6874
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
6875
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
6876
|
+
GetImpl()->AstNodeCleanCheckInformation(_context, _receiver);
|
|
6877
|
+
return ;
|
|
6878
|
+
}
|
|
6879
|
+
KOALA_INTEROP_V2(AstNodeCleanCheckInformation, KNativePointer, KNativePointer);
|
|
6880
|
+
|
|
6854
6881
|
KNativePointer impl_CreateUnaryExpression(KNativePointer context, KNativePointer argument, KInt unaryOperator)
|
|
6855
6882
|
{
|
|
6856
6883
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -8488,6 +8515,84 @@ KNativePointer impl_UpdateCharLiteral(KNativePointer context, KNativePointer ori
|
|
|
8488
8515
|
}
|
|
8489
8516
|
KOALA_INTEROP_2(UpdateCharLiteral, KNativePointer, KNativePointer, KNativePointer);
|
|
8490
8517
|
|
|
8518
|
+
KNativePointer impl_CreateETSIntrinsicNode(KNativePointer context)
|
|
8519
|
+
{
|
|
8520
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8521
|
+
auto result = GetImpl()->CreateETSIntrinsicNode(_context);
|
|
8522
|
+
return result;
|
|
8523
|
+
}
|
|
8524
|
+
KOALA_INTEROP_1(CreateETSIntrinsicNode, KNativePointer, KNativePointer);
|
|
8525
|
+
|
|
8526
|
+
KNativePointer impl_UpdateETSIntrinsicNode(KNativePointer context, KNativePointer original)
|
|
8527
|
+
{
|
|
8528
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8529
|
+
const auto _original = reinterpret_cast<es2panda_AstNode*>(original);
|
|
8530
|
+
auto result = GetImpl()->UpdateETSIntrinsicNode(_context, _original);
|
|
8531
|
+
return result;
|
|
8532
|
+
}
|
|
8533
|
+
KOALA_INTEROP_2(UpdateETSIntrinsicNode, KNativePointer, KNativePointer, KNativePointer);
|
|
8534
|
+
|
|
8535
|
+
KNativePointer impl_CreateETSIntrinsicNode1(KNativePointer context, KNativePointer other)
|
|
8536
|
+
{
|
|
8537
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8538
|
+
const auto _other = reinterpret_cast<es2panda_AstNode*>(other);
|
|
8539
|
+
auto result = GetImpl()->CreateETSIntrinsicNode1(_context, _other);
|
|
8540
|
+
return result;
|
|
8541
|
+
}
|
|
8542
|
+
KOALA_INTEROP_2(CreateETSIntrinsicNode1, KNativePointer, KNativePointer, KNativePointer);
|
|
8543
|
+
|
|
8544
|
+
KNativePointer impl_UpdateETSIntrinsicNode1(KNativePointer context, KNativePointer original, KNativePointer other)
|
|
8545
|
+
{
|
|
8546
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8547
|
+
const auto _original = reinterpret_cast<es2panda_AstNode*>(original);
|
|
8548
|
+
const auto _other = reinterpret_cast<es2panda_AstNode*>(other);
|
|
8549
|
+
auto result = GetImpl()->UpdateETSIntrinsicNode1(_context, _original, _other);
|
|
8550
|
+
return result;
|
|
8551
|
+
}
|
|
8552
|
+
KOALA_INTEROP_3(UpdateETSIntrinsicNode1, KNativePointer, KNativePointer, KNativePointer, KNativePointer);
|
|
8553
|
+
|
|
8554
|
+
KNativePointer impl_CreateETSIntrinsicNode2(KNativePointer context, KInt type, KNativePointerArray _arguments, KUInt _argumentsSequenceLength)
|
|
8555
|
+
{
|
|
8556
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8557
|
+
const auto _type = static_cast<Es2pandaIntrinsicNodeType>(type);
|
|
8558
|
+
const auto __arguments = reinterpret_cast<es2panda_AstNode**>(_arguments);
|
|
8559
|
+
const auto __argumentsSequenceLength = static_cast<KUInt>(_argumentsSequenceLength);
|
|
8560
|
+
auto result = GetImpl()->CreateETSIntrinsicNode2(_context, _type, __arguments, __argumentsSequenceLength);
|
|
8561
|
+
return result;
|
|
8562
|
+
}
|
|
8563
|
+
KOALA_INTEROP_4(CreateETSIntrinsicNode2, KNativePointer, KNativePointer, KInt, KNativePointerArray, KUInt);
|
|
8564
|
+
|
|
8565
|
+
KNativePointer impl_UpdateETSIntrinsicNode2(KNativePointer context, KNativePointer original, KInt type, KNativePointerArray _arguments, KUInt _argumentsSequenceLength)
|
|
8566
|
+
{
|
|
8567
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8568
|
+
const auto _original = reinterpret_cast<es2panda_AstNode*>(original);
|
|
8569
|
+
const auto _type = static_cast<Es2pandaIntrinsicNodeType>(type);
|
|
8570
|
+
const auto __arguments = reinterpret_cast<es2panda_AstNode**>(_arguments);
|
|
8571
|
+
const auto __argumentsSequenceLength = static_cast<KUInt>(_argumentsSequenceLength);
|
|
8572
|
+
auto result = GetImpl()->UpdateETSIntrinsicNode2(_context, _original, _type, __arguments, __argumentsSequenceLength);
|
|
8573
|
+
return result;
|
|
8574
|
+
}
|
|
8575
|
+
KOALA_INTEROP_5(UpdateETSIntrinsicNode2, KNativePointer, KNativePointer, KNativePointer, KInt, KNativePointerArray, KUInt);
|
|
8576
|
+
|
|
8577
|
+
KInt impl_ETSIntrinsicNodeTypeConst(KNativePointer context, KNativePointer receiver)
|
|
8578
|
+
{
|
|
8579
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8580
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
8581
|
+
auto result = GetImpl()->ETSIntrinsicNodeTypeConst(_context, _receiver);
|
|
8582
|
+
return result;
|
|
8583
|
+
}
|
|
8584
|
+
KOALA_INTEROP_2(ETSIntrinsicNodeTypeConst, KInt, KNativePointer, KNativePointer);
|
|
8585
|
+
|
|
8586
|
+
KNativePointer impl_ETSIntrinsicNodeArgumentsConst(KNativePointer context, KNativePointer receiver)
|
|
8587
|
+
{
|
|
8588
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
8589
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
8590
|
+
std::size_t length;
|
|
8591
|
+
auto result = GetImpl()->ETSIntrinsicNodeArgumentsConst(_context, _receiver, &length);
|
|
8592
|
+
return (void*)StageArena::cloneVector(result, length);
|
|
8593
|
+
}
|
|
8594
|
+
KOALA_INTEROP_2(ETSIntrinsicNodeArgumentsConst, KNativePointer, KNativePointer, KNativePointer);
|
|
8595
|
+
|
|
8491
8596
|
KNativePointer impl_CreateETSPackageDeclaration(KNativePointer context, KNativePointer name)
|
|
8492
8597
|
{
|
|
8493
8598
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -10181,6 +10286,34 @@ void impl_ETSParameterExpressionSetIdent(KNativePointer context, KNativePointer
|
|
|
10181
10286
|
}
|
|
10182
10287
|
KOALA_INTEROP_V3(ETSParameterExpressionSetIdent, KNativePointer, KNativePointer, KNativePointer);
|
|
10183
10288
|
|
|
10289
|
+
KNativePointer impl_ETSParameterExpressionSpread(KNativePointer context, KNativePointer receiver)
|
|
10290
|
+
{
|
|
10291
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
10292
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
10293
|
+
auto result = GetImpl()->ETSParameterExpressionSpread(_context, _receiver);
|
|
10294
|
+
return result;
|
|
10295
|
+
}
|
|
10296
|
+
KOALA_INTEROP_2(ETSParameterExpressionSpread, KNativePointer, KNativePointer, KNativePointer);
|
|
10297
|
+
|
|
10298
|
+
KNativePointer impl_ETSParameterExpressionSpreadConst(KNativePointer context, KNativePointer receiver)
|
|
10299
|
+
{
|
|
10300
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
10301
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
10302
|
+
auto result = GetImpl()->ETSParameterExpressionSpreadConst(_context, _receiver);
|
|
10303
|
+
return (void*)result;
|
|
10304
|
+
}
|
|
10305
|
+
KOALA_INTEROP_2(ETSParameterExpressionSpreadConst, KNativePointer, KNativePointer, KNativePointer);
|
|
10306
|
+
|
|
10307
|
+
void impl_ETSParameterExpressionSetSpread(KNativePointer context, KNativePointer receiver, KNativePointer spread)
|
|
10308
|
+
{
|
|
10309
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
10310
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
10311
|
+
const auto _spread = reinterpret_cast<es2panda_AstNode*>(spread);
|
|
10312
|
+
GetImpl()->ETSParameterExpressionSetSpread(_context, _receiver, _spread);
|
|
10313
|
+
return ;
|
|
10314
|
+
}
|
|
10315
|
+
KOALA_INTEROP_V3(ETSParameterExpressionSetSpread, KNativePointer, KNativePointer, KNativePointer);
|
|
10316
|
+
|
|
10184
10317
|
KNativePointer impl_ETSParameterExpressionRestParameterConst(KNativePointer context, KNativePointer receiver)
|
|
10185
10318
|
{
|
|
10186
10319
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -11840,6 +11973,133 @@ void impl_MethodDefinitionSetValueOverloads(KNativePointer context, KNativePoint
|
|
|
11840
11973
|
}
|
|
11841
11974
|
KOALA_INTEROP_V4(MethodDefinitionSetValueOverloads, KNativePointer, KNativePointer, KNativePointer, KUInt);
|
|
11842
11975
|
|
|
11976
|
+
KNativePointer impl_CreateOverloadDeclaration(KNativePointer context, KNativePointer key, KInt modifiers)
|
|
11977
|
+
{
|
|
11978
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
11979
|
+
const auto _key = reinterpret_cast<es2panda_AstNode*>(key);
|
|
11980
|
+
const auto _modifiers = static_cast<Es2pandaModifierFlags>(modifiers);
|
|
11981
|
+
auto result = GetImpl()->CreateOverloadDeclaration(_context, _key, _modifiers);
|
|
11982
|
+
return result;
|
|
11983
|
+
}
|
|
11984
|
+
KOALA_INTEROP_3(CreateOverloadDeclaration, KNativePointer, KNativePointer, KNativePointer, KInt);
|
|
11985
|
+
|
|
11986
|
+
KNativePointer impl_UpdateOverloadDeclaration(KNativePointer context, KNativePointer original, KNativePointer key, KInt modifiers)
|
|
11987
|
+
{
|
|
11988
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
11989
|
+
const auto _original = reinterpret_cast<es2panda_AstNode*>(original);
|
|
11990
|
+
const auto _key = reinterpret_cast<es2panda_AstNode*>(key);
|
|
11991
|
+
const auto _modifiers = static_cast<Es2pandaModifierFlags>(modifiers);
|
|
11992
|
+
auto result = GetImpl()->UpdateOverloadDeclaration(_context, _original, _key, _modifiers);
|
|
11993
|
+
return result;
|
|
11994
|
+
}
|
|
11995
|
+
KOALA_INTEROP_4(UpdateOverloadDeclaration, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KInt);
|
|
11996
|
+
|
|
11997
|
+
KInt impl_OverloadDeclarationFlagConst(KNativePointer context, KNativePointer receiver)
|
|
11998
|
+
{
|
|
11999
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12000
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12001
|
+
auto result = GetImpl()->OverloadDeclarationFlagConst(_context, _receiver);
|
|
12002
|
+
return result;
|
|
12003
|
+
}
|
|
12004
|
+
KOALA_INTEROP_2(OverloadDeclarationFlagConst, KInt, KNativePointer, KNativePointer);
|
|
12005
|
+
|
|
12006
|
+
KNativePointer impl_OverloadDeclarationOverloadedList(KNativePointer context, KNativePointer receiver)
|
|
12007
|
+
{
|
|
12008
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12009
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12010
|
+
std::size_t length;
|
|
12011
|
+
auto result = GetImpl()->OverloadDeclarationOverloadedList(_context, _receiver, &length);
|
|
12012
|
+
return StageArena::cloneVector(result, length);
|
|
12013
|
+
}
|
|
12014
|
+
KOALA_INTEROP_2(OverloadDeclarationOverloadedList, KNativePointer, KNativePointer, KNativePointer);
|
|
12015
|
+
|
|
12016
|
+
void impl_OverloadDeclarationSetOverloadedList(KNativePointer context, KNativePointer receiver, KNativePointerArray overloadedList, KUInt overloadedListSequenceLength)
|
|
12017
|
+
{
|
|
12018
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12019
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12020
|
+
const auto _overloadedList = reinterpret_cast<es2panda_AstNode**>(overloadedList);
|
|
12021
|
+
const auto _overloadedListSequenceLength = static_cast<KUInt>(overloadedListSequenceLength);
|
|
12022
|
+
GetImpl()->OverloadDeclarationSetOverloadedList(_context, _receiver, _overloadedList, _overloadedListSequenceLength);
|
|
12023
|
+
return ;
|
|
12024
|
+
}
|
|
12025
|
+
KOALA_INTEROP_V4(OverloadDeclarationSetOverloadedList, KNativePointer, KNativePointer, KNativePointerArray, KUInt);
|
|
12026
|
+
|
|
12027
|
+
void impl_OverloadDeclarationPushFront(KNativePointer context, KNativePointer receiver, KNativePointer overloadedExpression)
|
|
12028
|
+
{
|
|
12029
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12030
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12031
|
+
const auto _overloadedExpression = reinterpret_cast<es2panda_AstNode*>(overloadedExpression);
|
|
12032
|
+
GetImpl()->OverloadDeclarationPushFront(_context, _receiver, _overloadedExpression);
|
|
12033
|
+
return ;
|
|
12034
|
+
}
|
|
12035
|
+
KOALA_INTEROP_V3(OverloadDeclarationPushFront, KNativePointer, KNativePointer, KNativePointer);
|
|
12036
|
+
|
|
12037
|
+
void impl_OverloadDeclarationAddOverloadDeclFlag(KNativePointer context, KNativePointer receiver, KInt overloadFlag)
|
|
12038
|
+
{
|
|
12039
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12040
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12041
|
+
const auto _overloadFlag = static_cast<Es2pandaOverloadDeclFlags>(overloadFlag);
|
|
12042
|
+
GetImpl()->OverloadDeclarationAddOverloadDeclFlag(_context, _receiver, _overloadFlag);
|
|
12043
|
+
return ;
|
|
12044
|
+
}
|
|
12045
|
+
KOALA_INTEROP_V3(OverloadDeclarationAddOverloadDeclFlag, KNativePointer, KNativePointer, KInt);
|
|
12046
|
+
|
|
12047
|
+
KBoolean impl_OverloadDeclarationHasOverloadDeclFlagConst(KNativePointer context, KNativePointer receiver, KInt overloadFlag)
|
|
12048
|
+
{
|
|
12049
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12050
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12051
|
+
const auto _overloadFlag = static_cast<Es2pandaOverloadDeclFlags>(overloadFlag);
|
|
12052
|
+
auto result = GetImpl()->OverloadDeclarationHasOverloadDeclFlagConst(_context, _receiver, _overloadFlag);
|
|
12053
|
+
return result;
|
|
12054
|
+
}
|
|
12055
|
+
KOALA_INTEROP_3(OverloadDeclarationHasOverloadDeclFlagConst, KBoolean, KNativePointer, KNativePointer, KInt);
|
|
12056
|
+
|
|
12057
|
+
KBoolean impl_OverloadDeclarationIsConstructorOverloadDeclaration(KNativePointer context, KNativePointer receiver)
|
|
12058
|
+
{
|
|
12059
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12060
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12061
|
+
auto result = GetImpl()->OverloadDeclarationIsConstructorOverloadDeclaration(_context, _receiver);
|
|
12062
|
+
return result;
|
|
12063
|
+
}
|
|
12064
|
+
KOALA_INTEROP_2(OverloadDeclarationIsConstructorOverloadDeclaration, KBoolean, KNativePointer, KNativePointer);
|
|
12065
|
+
|
|
12066
|
+
KBoolean impl_OverloadDeclarationIsFunctionOverloadDeclaration(KNativePointer context, KNativePointer receiver)
|
|
12067
|
+
{
|
|
12068
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12069
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12070
|
+
auto result = GetImpl()->OverloadDeclarationIsFunctionOverloadDeclaration(_context, _receiver);
|
|
12071
|
+
return result;
|
|
12072
|
+
}
|
|
12073
|
+
KOALA_INTEROP_2(OverloadDeclarationIsFunctionOverloadDeclaration, KBoolean, KNativePointer, KNativePointer);
|
|
12074
|
+
|
|
12075
|
+
KBoolean impl_OverloadDeclarationIsClassMethodOverloadDeclaration(KNativePointer context, KNativePointer receiver)
|
|
12076
|
+
{
|
|
12077
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12078
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12079
|
+
auto result = GetImpl()->OverloadDeclarationIsClassMethodOverloadDeclaration(_context, _receiver);
|
|
12080
|
+
return result;
|
|
12081
|
+
}
|
|
12082
|
+
KOALA_INTEROP_2(OverloadDeclarationIsClassMethodOverloadDeclaration, KBoolean, KNativePointer, KNativePointer);
|
|
12083
|
+
|
|
12084
|
+
KBoolean impl_OverloadDeclarationIsInterfaceMethodOverloadDeclaration(KNativePointer context, KNativePointer receiver)
|
|
12085
|
+
{
|
|
12086
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12087
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12088
|
+
auto result = GetImpl()->OverloadDeclarationIsInterfaceMethodOverloadDeclaration(_context, _receiver);
|
|
12089
|
+
return result;
|
|
12090
|
+
}
|
|
12091
|
+
KOALA_INTEROP_2(OverloadDeclarationIsInterfaceMethodOverloadDeclaration, KBoolean, KNativePointer, KNativePointer);
|
|
12092
|
+
|
|
12093
|
+
void impl_OverloadDeclarationDumpModifierConst(KNativePointer context, KNativePointer receiver, KNativePointer dumper)
|
|
12094
|
+
{
|
|
12095
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
12096
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
12097
|
+
const auto _dumper = reinterpret_cast<es2panda_SrcDumper*>(dumper);
|
|
12098
|
+
GetImpl()->OverloadDeclarationDumpModifierConst(_context, _receiver, _dumper);
|
|
12099
|
+
return ;
|
|
12100
|
+
}
|
|
12101
|
+
KOALA_INTEROP_V3(OverloadDeclarationDumpModifierConst, KNativePointer, KNativePointer, KNativePointer);
|
|
12102
|
+
|
|
11843
12103
|
KNativePointer impl_CreateTSNullKeyword(KNativePointer context)
|
|
11844
12104
|
{
|
|
11845
12105
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -14672,6 +14932,25 @@ KBoolean impl_ProgramIsStdLibConst(KNativePointer context, KNativePointer receiv
|
|
|
14672
14932
|
}
|
|
14673
14933
|
KOALA_INTEROP_2(ProgramIsStdLibConst, KBoolean, KNativePointer, KNativePointer);
|
|
14674
14934
|
|
|
14935
|
+
KBoolean impl_ProgramIsGenAbcForExternalConst(KNativePointer context, KNativePointer receiver)
|
|
14936
|
+
{
|
|
14937
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
14938
|
+
const auto _receiver = reinterpret_cast<es2panda_Program*>(receiver);
|
|
14939
|
+
auto result = GetImpl()->ProgramIsGenAbcForExternalConst(_context, _receiver);
|
|
14940
|
+
return result;
|
|
14941
|
+
}
|
|
14942
|
+
KOALA_INTEROP_2(ProgramIsGenAbcForExternalConst, KBoolean, KNativePointer, KNativePointer);
|
|
14943
|
+
|
|
14944
|
+
void impl_ProgramSetGenAbcForExternalSources(KNativePointer context, KNativePointer receiver, KBoolean genAbc)
|
|
14945
|
+
{
|
|
14946
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
14947
|
+
const auto _receiver = reinterpret_cast<es2panda_Program*>(receiver);
|
|
14948
|
+
const auto _genAbc = static_cast<KBoolean>(genAbc);
|
|
14949
|
+
GetImpl()->ProgramSetGenAbcForExternalSources(_context, _receiver, _genAbc);
|
|
14950
|
+
return ;
|
|
14951
|
+
}
|
|
14952
|
+
KOALA_INTEROP_V3(ProgramSetGenAbcForExternalSources, KNativePointer, KNativePointer, KBoolean);
|
|
14953
|
+
|
|
14675
14954
|
KNativePointer impl_ProgramDumpConst(KNativePointer context, KNativePointer receiver)
|
|
14676
14955
|
{
|
|
14677
14956
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
"*": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"./build/wrapper-compat/index.d.ts"
|
|
9
9
|
],
|
|
10
10
|
"*": [
|
|
11
|
-
"./build/index.d.ts"
|
|
11
|
+
"./lib/build/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-7",
|
|
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,26 +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
|
-
"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": "../../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",
|
|
69
|
+
"run": "npm run compile && npm run compile:plugins && npm run simultaneous",
|
|
66
70
|
"run:memo": "npm run compile && npm run compile:plugins && npm run compile --prefix ../memo-plugin && npm run memo",
|
|
67
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",
|
|
68
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",
|
|
@@ -75,9 +79,9 @@
|
|
|
75
79
|
"panda:sdk:clean": "cd ../../incremental/tools/panda && rimraf node_modules",
|
|
76
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",
|
|
77
81
|
"panda:sdk:reinstall": "npm run panda:sdk:clean && npm run panda:sdk:install",
|
|
78
|
-
"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",
|
|
79
|
-
"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",
|
|
80
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",
|
|
81
|
-
"reinstall:regenerate": "npm run panda:sdk:reinstall && npm run regenerate"
|
|
85
|
+
"reinstall:regenerate": "npm run panda:sdk:reinstall && npm run regenerate && git diff --shortstat"
|
|
82
86
|
}
|
|
83
|
-
}
|
|
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,18 @@ export class Es2pandaNativeModule {
|
|
|
159
162
|
_OptionsArkTsConfig(context: KNativePointer, options: KNativePointer): KNativePointer {
|
|
160
163
|
throw new Error("Not implemented");
|
|
161
164
|
}
|
|
165
|
+
_Checker_ScriptFunctionGetPreferredReturnType(context: KNativePointer, node: KNativePointer): KNativePointer {
|
|
166
|
+
throw new Error("Not implemented");
|
|
167
|
+
}
|
|
168
|
+
_Checker_ScriptFunctionSetPreferredReturnType(context: KNativePointer, node: KNativePointer, type: KNativePointer): void {
|
|
169
|
+
throw new Error("Not implemented");
|
|
170
|
+
}
|
|
171
|
+
_Checker_TypeToString(context: KNativePointer, type: KNativePointer): KNativePointer {
|
|
172
|
+
throw new Error("Not implemented");
|
|
173
|
+
}
|
|
174
|
+
_Checker_TypeNodeGetType(context: KNativePointer, node: KNativePointer): KNativePointer {
|
|
175
|
+
throw new Error("Not implemented");
|
|
176
|
+
}
|
|
162
177
|
|
|
163
178
|
// From koala-wrapper
|
|
164
179
|
_ClassVariableDeclaration(context: KNativePointer, classInstance: KNativePointer): KNativePointer {
|
|
@@ -220,6 +235,9 @@ export class Es2pandaNativeModule {
|
|
|
220
235
|
_AstNodeProgram(context: KNativePointer, instance: KNativePointer): KNativePointer {
|
|
221
236
|
throw new Error("Not implemented")
|
|
222
237
|
}
|
|
238
|
+
_CreateContextGenerateAbcForExternalSourceFiles(config: KPtr, fileCount: KInt, filenames: string[]): KPtr {
|
|
239
|
+
throw new Error('Not implemented');
|
|
240
|
+
}
|
|
223
241
|
}
|
|
224
242
|
|
|
225
243
|
export function findNativeModule(): string {
|
|
@@ -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)) {
|
|
@@ -15,22 +15,22 @@
|
|
|
15
15
|
|
|
16
16
|
import { KNativePointer } from "@koalaui/interop"
|
|
17
17
|
import { ETSModule, ImportDeclaration, isETSImportDeclaration, Program, Statement } from "../generated"
|
|
18
|
-
import { updateETSModuleByStatements } from "./utilities/public"
|
|
19
18
|
import { passNode, passNodeArray, unpackNonNullableNode } from "./utilities/private"
|
|
20
19
|
import { global } from "./static/global"
|
|
21
20
|
import { Es2pandaImportFlags, Es2pandaImportKinds } from "../generated/Es2pandaEnums"
|
|
21
|
+
import { factory } from "./factory/nodeFactory"
|
|
22
22
|
|
|
23
23
|
export class ImportStorage {
|
|
24
|
-
//
|
|
24
|
+
// Improve: migrate to wrappers instead of pointers
|
|
25
25
|
private imports: Set<KNativePointer> = new Set<KNativePointer>()
|
|
26
26
|
private importSources: Set<string | undefined> = new Set<string | undefined>()
|
|
27
27
|
|
|
28
|
-
constructor(private program: Program, private
|
|
28
|
+
constructor(private program: Program, private isParserState: boolean) {
|
|
29
29
|
for (const statement of program.ast.statements) {
|
|
30
30
|
if (isETSImportDeclaration(statement)) {
|
|
31
31
|
this.imports.add(statement.peer)
|
|
32
|
-
if (!
|
|
33
|
-
//
|
|
32
|
+
if (!isParserState) {
|
|
33
|
+
// Improve: is source non nullable?
|
|
34
34
|
this.importSources.add(statement.source?.str)
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -45,8 +45,8 @@ export class ImportStorage {
|
|
|
45
45
|
const newStatements: Statement[] = []
|
|
46
46
|
for (const statement of statements) {
|
|
47
47
|
if (isETSImportDeclaration(statement) && !this.imports.has(statement.peer)) {
|
|
48
|
-
if (!this.
|
|
49
|
-
console.warn("Attempt to insert import from new source after parsed
|
|
48
|
+
if (!this.isParserState && !this.importSources.has(statement.source?.str)) {
|
|
49
|
+
console.warn("Attempt to insert import from new source after parsed state:")
|
|
50
50
|
console.warn(statement.dumpSrc())
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -54,12 +54,12 @@ export class ImportStorage {
|
|
|
54
54
|
// Note: this call is important, we cannot just pass "statement" to "InsertETSImportDeclarationAndParse"
|
|
55
55
|
global.es2panda._ETSParserBuildImportDeclaration(
|
|
56
56
|
global.context,
|
|
57
|
-
Es2pandaImportKinds.IMPORT_KINDS_ALL, //
|
|
57
|
+
Es2pandaImportKinds.IMPORT_KINDS_ALL, // Improve: do we use IMPORT_KINDS_TYPES?
|
|
58
58
|
passNodeArray(statement.specifiers),
|
|
59
59
|
statement.specifiers.length,
|
|
60
60
|
passNode(statement.source),
|
|
61
61
|
this.program.peer,
|
|
62
|
-
Es2pandaImportFlags.IMPORT_FLAGS_NONE, //
|
|
62
|
+
Es2pandaImportFlags.IMPORT_FLAGS_NONE, // Improve: where to get it?
|
|
63
63
|
)
|
|
64
64
|
)
|
|
65
65
|
global.es2panda._InsertETSImportDeclarationAndParse(global.context, this.program.peer, importDeclaration.peer)
|
|
@@ -70,9 +70,15 @@ export class ImportStorage {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
// Drop import statements generated by compiler in the beginning of the ETSModule
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
const module = this.program.ast as ETSModule
|
|
74
|
+
this.program.setAst(
|
|
75
|
+
factory.updateETSModule(
|
|
76
|
+
module,
|
|
77
|
+
newStatements,
|
|
78
|
+
module.ident,
|
|
79
|
+
module.getNamespaceFlag(),
|
|
80
|
+
module.program,
|
|
81
|
+
)
|
|
76
82
|
)
|
|
77
83
|
}
|
|
78
84
|
}
|