@idlizer/arktscgen 2.1.10-arktscgen-4 → 2.1.10-arktscgen-5
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/native/meson.build +1 -1
- package/build/libarkts-copy/native/src/bridges.cc +72 -115
- package/build/libarkts-copy/native/src/common.cc +225 -84
- package/build/libarkts-copy/native/src/common.h +22 -22
- package/build/libarkts-copy/native/src/memoryTracker.cc +30 -37
- package/build/libarkts-copy/native/src/memoryTracker.h +5 -5
- package/build/libarkts-copy/package.json +21 -17
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +176 -100
- package/build/libarkts-copy/src/InteropNativeModule.ts +18 -15
- package/build/libarkts-copy/src/arkts-api/AbstractVisitor.ts +17 -18
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +31 -30
- package/build/libarkts-copy/src/arkts-api/ProgramProvider.ts +20 -17
- package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +12 -12
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +38 -29
- package/build/libarkts-copy/src/arkts-api/index.ts +24 -24
- package/build/libarkts-copy/src/arkts-api/node-cache.ts +12 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArkTsConfig.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArrayExpression.ts +9 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/AssignmentExpression.ts +12 -14
- package/build/libarkts-copy/src/arkts-api/node-utilities/BlockStatement.ts +5 -5
- package/build/libarkts-copy/src/arkts-api/node-utilities/CallExpression.ts +26 -24
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDefinition.ts +62 -32
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassProperty.ts +14 -13
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSFunctionType.ts +24 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSImportDeclaration.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSModule.ts +14 -18
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSParameterExpression.ts +15 -16
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSStructDeclaration.ts +5 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSTuple.ts +6 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/MemberExpression.ts +12 -11
- package/build/libarkts-copy/src/arkts-api/node-utilities/MethodDefinition.ts +14 -33
- package/build/libarkts-copy/src/arkts-api/node-utilities/NumberLiteral.ts +12 -23
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +17 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/OpaqueTypeNode.ts +9 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +21 -16
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +52 -53
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +22 -32
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeParameter.ts +12 -14
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeReferencePart.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/TryStatement.ts +10 -9
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclarator.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/peers/ArktsObject.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +53 -49
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +17 -24
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +29 -37
- package/build/libarkts-copy/src/arkts-api/peers/DiagnosticKind.ts +5 -6
- package/build/libarkts-copy/src/arkts-api/peers/ExternalSource.ts +9 -9
- package/build/libarkts-copy/src/arkts-api/peers/ImportPathManager.ts +6 -8
- package/build/libarkts-copy/src/arkts-api/peers/Options.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/plugins.ts +98 -30
- package/build/libarkts-copy/src/arkts-api/static/global.ts +35 -36
- package/build/libarkts-copy/src/arkts-api/static/globalUtils.ts +5 -5
- package/build/libarkts-copy/src/arkts-api/static/profiler.ts +107 -91
- package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +54 -37
- package/build/libarkts-copy/src/arkts-api/utilities/nativePtrDecoder.ts +86 -69
- package/build/libarkts-copy/src/arkts-api/utilities/performance.ts +39 -23
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +73 -61
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +220 -173
- package/build/libarkts-copy/src/arkts-api/visitor.ts +606 -742
- package/build/libarkts-copy/src/arkts-api/wrapper-compat.ts +8 -8
- package/build/libarkts-copy/src/checkSdk.ts +15 -18
- package/build/libarkts-copy/src/index.ts +29 -29
- package/build/libarkts-copy/src/plugin-utils.ts +52 -40
- package/build/libarkts-copy/src/reexport-for-generated.ts +11 -10
- package/build/libarkts-copy/src/tracer.ts +75 -69
- package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +134 -274
- package/build/libarkts-copy/src/ts-api/factory/nodeTests.ts +23 -23
- package/build/libarkts-copy/src/ts-api/index.ts +27 -35
- package/build/libarkts-copy/src/ts-api/static/enums.ts +3 -3
- package/build/libarkts-copy/src/ts-api/types.ts +535 -395
- package/build/libarkts-copy/src/ts-api/utilities/private.ts +115 -112
- package/build/libarkts-copy/src/ts-api/utilities/public.ts +18 -18
- package/build/libarkts-copy/src/ts-api/visitor/visitor.ts +33 -49
- package/build/libarkts-copy/src/utils.ts +97 -70
- package/build/libarkts-copy/tsconfig.json +3 -2
- package/lib/index.js +172 -77
- package/package.json +51 -52
- package/templates/Es2pandaNativeModule.ts +1 -0
- package/templates/peer.ts +1 -0
- package/build/libarkts-copy/native/src/generated/bridges.cc +0 -16375
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +0 -1344
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +0 -5192
- package/build/libarkts-copy/src/generated/factory.ts +0 -1285
- package/build/libarkts-copy/src/generated/index.ts +0 -222
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +0 -54
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +0 -165
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +0 -109
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +0 -119
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +0 -111
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +0 -49
- package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +0 -110
- package/build/libarkts-copy/src/generated/peers/BindingProps.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +0 -129
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +0 -365
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +0 -137
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/CodeGen.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +0 -82
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/Declaration.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/DiagnosticInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +0 -60
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +0 -102
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +0 -90
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +0 -129
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +0 -59
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +0 -189
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +0 -55
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +0 -59
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +0 -89
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +0 -63
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +0 -82
- package/build/libarkts-copy/src/generated/peers/Expression.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +0 -67
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +0 -67
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +0 -106
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/IRNode.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +0 -162
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +0 -87
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ImportSource.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/LabelPair.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/Literal.ts +0 -53
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +0 -53
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +0 -115
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +0 -152
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +0 -101
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/Program.ts +0 -206
- package/build/libarkts-copy/src/generated/peers/Property.ts +0 -92
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +0 -310
- package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +0 -48
- package/build/libarkts-copy/src/generated/peers/SourceRange.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +0 -83
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +0 -120
- package/build/libarkts-copy/src/generated/peers/Statement.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/SuggestionInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +0 -112
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +0 -160
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +0 -80
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +0 -151
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +0 -121
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +0 -89
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +0 -81
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/VReg.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +0 -50
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +0 -113
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +0 -64
|
@@ -26,7 +26,7 @@ sources = [
|
|
|
26
26
|
'./src/common.cc',
|
|
27
27
|
'./src/memoryTracker.cc',
|
|
28
28
|
'./src/bridges.cc',
|
|
29
|
-
'
|
|
29
|
+
'../generated/native/bridges.cc',
|
|
30
30
|
get_option('interop_src_dir') / 'common-interop.cc',
|
|
31
31
|
get_option('interop_src_dir') / 'callback-resource.cc',
|
|
32
32
|
get_option('interop_src_dir') / 'interop-logging.cc',
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
#include
|
|
17
|
-
|
|
16
|
+
#include <mutex>
|
|
18
17
|
#include <set>
|
|
19
18
|
#include <string>
|
|
20
|
-
|
|
19
|
+
|
|
20
|
+
#include "common.h"
|
|
21
21
|
|
|
22
22
|
/** XXX: If you add or remove methods that exist in C API,
|
|
23
23
|
* please change generator/options.json5 accordingly.
|
|
@@ -32,7 +32,8 @@ KNativePointer impl_AstNodeRebind(KNativePointer contextPtr, KNativePointer node
|
|
|
32
32
|
}
|
|
33
33
|
KOALA_INTEROP_2(AstNodeRebind, KNativePointer, KNativePointer, KNativePointer)
|
|
34
34
|
|
|
35
|
-
KNativePointer impl_AnnotationAllowedAnnotations(
|
|
35
|
+
KNativePointer impl_AnnotationAllowedAnnotations(
|
|
36
|
+
KNativePointer contextPtr, KNativePointer nodePtr, KNativePointer returnLen)
|
|
36
37
|
{
|
|
37
38
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
38
39
|
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
@@ -42,7 +43,8 @@ KNativePointer impl_AnnotationAllowedAnnotations(KNativePointer contextPtr, KNat
|
|
|
42
43
|
}
|
|
43
44
|
KOALA_INTEROP_3(AnnotationAllowedAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointer)
|
|
44
45
|
|
|
45
|
-
KNativePointer impl_AnnotationAllowedAnnotationsConst(
|
|
46
|
+
KNativePointer impl_AnnotationAllowedAnnotationsConst(
|
|
47
|
+
KNativePointer contextPtr, KNativePointer nodePtr, KNativePointer returnLen)
|
|
46
48
|
{
|
|
47
49
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
48
50
|
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
@@ -115,7 +117,7 @@ KOALA_INTEROP_2(SignatureFunction, KNativePointer, KNativePointer, KNativePointe
|
|
|
115
117
|
static KNativePointer impl_ProgramExternalSources(KNativePointer contextPtr, KNativePointer instancePtr)
|
|
116
118
|
{
|
|
117
119
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
118
|
-
auto&& instance = reinterpret_cast<es2panda_Program
|
|
120
|
+
auto&& instance = reinterpret_cast<es2panda_Program*>(instancePtr);
|
|
119
121
|
std::size_t source_len = 0;
|
|
120
122
|
auto external_sources = GetImpl()->ProgramExternalSources(context, instance, &source_len);
|
|
121
123
|
return StageArena::cloneVector(external_sources, source_len);
|
|
@@ -125,7 +127,7 @@ KOALA_INTEROP_2(ProgramExternalSources, KNativePointer, KNativePointer, KNativeP
|
|
|
125
127
|
static KNativePointer impl_ProgramDirectExternalSources(KNativePointer contextPtr, KNativePointer instancePtr)
|
|
126
128
|
{
|
|
127
129
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
128
|
-
auto&& instance = reinterpret_cast<es2panda_Program
|
|
130
|
+
auto&& instance = reinterpret_cast<es2panda_Program*>(instancePtr);
|
|
129
131
|
std::size_t sourceLen = 0;
|
|
130
132
|
auto externalSources = GetImpl()->ProgramDirectExternalSources(context, instance, &sourceLen);
|
|
131
133
|
return new std::vector<void*>(externalSources, externalSources + sourceLen);
|
|
@@ -135,7 +137,7 @@ KOALA_INTEROP_2(ProgramDirectExternalSources, KNativePointer, KNativePointer, KN
|
|
|
135
137
|
static KNativePointer impl_ProgramSourceFilePath(KNativePointer contextPtr, KNativePointer instancePtr)
|
|
136
138
|
{
|
|
137
139
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
138
|
-
auto&& instance = reinterpret_cast<es2panda_Program
|
|
140
|
+
auto&& instance = reinterpret_cast<es2panda_Program*>(instancePtr);
|
|
139
141
|
auto&& result = GetImpl()->ProgramSourceFilePathConst(context, instance);
|
|
140
142
|
return StageArena::strdup(result);
|
|
141
143
|
}
|
|
@@ -143,7 +145,7 @@ KOALA_INTEROP_2(ProgramSourceFilePath, KNativePointer, KNativePointer, KNativePo
|
|
|
143
145
|
|
|
144
146
|
static KNativePointer impl_ExternalSourceName(KNativePointer instance)
|
|
145
147
|
{
|
|
146
|
-
auto&& _instance_ = reinterpret_cast<es2panda_ExternalSource
|
|
148
|
+
auto&& _instance_ = reinterpret_cast<es2panda_ExternalSource*>(instance);
|
|
147
149
|
auto&& result = GetImpl()->ExternalSourceName(_instance_);
|
|
148
150
|
return StageArena::strdup(result);
|
|
149
151
|
}
|
|
@@ -151,14 +153,16 @@ KOALA_INTEROP_1(ExternalSourceName, KNativePointer, KNativePointer);
|
|
|
151
153
|
|
|
152
154
|
static KNativePointer impl_ExternalSourcePrograms(KNativePointer instance)
|
|
153
155
|
{
|
|
154
|
-
auto&& _instance_ = reinterpret_cast<es2panda_ExternalSource
|
|
156
|
+
auto&& _instance_ = reinterpret_cast<es2panda_ExternalSource*>(instance);
|
|
155
157
|
std::size_t program_len = 0;
|
|
156
158
|
auto programs = GetImpl()->ExternalSourcePrograms(_instance_, &program_len);
|
|
157
159
|
return StageArena::cloneVector(programs, program_len);
|
|
158
160
|
}
|
|
159
161
|
KOALA_INTEROP_1(ExternalSourcePrograms, KNativePointer, KNativePointer);
|
|
160
162
|
|
|
161
|
-
KNativePointer impl_ETSParserBuildImportDeclaration(KNativePointer context, KInt importKinds,
|
|
163
|
+
KNativePointer impl_ETSParserBuildImportDeclaration(KNativePointer context, KInt importKinds,
|
|
164
|
+
KNativePointerArray specifiers, KUInt specifiersSequenceLength, KNativePointer source, KNativePointer program,
|
|
165
|
+
KInt importFlag)
|
|
162
166
|
{
|
|
163
167
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
164
168
|
const auto _kinds = static_cast<Es2pandaImportKinds>(importKinds);
|
|
@@ -168,9 +172,11 @@ KNativePointer impl_ETSParserBuildImportDeclaration(KNativePointer context, KInt
|
|
|
168
172
|
const auto _program = reinterpret_cast<es2panda_Program*>(program);
|
|
169
173
|
const auto _importFlag = static_cast<Es2pandaImportFlags>(importFlag);
|
|
170
174
|
|
|
171
|
-
return GetImpl()->ETSParserBuildImportDeclaration(
|
|
175
|
+
return GetImpl()->ETSParserBuildImportDeclaration(
|
|
176
|
+
_context, _kinds, _specifiers, _specifiersSequenceLength, _source, _program, _importFlag);
|
|
172
177
|
}
|
|
173
|
-
KOALA_INTEROP_7(ETSParserBuildImportDeclaration, KNativePointer, KNativePointer, KInt, KNativePointerArray, KUInt,
|
|
178
|
+
KOALA_INTEROP_7(ETSParserBuildImportDeclaration, KNativePointer, KNativePointer, KInt, KNativePointerArray, KUInt,
|
|
179
|
+
KNativePointer, KNativePointer, KInt)
|
|
174
180
|
|
|
175
181
|
KNativePointer impl_ETSParserGetImportPathManager(KNativePointer contextPtr)
|
|
176
182
|
{
|
|
@@ -181,15 +187,15 @@ KOALA_INTEROP_1(ETSParserGetImportPathManager, KNativePointer, KNativePointer);
|
|
|
181
187
|
|
|
182
188
|
KInt impl_SourcePositionCol(KNativePointer context, KNativePointer instance)
|
|
183
189
|
{
|
|
184
|
-
auto&& _context_ = reinterpret_cast<es2panda_Context
|
|
185
|
-
auto&& _instance_ = reinterpret_cast<es2panda_SourcePosition
|
|
190
|
+
auto&& _context_ = reinterpret_cast<es2panda_Context*>(context);
|
|
191
|
+
auto&& _instance_ = reinterpret_cast<es2panda_SourcePosition*>(instance);
|
|
186
192
|
return GetImpl()->SourcePositionCol(_context_, _instance_);
|
|
187
193
|
}
|
|
188
194
|
KOALA_INTEROP_2(SourcePositionCol, KInt, KNativePointer, KNativePointer);
|
|
189
195
|
|
|
190
196
|
KNativePointer impl_ConfigGetOptions(KNativePointer config)
|
|
191
197
|
{
|
|
192
|
-
const auto _config = reinterpret_cast<es2panda_Config
|
|
198
|
+
const auto _config = reinterpret_cast<es2panda_Config*>(config);
|
|
193
199
|
auto result = GetImpl()->ConfigGetOptions(_config);
|
|
194
200
|
return (void*)result;
|
|
195
201
|
}
|
|
@@ -197,38 +203,32 @@ KOALA_INTEROP_1(ConfigGetOptions, KNativePointer, KNativePointer)
|
|
|
197
203
|
|
|
198
204
|
KNativePointer impl_OptionsArkTsConfig(KNativePointer context, KNativePointer options)
|
|
199
205
|
{
|
|
200
|
-
const auto _context = reinterpret_cast<es2panda_Context
|
|
201
|
-
const auto _options = reinterpret_cast<es2panda_Options
|
|
206
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
207
|
+
const auto _options = reinterpret_cast<es2panda_Options*>(options);
|
|
202
208
|
auto result = GetImpl()->OptionsUtilArkTSConfigConst(_context, _options);
|
|
203
209
|
return (void*)result;
|
|
204
210
|
}
|
|
205
211
|
KOALA_INTEROP_2(OptionsArkTsConfig, KNativePointer, KNativePointer, KNativePointer)
|
|
206
212
|
|
|
207
|
-
KNativePointer impl_CreateCacheContextFromFile(
|
|
213
|
+
KNativePointer impl_CreateCacheContextFromFile(
|
|
214
|
+
KNativePointer configPtr, KStringPtr& source_file_namePtr, KNativePointer globalContextPtr, KBoolean isExternal)
|
|
215
|
+
{
|
|
208
216
|
auto config = reinterpret_cast<es2panda_Config*>(configPtr);
|
|
209
217
|
auto globalContext = reinterpret_cast<es2panda_GlobalContext*>(globalContextPtr);
|
|
210
218
|
return GetImpl()->CreateCacheContextFromFile(config, getStringCopy(source_file_namePtr), globalContext, isExternal);
|
|
211
219
|
}
|
|
212
220
|
KOALA_INTEROP_4(CreateCacheContextFromFile, KNativePointer, KNativePointer, KStringPtr, KNativePointer, KBoolean)
|
|
213
221
|
|
|
214
|
-
KNativePointer impl_CreateGlobalContext(
|
|
222
|
+
KNativePointer impl_CreateGlobalContext(
|
|
223
|
+
KNativePointer configPtr, KStringArray& externalFileListPtr, KUInt fileNum, KBoolean LspUsage)
|
|
224
|
+
{
|
|
215
225
|
auto config = reinterpret_cast<es2panda_Config*>(configPtr);
|
|
216
|
-
|
|
217
|
-
const char** files = StageArena::allocArray<const char*>(fileNum);
|
|
218
|
-
uint8_t* filesPtr = (uint8_t*)externalFileListPtr;
|
|
219
|
-
std::size_t position = headerLen;
|
|
220
|
-
std::size_t strLen;
|
|
221
|
-
for (std::size_t i = 0; i < static_cast<std::size_t>(fileNum); ++i) {
|
|
222
|
-
strLen = unpackUInt(filesPtr + position);
|
|
223
|
-
position += headerLen;
|
|
224
|
-
files[i] = StageArena::strdup(std::string(reinterpret_cast<const char*>(filesPtr + position), strLen).c_str());
|
|
225
|
-
position += strLen;
|
|
226
|
-
}
|
|
227
|
-
return GetImpl()->CreateGlobalContext(config, files, fileNum, LspUsage);
|
|
226
|
+
return GetImpl()->CreateGlobalContext(config, getStringArray(externalFileListPtr), fileNum, LspUsage);
|
|
228
227
|
}
|
|
229
228
|
KOALA_INTEROP_4(CreateGlobalContext, KNativePointer, KNativePointer, KStringArray, KUInt, KBoolean)
|
|
230
229
|
|
|
231
|
-
void impl_DestroyGlobalContext(KNativePointer globalContextPtr)
|
|
230
|
+
void impl_DestroyGlobalContext(KNativePointer globalContextPtr)
|
|
231
|
+
{
|
|
232
232
|
auto globalContext = reinterpret_cast<es2panda_GlobalContext*>(globalContextPtr);
|
|
233
233
|
GetImpl()->DestroyGlobalContext(globalContext);
|
|
234
234
|
}
|
|
@@ -411,71 +411,42 @@ KNativePointer impl_CreateDiagnosticKind(KNativePointer context, KStringPtr& mes
|
|
|
411
411
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
412
412
|
const auto _message = getStringCopy(message);
|
|
413
413
|
const auto _type = static_cast<es2panda_PluginDiagnosticType>(type);
|
|
414
|
-
return const_cast<es2panda_DiagnosticKind
|
|
414
|
+
return const_cast<es2panda_DiagnosticKind*>(GetImpl()->CreateDiagnosticKind(_context, _message, _type));
|
|
415
415
|
}
|
|
416
416
|
KOALA_INTEROP_3(CreateDiagnosticKind, KNativePointer, KNativePointer, KStringPtr, KInt)
|
|
417
417
|
|
|
418
|
-
KNativePointer impl_CreateDiagnosticInfo(
|
|
419
|
-
|
|
418
|
+
KNativePointer impl_CreateDiagnosticInfo(
|
|
419
|
+
KNativePointer context, KNativePointer kind, KStringArray& argsPtr, KInt argc, KNativePointer pos)
|
|
420
420
|
{
|
|
421
421
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
422
422
|
const auto _kind = reinterpret_cast<es2panda_DiagnosticKind*>(kind);
|
|
423
|
-
const auto _pos = reinterpret_cast<es2panda_SourcePosition
|
|
424
|
-
|
|
425
|
-
const char** _args = new const char*[argc];
|
|
426
|
-
std::size_t position = headerLen;
|
|
427
|
-
std::size_t strLen;
|
|
428
|
-
for (std::size_t i = 0; i < static_cast<std::size_t>(argc); ++i) {
|
|
429
|
-
strLen = unpackUInt(argsPtr + position);
|
|
430
|
-
position += headerLen;
|
|
431
|
-
_args[i] = strdup(std::string(reinterpret_cast<const char*>(argsPtr + position), strLen).c_str());
|
|
432
|
-
position += strLen;
|
|
433
|
-
}
|
|
434
|
-
return GetImpl()->CreateDiagnosticInfo(_context, _kind, _args, argc, _pos);
|
|
423
|
+
const auto _pos = reinterpret_cast<es2panda_SourcePosition*>(pos);
|
|
424
|
+
return GetImpl()->CreateDiagnosticInfo(_context, _kind, getStringArray(argsPtr), argc, _pos);
|
|
435
425
|
}
|
|
436
|
-
KOALA_INTEROP_5(
|
|
437
|
-
|
|
426
|
+
KOALA_INTEROP_5(
|
|
427
|
+
CreateDiagnosticInfo, KNativePointer, KNativePointer, KNativePointer, KStringArray, KInt, KNativePointer)
|
|
438
428
|
|
|
439
|
-
KNativePointer impl_CreateSuggestionInfo(KNativePointer context, KNativePointer kind, KStringArray argsPtr,
|
|
440
|
-
|
|
429
|
+
KNativePointer impl_CreateSuggestionInfo(KNativePointer context, KNativePointer kind, KStringArray& argsPtr, KInt argc,
|
|
430
|
+
KStringPtr& substitutionCode, KStringPtr& title, KNativePointer range)
|
|
441
431
|
{
|
|
442
432
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
443
|
-
const auto _kind = reinterpret_cast<es2panda_DiagnosticKind
|
|
433
|
+
const auto _kind = reinterpret_cast<es2panda_DiagnosticKind*>(kind);
|
|
444
434
|
const auto _title = getStringCopy(title);
|
|
445
|
-
const auto _range = reinterpret_cast<es2panda_SourceRange
|
|
446
|
-
const std::size_t headerLen = 4;
|
|
447
|
-
const char** _args = new const char*[argc];
|
|
448
|
-
std::size_t position = headerLen;
|
|
449
|
-
std::size_t strLen;
|
|
450
|
-
for (std::size_t i = 0; i < static_cast<std::size_t>(argc); ++i) {
|
|
451
|
-
strLen = unpackUInt(argsPtr + position);
|
|
452
|
-
position += headerLen;
|
|
453
|
-
_args[i] = strdup(std::string(reinterpret_cast<const char*>(argsPtr + position), strLen).c_str());
|
|
454
|
-
position += strLen;
|
|
455
|
-
}
|
|
435
|
+
const auto _range = reinterpret_cast<es2panda_SourceRange*>(range);
|
|
456
436
|
const auto _substitutionCode = getStringCopy(substitutionCode);
|
|
457
|
-
return GetImpl()->CreateSuggestionInfo(
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
auto&&
|
|
467
|
-
auto&&
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
std::size_t position = headerLen;
|
|
471
|
-
std::size_t strLen;
|
|
472
|
-
for (std::size_t i = 0; i < static_cast<std::size_t>(argc); ++i) {
|
|
473
|
-
strLen = unpackUInt(argvPtr + position);
|
|
474
|
-
position += headerLen;
|
|
475
|
-
argv[i] = strdup(std::string(reinterpret_cast<const char*>(argvPtr + position), strLen).c_str());
|
|
476
|
-
position += strLen;
|
|
477
|
-
}
|
|
478
|
-
GetImpl()->LogDiagnostic(_context_, _kind_, argv, argc, _pos_);
|
|
437
|
+
return GetImpl()->CreateSuggestionInfo(
|
|
438
|
+
_context, _kind, getStringArray(argsPtr), argc, _substitutionCode, _title, _range);
|
|
439
|
+
}
|
|
440
|
+
KOALA_INTEROP_7(CreateSuggestionInfo, KNativePointer, KNativePointer, KNativePointer, KStringArray, KInt, KStringPtr,
|
|
441
|
+
KStringPtr, KNativePointer)
|
|
442
|
+
|
|
443
|
+
void impl_LogDiagnostic(
|
|
444
|
+
KNativePointer context, KNativePointer kind, KStringArray& argvPtr, KInt argc, KNativePointer pos)
|
|
445
|
+
{
|
|
446
|
+
auto&& _context_ = reinterpret_cast<es2panda_Context*>(context);
|
|
447
|
+
auto&& _kind_ = reinterpret_cast<es2panda_DiagnosticKind*>(kind);
|
|
448
|
+
auto&& _pos_ = reinterpret_cast<es2panda_SourcePosition*>(pos);
|
|
449
|
+
GetImpl()->LogDiagnostic(_context_, _kind_, getStringArray(argvPtr), argc, _pos_);
|
|
479
450
|
}
|
|
480
451
|
KOALA_INTEROP_V5(LogDiagnostic, KNativePointer, KNativePointer, KStringArray, KInt, KNativePointer)
|
|
481
452
|
|
|
@@ -489,45 +460,31 @@ KNativePointer impl_AnnotationUsageIrPropertiesPtrConst(KNativePointer context,
|
|
|
489
460
|
}
|
|
490
461
|
KOALA_INTEROP_2(AnnotationUsageIrPropertiesPtrConst, KNativePointer, KNativePointer, KNativePointer);
|
|
491
462
|
|
|
492
|
-
KInt impl_GenerateTsDeclarationsFromContext(KNativePointer contextPtr, KStringPtr
|
|
493
|
-
|
|
463
|
+
KInt impl_GenerateTsDeclarationsFromContext(KNativePointer contextPtr, KStringPtr& outputDeclEts, KStringPtr& outputEts,
|
|
464
|
+
KBoolean exportAll, KBoolean isolated, KStringPtr& recordFile, KBoolean genAnnotations)
|
|
494
465
|
{
|
|
495
|
-
auto context = reinterpret_cast<es2panda_Context
|
|
496
|
-
return GetImpl()->GenerateTsDeclarationsFromContext(
|
|
466
|
+
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
467
|
+
return GetImpl()->GenerateTsDeclarationsFromContext(
|
|
468
|
+
context, outputDeclEts.data(), outputEts.data(), exportAll, isolated, recordFile.data(), genAnnotations);
|
|
497
469
|
}
|
|
498
|
-
|
|
470
|
+
KOALA_INTEROP_7(GenerateTsDeclarationsFromContext, KInt, KNativePointer, KStringPtr, KStringPtr, KBoolean, KBoolean,
|
|
471
|
+
KStringPtr, KBoolean)
|
|
499
472
|
|
|
500
|
-
// Improve: simplify
|
|
501
473
|
KNativePointer impl_CreateContextGenerateAbcForExternalSourceFiles(
|
|
502
|
-
KNativePointer configPtr, KInt fileNamesCount, KStringArray fileNames)
|
|
503
|
-
{
|
|
504
|
-
auto config = reinterpret_cast<es2panda_Config
|
|
505
|
-
|
|
506
|
-
const char **argv =
|
|
507
|
-
new const char *[static_cast<unsigned int>(fileNamesCount)];
|
|
508
|
-
std::size_t position = headerLen;
|
|
509
|
-
std::size_t strLen;
|
|
510
|
-
for (std::size_t i = 0; i < static_cast<std::size_t>(fileNamesCount); ++i) {
|
|
511
|
-
strLen = unpackUInt(fileNames + position);
|
|
512
|
-
position += headerLen;
|
|
513
|
-
argv[i] = strdup(
|
|
514
|
-
std::string(reinterpret_cast<const char *>(fileNames + position),
|
|
515
|
-
strLen)
|
|
516
|
-
.c_str());
|
|
517
|
-
position += strLen;
|
|
518
|
-
}
|
|
519
|
-
return GetImpl()->CreateContextGenerateAbcForExternalSourceFiles(
|
|
520
|
-
config, fileNamesCount, argv);
|
|
474
|
+
KNativePointer configPtr, KInt fileNamesCount, KStringArray& fileNames)
|
|
475
|
+
{
|
|
476
|
+
auto config = reinterpret_cast<es2panda_Config*>(configPtr);
|
|
477
|
+
return GetImpl()->CreateContextGenerateAbcForExternalSourceFiles(config, fileNamesCount, getStringArray(fileNames));
|
|
521
478
|
}
|
|
522
479
|
KOALA_INTEROP_3(CreateContextGenerateAbcForExternalSourceFiles, KNativePointer, KNativePointer, KInt, KStringArray)
|
|
523
480
|
|
|
524
481
|
KInt impl_GetCompilationMode(KNativePointer configPtr)
|
|
525
482
|
{
|
|
526
|
-
auto _config = reinterpret_cast<es2panda_Config
|
|
527
|
-
auto _options = const_cast<es2panda_Options
|
|
483
|
+
auto _config = reinterpret_cast<es2panda_Config*>(configPtr);
|
|
484
|
+
auto _options = const_cast<es2panda_Options*>(GetImpl()->ConfigGetOptions(_config));
|
|
528
485
|
return GetImpl()->OptionsUtilGetCompilationModeConst(nullptr, _options);
|
|
529
486
|
}
|
|
530
|
-
KOALA_INTEROP_1(GetCompilationMode, KInt, KNativePointer)
|
|
487
|
+
KOALA_INTEROP_1(GetCompilationMode, KInt, KNativePointer)
|
|
531
488
|
|
|
532
489
|
KNativePointer impl_CreateTypeNodeFromTsType(KNativePointer context, KNativePointer nodePtr)
|
|
533
490
|
{
|
|
@@ -544,4 +501,4 @@ KNativePointer impl_CreateTypeNodeFromTsType(KNativePointer context, KNativePoin
|
|
|
544
501
|
auto _typeAnnotation = GetImpl()->CreateOpaqueTypeNode(_context, _nodeTsType);
|
|
545
502
|
return _typeAnnotation;
|
|
546
503
|
}
|
|
547
|
-
KOALA_INTEROP_2(CreateTypeNodeFromTsType, KNativePointer, KNativePointer, KNativePointer)
|
|
504
|
+
KOALA_INTEROP_2(CreateTypeNodeFromTsType, KNativePointer, KNativePointer, KNativePointer)
|