@idlizer/arktscgen 2.1.9-arktscgen-9 → 2.1.10-arktscgen-3
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 +199 -4
- package/build/libarkts-copy/native/meson.build +1 -0
- package/build/libarkts-copy/native/mingw.cross +13 -0
- package/build/libarkts-copy/native/src/bridges.cc +66 -229
- package/build/libarkts-copy/native/src/common.cc +37 -8
- package/build/libarkts-copy/native/src/generated/bridges.cc +2047 -766
- package/build/libarkts-copy/native/src/memoryTracker.cc +178 -0
- package/build/libarkts-copy/native/src/memoryTracker.h +52 -0
- package/build/libarkts-copy/package.json +11 -14
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +41 -52
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +7 -6
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +5 -2
- package/build/libarkts-copy/src/arkts-api/index.ts +2 -1
- package/build/libarkts-copy/src/arkts-api/node-cache.ts +9 -9
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArkTsConfig.ts +7 -6
- package/build/libarkts-copy/src/arkts-api/node-utilities/NumberLiteral.ts +3 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +25 -6
- package/build/libarkts-copy/src/{wrapper-compat/arkts-api/peers/ImportPathManager.ts → arkts-api/node-utilities/OpaqueTypeNode.ts} +8 -17
- package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +11 -10
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +12 -7
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +6 -0
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +3 -15
- package/build/libarkts-copy/src/{wrapper-compat/arkts-api/peers/AstNode.ts → arkts-api/peers/DiagnosticKind.ts} +6 -8
- package/build/libarkts-copy/src/arkts-api/static/global.ts +28 -1
- package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +64 -7
- package/build/libarkts-copy/src/{wrapper-compat/arkts-api → arkts-api}/utilities/performance.ts +122 -3
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +8 -22
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +95 -93
- package/build/libarkts-copy/src/arkts-api/visitor.ts +971 -364
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +6 -0
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +686 -185
- package/build/libarkts-copy/src/generated/factory.ts +2 -3
- package/build/libarkts-copy/src/generated/index.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +17 -20
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +4 -1
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +6 -12
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +18 -21
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +3 -1
- package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/BindingProps.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +11 -8
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +6 -30
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +35 -28
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +5 -32
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +25 -20
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/CodeGen.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/Declaration.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/DiagnosticInfo.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +14 -9
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +17 -20
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +20 -23
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +4 -6
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +9 -11
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +9 -11
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +11 -13
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/Expression.ts +7 -3
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +4 -6
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +16 -23
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +8 -10
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +5 -2
- package/build/libarkts-copy/src/generated/peers/IRNode.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +7 -18
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/ImportSource.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/LabelPair.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/Literal.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +5 -11
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +10 -12
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +10 -10
- package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +5 -11
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/Program.ts +9 -2
- package/build/libarkts-copy/src/generated/peers/Property.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +27 -23
- package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +8 -1
- package/build/libarkts-copy/src/generated/peers/SourceRange.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +5 -11
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +3 -1
- package/build/libarkts-copy/src/generated/peers/Statement.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/SuggestionInfo.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +8 -32
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +19 -44
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +32 -47
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +17 -20
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +7 -9
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +13 -14
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +3 -3
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/VReg.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +3 -1
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +16 -26
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +6 -8
- package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +5 -7
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +5 -7
- package/build/libarkts-copy/src/index.ts +4 -1
- package/build/libarkts-copy/src/plugin-utils.ts +8 -11
- package/build/libarkts-copy/src/reexport-for-generated.ts +1 -12
- package/build/libarkts-copy/src/tracer.ts +172 -0
- package/build/libarkts-copy/src/utils.ts +3 -0
- package/lib/index.js +1403 -544
- package/package.json +4 -3
- package/templates/factory.ts +0 -1
- package/templates/peer.ts +0 -1
- package/build/libarkts-copy/src/arkts-api/ChainExpressionFilter.ts +0 -79
- package/build/libarkts-copy/src/arkts-api/peers/SourcePosition.ts +0 -38
- package/build/libarkts-copy/src/generated/peers/FunctionDecl.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/InterfaceDecl.ts +0 -45
- package/build/libarkts-copy/src/wrapper-compat/README.md +0 -20
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/class-by-peer.ts +0 -46
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/factory/nodeFactory.ts +0 -454
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/factory/nodeTests.ts +0 -99
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/index.ts +0 -88
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrayExpression.ts +0 -38
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrowFunctionExpression.ts +0 -35
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/AssignmentExpression.ts +0 -38
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/BlockStatement.ts +0 -27
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/CallExpression.ts +0 -45
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDeclaration.ts +0 -27
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDefinition.ts +0 -73
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassProperty.ts +0 -51
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSFunctionType.ts +0 -42
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSImportDeclaration.ts +0 -39
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSParameterExpression.ts +0 -43
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ExpressionStatement.ts +0 -28
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionDeclaration.ts +0 -37
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionExpression.ts +0 -28
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/IfStatement.ts +0 -37
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MemberExpression.ts +0 -42
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MethodDefinition.ts +0 -46
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/NumberLiteral.ts +0 -30
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ObjectExpression.ts +0 -37
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/Property.ts +0 -27
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ScriptFunction.ts +0 -46
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/StructDeclaration.ts +0 -28
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSInterfaceDeclaration.ts +0 -47
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +0 -40
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeParameter.ts +0 -36
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TryStatement.ts +0 -41
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclaration.ts +0 -42
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclarator.ts +0 -39
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Diagnostic.ts +0 -38
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticInfo.ts +0 -34
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticKind.ts +0 -33
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Program.ts +0 -105
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourcePosition.ts +0 -38
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourceRange.ts +0 -38
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SuggestionInfo.ts +0 -34
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/static/global.ts +0 -16
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/to-be-generated/MemberExpression.ts +0 -108
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/types.ts +0 -889
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/nativePtrDecoder.ts +0 -69
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/private.ts +0 -198
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/public.ts +0 -327
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/visitor.ts +0 -421
- package/build/libarkts-copy/src/wrapper-compat/index.ts +0 -20
- package/templates/node-map.ts +0 -35
|
@@ -19,14 +19,9 @@
|
|
|
19
19
|
#include <string>
|
|
20
20
|
#include <mutex>
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
26
|
-
GetImpl()->AstNodeRecheck(context, node);
|
|
27
|
-
return nullptr;
|
|
28
|
-
}
|
|
29
|
-
KOALA_INTEROP_2(AstNodeRecheck, KNativePointer, KNativePointer, KNativePointer)
|
|
22
|
+
/** XXX: If you add or remove methods that exist in C API,
|
|
23
|
+
* please change generator/options.json5 accordingly.
|
|
24
|
+
*/
|
|
30
25
|
|
|
31
26
|
KNativePointer impl_AstNodeRebind(KNativePointer contextPtr, KNativePointer nodePtr)
|
|
32
27
|
{
|
|
@@ -57,17 +52,6 @@ KNativePointer impl_AnnotationAllowedAnnotationsConst(KNativePointer contextPtr,
|
|
|
57
52
|
}
|
|
58
53
|
KOALA_INTEROP_3(AnnotationAllowedAnnotationsConst, KNativePointer, KNativePointer, KNativePointer, KNativePointer)
|
|
59
54
|
|
|
60
|
-
/*
|
|
61
|
-
KNativePointer impl_AstNodeVariableConst(KNativePointer contextPtr, KNativePointer nodePtr)
|
|
62
|
-
{
|
|
63
|
-
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
64
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
65
|
-
|
|
66
|
-
return GetImpl()->AstNodeVariableConst(context, node);
|
|
67
|
-
}
|
|
68
|
-
KOALA_INTEROP_2(AstNodeVariableConst, KNativePointer, KNativePointer, KNativePointer)
|
|
69
|
-
*/
|
|
70
|
-
|
|
71
55
|
KNativePointer impl_VariableDeclaration(KNativePointer contextPtr, KNativePointer variablePtr)
|
|
72
56
|
{
|
|
73
57
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
@@ -86,15 +70,6 @@ KNativePointer impl_DeclNode(KNativePointer contextPtr, KNativePointer declPtr)
|
|
|
86
70
|
}
|
|
87
71
|
KOALA_INTEROP_2(DeclNode, KNativePointer, KNativePointer, KNativePointer)
|
|
88
72
|
|
|
89
|
-
/*
|
|
90
|
-
KNativePointer impl_AstNodeScopeConst(KNativePointer contextPtr, KNativePointer nodePtr)
|
|
91
|
-
{
|
|
92
|
-
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
93
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
94
|
-
return GetImpl()->AstNodeScopeConst(context, node);
|
|
95
|
-
}
|
|
96
|
-
KOALA_INTEROP_2(AstNodeScopeConst, KNativePointer, KNativePointer, KNativePointer)
|
|
97
|
-
*/
|
|
98
73
|
KNativePointer impl_ScopeSetParent(KNativePointer contextPtr, KNativePointer nodePtr, KNativePointer parentPtr)
|
|
99
74
|
{
|
|
100
75
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
@@ -105,16 +80,6 @@ KNativePointer impl_ScopeSetParent(KNativePointer contextPtr, KNativePointer nod
|
|
|
105
80
|
}
|
|
106
81
|
KOALA_INTEROP_3(ScopeSetParent, KNativePointer, KNativePointer, KNativePointer, KNativePointer)
|
|
107
82
|
|
|
108
|
-
/*
|
|
109
|
-
KNativePointer impl_CreateNumberLiteral(KNativePointer contextPtr, KDouble value)
|
|
110
|
-
{
|
|
111
|
-
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
112
|
-
|
|
113
|
-
return GetImpl()->CreateNumberLiteral(context, value);
|
|
114
|
-
}
|
|
115
|
-
KOALA_INTEROP_2(CreateNumberLiteral, KNativePointer, KNativePointer, KDouble)
|
|
116
|
-
*/
|
|
117
|
-
|
|
118
83
|
KNativePointer impl_ETSParserCreateExpression(KNativePointer contextPtr, KStringPtr& sourceCodePtr, KInt flagsT)
|
|
119
84
|
{
|
|
120
85
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
@@ -124,42 +89,6 @@ KNativePointer impl_ETSParserCreateExpression(KNativePointer contextPtr, KString
|
|
|
124
89
|
}
|
|
125
90
|
KOALA_INTEROP_3(ETSParserCreateExpression, KNativePointer, KNativePointer, KStringPtr, KInt)
|
|
126
91
|
|
|
127
|
-
KBoolean impl_IsProgram(KNativePointer contextPtr, KNativePointer nodePtr)
|
|
128
|
-
{
|
|
129
|
-
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
130
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
131
|
-
return GetImpl()->AstNodeIsProgramConst(context, node);
|
|
132
|
-
}
|
|
133
|
-
KOALA_INTEROP_2(IsProgram, KBoolean, KNativePointer, KNativePointer)
|
|
134
|
-
|
|
135
|
-
KBoolean impl_IsBlockStatement(KNativePointer nodePtr)
|
|
136
|
-
{
|
|
137
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
138
|
-
return GetImpl()->IsBlockStatement(node);
|
|
139
|
-
}
|
|
140
|
-
KOALA_INTEROP_1(IsBlockStatement, KBoolean, KNativePointer)
|
|
141
|
-
|
|
142
|
-
KNativePointer impl_ProceedToState(KNativePointer contextPtr, KInt state)
|
|
143
|
-
{
|
|
144
|
-
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
145
|
-
return GetImpl()->ProceedToState(context, intToState(state));
|
|
146
|
-
}
|
|
147
|
-
KOALA_INTEROP_2(ProceedToState, KNativePointer, KNativePointer, KInt)
|
|
148
|
-
|
|
149
|
-
KNativePointer impl_ContextProgram(KNativePointer contextPtr)
|
|
150
|
-
{
|
|
151
|
-
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
152
|
-
return GetImpl()->ContextProgram(context);
|
|
153
|
-
}
|
|
154
|
-
KOALA_INTEROP_1(ContextProgram, KNativePointer, KNativePointer)
|
|
155
|
-
|
|
156
|
-
KBoolean impl_IsIdentifier(KNativePointer nodePtr)
|
|
157
|
-
{
|
|
158
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
159
|
-
return GetImpl()->IsIdentifier(node);
|
|
160
|
-
}
|
|
161
|
-
KOALA_INTEROP_1(IsIdentifier, KBoolean, KNativePointer)
|
|
162
|
-
|
|
163
92
|
KNativePointer impl_CreateContextFromString(KNativePointer configPtr, KStringPtr& sourcePtr, KStringPtr& filenamePtr)
|
|
164
93
|
{
|
|
165
94
|
auto config = reinterpret_cast<es2panda_Config*>(configPtr);
|
|
@@ -174,40 +103,6 @@ KNativePointer impl_CreateContextFromFile(KNativePointer configPtr, KStringPtr&
|
|
|
174
103
|
}
|
|
175
104
|
KOALA_INTEROP_2(CreateContextFromFile, KNativePointer, KNativePointer, KStringPtr)
|
|
176
105
|
|
|
177
|
-
KInt impl_ContextState(KNativePointer contextPtr)
|
|
178
|
-
{
|
|
179
|
-
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
180
|
-
|
|
181
|
-
return static_cast<KInt>(GetImpl()->ContextState(context));
|
|
182
|
-
}
|
|
183
|
-
KOALA_INTEROP_1(ContextState, KInt, KNativePointer)
|
|
184
|
-
|
|
185
|
-
KNativePointer impl_ContextErrorMessage(KNativePointer contextPtr)
|
|
186
|
-
{
|
|
187
|
-
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
188
|
-
|
|
189
|
-
return StageArena::strdup(GetImpl()->ContextErrorMessage(context));
|
|
190
|
-
}
|
|
191
|
-
KOALA_INTEROP_1(ContextErrorMessage, KNativePointer, KNativePointer)
|
|
192
|
-
|
|
193
|
-
KNativePointer impl_GetAllErrorMessages(KNativePointer contextPtr)
|
|
194
|
-
{
|
|
195
|
-
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
196
|
-
|
|
197
|
-
return StageArena::strdup(GetImpl()->GetAllErrorMessages(context));
|
|
198
|
-
}
|
|
199
|
-
KOALA_INTEROP_1(GetAllErrorMessages, KNativePointer, KNativePointer)
|
|
200
|
-
|
|
201
|
-
/*
|
|
202
|
-
KNativePointer impl_CallExpressionSignature(KNativePointer context, KNativePointer classInstance)
|
|
203
|
-
{
|
|
204
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
205
|
-
const auto _classInstance = reinterpret_cast<es2panda_AstNode*>(classInstance);
|
|
206
|
-
const auto result = GetImpl()->CallExpressionSignature(_context, _classInstance);
|
|
207
|
-
return result;
|
|
208
|
-
}
|
|
209
|
-
KOALA_INTEROP_2(CallExpressionSignature, KNativePointer, KNativePointer, KNativePointer)
|
|
210
|
-
*/
|
|
211
106
|
KNativePointer impl_SignatureFunction(KNativePointer context, KNativePointer classInstance)
|
|
212
107
|
{
|
|
213
108
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -217,15 +112,6 @@ KNativePointer impl_SignatureFunction(KNativePointer context, KNativePointer cla
|
|
|
217
112
|
}
|
|
218
113
|
KOALA_INTEROP_2(SignatureFunction, KNativePointer, KNativePointer, KNativePointer)
|
|
219
114
|
|
|
220
|
-
KNativePointer impl_DeclarationFromIdentifier(KNativePointer context, KNativePointer identifier)
|
|
221
|
-
{
|
|
222
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
223
|
-
const auto _identifier = reinterpret_cast<es2panda_AstNode*>(identifier);
|
|
224
|
-
const auto result = GetImpl()->DeclarationFromIdentifier(_context, _identifier);
|
|
225
|
-
return result;
|
|
226
|
-
}
|
|
227
|
-
KOALA_INTEROP_2(DeclarationFromIdentifier, KNativePointer, KNativePointer, KNativePointer)
|
|
228
|
-
|
|
229
115
|
static KNativePointer impl_ProgramExternalSources(KNativePointer contextPtr, KNativePointer instancePtr)
|
|
230
116
|
{
|
|
231
117
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
@@ -272,27 +158,6 @@ static KNativePointer impl_ExternalSourcePrograms(KNativePointer instance)
|
|
|
272
158
|
}
|
|
273
159
|
KOALA_INTEROP_1(ExternalSourcePrograms, KNativePointer, KNativePointer);
|
|
274
160
|
|
|
275
|
-
KBoolean impl_IsClassProperty(KNativePointer nodePtr)
|
|
276
|
-
{
|
|
277
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
278
|
-
return GetImpl()->IsClassProperty(node);
|
|
279
|
-
}
|
|
280
|
-
KOALA_INTEROP_1(IsClassProperty, KBoolean, KNativePointer)
|
|
281
|
-
|
|
282
|
-
KBoolean impl_IsETSUnionType(KNativePointer nodePtr)
|
|
283
|
-
{
|
|
284
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
285
|
-
return GetImpl()->IsETSUnionType(node);
|
|
286
|
-
}
|
|
287
|
-
KOALA_INTEROP_1(IsETSUnionType, KBoolean, KNativePointer)
|
|
288
|
-
|
|
289
|
-
KBoolean impl_IsETSFunctionType(KNativePointer nodePtr)
|
|
290
|
-
{
|
|
291
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
292
|
-
return GetImpl()->IsETSFunctionType(node);
|
|
293
|
-
}
|
|
294
|
-
KOALA_INTEROP_1(IsETSFunctionType, KBoolean, KNativePointer)
|
|
295
|
-
|
|
296
161
|
KNativePointer impl_ETSParserBuildImportDeclaration(KNativePointer context, KInt importKinds, KNativePointerArray specifiers, KUInt specifiersSequenceLength, KNativePointer source, KNativePointer program, KInt importFlag)
|
|
297
162
|
{
|
|
298
163
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -307,15 +172,6 @@ KNativePointer impl_ETSParserBuildImportDeclaration(KNativePointer context, KInt
|
|
|
307
172
|
}
|
|
308
173
|
KOALA_INTEROP_7(ETSParserBuildImportDeclaration, KNativePointer, KNativePointer, KInt, KNativePointerArray, KUInt, KNativePointer, KNativePointer, KInt)
|
|
309
174
|
|
|
310
|
-
void impl_InsertETSImportDeclarationAndParse(KNativePointer context, KNativePointer program, KNativePointer importDeclaration)
|
|
311
|
-
{
|
|
312
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
313
|
-
const auto _program = reinterpret_cast<es2panda_Program*>(program);
|
|
314
|
-
const auto _import = reinterpret_cast<es2panda_AstNode*>(importDeclaration);
|
|
315
|
-
GetImpl()->InsertETSImportDeclarationAndParse(_context, _program, _import);
|
|
316
|
-
}
|
|
317
|
-
KOALA_INTEROP_V3(InsertETSImportDeclarationAndParse, KNativePointer, KNativePointer, KNativePointer)
|
|
318
|
-
|
|
319
175
|
KNativePointer impl_ETSParserGetImportPathManager(KNativePointer contextPtr)
|
|
320
176
|
{
|
|
321
177
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
@@ -323,37 +179,13 @@ KNativePointer impl_ETSParserGetImportPathManager(KNativePointer contextPtr)
|
|
|
323
179
|
}
|
|
324
180
|
KOALA_INTEROP_1(ETSParserGetImportPathManager, KNativePointer, KNativePointer);
|
|
325
181
|
|
|
326
|
-
|
|
327
|
-
{
|
|
328
|
-
auto&& _context_ = reinterpret_cast<es2panda_Context *>(context);
|
|
329
|
-
return GetImpl()->CreateSourcePosition(_context_, index, line);
|
|
330
|
-
}
|
|
331
|
-
KOALA_INTEROP_3(CreateSourcePosition, KNativePointer, KNativePointer, KInt, KInt);
|
|
332
|
-
|
|
333
|
-
KInt impl_SourcePositionIndex(KNativePointer context, KNativePointer instance)
|
|
334
|
-
{
|
|
335
|
-
auto&& _context_ = reinterpret_cast<es2panda_Context *>(context);
|
|
336
|
-
auto&& _instance_ = reinterpret_cast<es2panda_SourcePosition *>(instance);
|
|
337
|
-
return GetImpl()->SourcePositionIndex(_context_, _instance_);
|
|
338
|
-
}
|
|
339
|
-
KOALA_INTEROP_2(SourcePositionIndex, KInt, KNativePointer, KNativePointer);
|
|
340
|
-
|
|
341
|
-
KInt impl_SourcePositionLine(KNativePointer context, KNativePointer instance)
|
|
182
|
+
KInt impl_SourcePositionCol(KNativePointer context, KNativePointer instance)
|
|
342
183
|
{
|
|
343
184
|
auto&& _context_ = reinterpret_cast<es2panda_Context *>(context);
|
|
344
185
|
auto&& _instance_ = reinterpret_cast<es2panda_SourcePosition *>(instance);
|
|
345
|
-
return GetImpl()->
|
|
186
|
+
return GetImpl()->SourcePositionCol(_context_, _instance_);
|
|
346
187
|
}
|
|
347
|
-
KOALA_INTEROP_2(
|
|
348
|
-
|
|
349
|
-
KNativePointer impl_CreateSourceRange(KNativePointer context, KNativePointer start, KNativePointer end)
|
|
350
|
-
{
|
|
351
|
-
auto&& _context_ = reinterpret_cast<es2panda_Context *>(context);
|
|
352
|
-
auto&& _start_ = reinterpret_cast<es2panda_SourcePosition *>(start);
|
|
353
|
-
auto&& _end_ = reinterpret_cast<es2panda_SourcePosition *>(end);
|
|
354
|
-
return GetImpl()->CreateSourceRange(_context_, _start_, _end_);
|
|
355
|
-
}
|
|
356
|
-
KOALA_INTEROP_3(CreateSourceRange, KNativePointer, KNativePointer, KNativePointer, KNativePointer);
|
|
188
|
+
KOALA_INTEROP_2(SourcePositionCol, KInt, KNativePointer, KNativePointer);
|
|
357
189
|
|
|
358
190
|
KNativePointer impl_ConfigGetOptions(KNativePointer config)
|
|
359
191
|
{
|
|
@@ -405,6 +237,14 @@ KOALA_INTEROP_V1(DestroyGlobalContext, KNativePointer)
|
|
|
405
237
|
// All these "Checker_" bridges are related to checker namespace in es2panda, so work with them carefully
|
|
406
238
|
// Checker.Type does reset on recheck, so modifying them makes no sence
|
|
407
239
|
// It seems that compiler does not provide API to convert Checker.Type to ir.Type
|
|
240
|
+
KNativePointer impl_Checker_CreateOpaqueTypeNode(KNativePointer context, KNativePointer type)
|
|
241
|
+
{
|
|
242
|
+
auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
243
|
+
auto _type = reinterpret_cast<es2panda_Type*>(type);
|
|
244
|
+
return GetImpl()->CreateOpaqueTypeNode(_context, _type);
|
|
245
|
+
}
|
|
246
|
+
KOALA_INTEROP_2(Checker_CreateOpaqueTypeNode, KNativePointer, KNativePointer, KNativePointer)
|
|
247
|
+
|
|
408
248
|
KNativePointer impl_Checker_ScriptFunctionSignature(KNativePointer context, KNativePointer node)
|
|
409
249
|
{
|
|
410
250
|
auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -449,6 +289,24 @@ void impl_Checker_ScriptFunctionSetPreferredReturnType(KNativePointer context, K
|
|
|
449
289
|
}
|
|
450
290
|
KOALA_INTEROP_V3(Checker_ScriptFunctionSetPreferredReturnType, KNativePointer, KNativePointer, KNativePointer)
|
|
451
291
|
|
|
292
|
+
KNativePointer impl_Checker_ExpressionGetPreferredType(KNativePointer context, KNativePointer node)
|
|
293
|
+
{
|
|
294
|
+
auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
295
|
+
auto _node = reinterpret_cast<es2panda_AstNode*>(node);
|
|
296
|
+
return GetImpl()->ExpressionPreferredTypeConst(_context, _node);
|
|
297
|
+
}
|
|
298
|
+
KOALA_INTEROP_2(Checker_ExpressionGetPreferredType, KNativePointer, KNativePointer, KNativePointer)
|
|
299
|
+
|
|
300
|
+
void impl_Checker_ExpressionSetPreferredType(KNativePointer context, KNativePointer node, KNativePointer type)
|
|
301
|
+
{
|
|
302
|
+
auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
303
|
+
auto _node = reinterpret_cast<es2panda_AstNode*>(node);
|
|
304
|
+
auto _type = reinterpret_cast<es2panda_Type*>(type);
|
|
305
|
+
GetImpl()->ExpressionSetPreferredType(_context, _node, _type);
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
KOALA_INTEROP_V3(Checker_ExpressionSetPreferredType, KNativePointer, KNativePointer, KNativePointer)
|
|
309
|
+
|
|
452
310
|
KNativePointer impl_Checker_TypeToString(KNativePointer context, KNativePointer type)
|
|
453
311
|
{
|
|
454
312
|
auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -458,6 +316,14 @@ KNativePointer impl_Checker_TypeToString(KNativePointer context, KNativePointer
|
|
|
458
316
|
}
|
|
459
317
|
KOALA_INTEROP_2(Checker_TypeToString, KNativePointer, KNativePointer, KNativePointer)
|
|
460
318
|
|
|
319
|
+
KNativePointer impl_Checker_TypeClone(KNativePointer context, KNativePointer type)
|
|
320
|
+
{
|
|
321
|
+
auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
322
|
+
auto _type = reinterpret_cast<es2panda_Type*>(type);
|
|
323
|
+
return GetImpl()->TypeClone(_context, _type);
|
|
324
|
+
}
|
|
325
|
+
KOALA_INTEROP_2(Checker_TypeClone, KNativePointer, KNativePointer, KNativePointer)
|
|
326
|
+
|
|
461
327
|
KNativePointer impl_Checker_TypeNodeGetType(KNativePointer context, KNativePointer astNode)
|
|
462
328
|
{
|
|
463
329
|
auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -512,12 +378,6 @@ KNativePointer impl_ClassVariableDeclaration(KNativePointer context, KNativePoin
|
|
|
512
378
|
}
|
|
513
379
|
KOALA_INTEROP_2(ClassVariableDeclaration, KNativePointer, KNativePointer, KNativePointer)
|
|
514
380
|
|
|
515
|
-
KBoolean impl_IsMethodDefinition(KNativePointer nodePtr)
|
|
516
|
-
{
|
|
517
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
518
|
-
return GetImpl()->IsMethodDefinition(node);
|
|
519
|
-
}
|
|
520
|
-
KOALA_INTEROP_1(IsMethodDefinition, KBoolean, KNativePointer)
|
|
521
381
|
KNativePointer impl_TSInterfaceBodyBodyPtr(KNativePointer context, KNativePointer receiver)
|
|
522
382
|
{
|
|
523
383
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -538,30 +398,6 @@ KNativePointer impl_AnnotationDeclarationPropertiesPtrConst(KNativePointer conte
|
|
|
538
398
|
}
|
|
539
399
|
KOALA_INTEROP_2(AnnotationDeclarationPropertiesPtrConst, KNativePointer, KNativePointer, KNativePointer);
|
|
540
400
|
|
|
541
|
-
KNativePointer impl_SourceRangeStart(KNativePointer context, KNativePointer range)
|
|
542
|
-
{
|
|
543
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
544
|
-
const auto _range = reinterpret_cast<es2panda_SourceRange*>(range);
|
|
545
|
-
auto result = GetImpl()->SourceRangeStart(_context, _range);
|
|
546
|
-
return result;
|
|
547
|
-
}
|
|
548
|
-
KOALA_INTEROP_2(SourceRangeStart, KNativePointer, KNativePointer, KNativePointer)
|
|
549
|
-
|
|
550
|
-
KNativePointer impl_SourceRangeEnd(KNativePointer context, KNativePointer range) {
|
|
551
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
552
|
-
const auto _range = reinterpret_cast<es2panda_SourceRange*>(range);
|
|
553
|
-
auto result = GetImpl()->SourceRangeEnd(_context, _range);
|
|
554
|
-
return result;
|
|
555
|
-
}
|
|
556
|
-
KOALA_INTEROP_2(SourceRangeEnd, KNativePointer, KNativePointer, KNativePointer)
|
|
557
|
-
|
|
558
|
-
KBoolean impl_IsArrayExpression(KNativePointer nodePtr)
|
|
559
|
-
{
|
|
560
|
-
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
561
|
-
return GetImpl()->IsArrayExpression(node);
|
|
562
|
-
}
|
|
563
|
-
KOALA_INTEROP_1(IsArrayExpression, KBoolean, KNativePointer)
|
|
564
|
-
|
|
565
401
|
KNativePointer impl_ETSParserGetGlobalProgramAbsName(KNativePointer contextPtr)
|
|
566
402
|
{
|
|
567
403
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
@@ -601,10 +437,11 @@ KOALA_INTEROP_5(CreateDiagnosticInfo, KNativePointer, KNativePointer, KNativePoi
|
|
|
601
437
|
KStringArray, KInt, KNativePointer)
|
|
602
438
|
|
|
603
439
|
KNativePointer impl_CreateSuggestionInfo(KNativePointer context, KNativePointer kind, KStringArray argsPtr,
|
|
604
|
-
KInt argc, KStringPtr& substitutionCode, KNativePointer range)
|
|
440
|
+
KInt argc, KStringPtr& substitutionCode, KStringPtr& title, KNativePointer range)
|
|
605
441
|
{
|
|
606
442
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
607
443
|
const auto _kind = reinterpret_cast<es2panda_DiagnosticKind *>(kind);
|
|
444
|
+
const auto _title = getStringCopy(title);
|
|
608
445
|
const auto _range = reinterpret_cast<es2panda_SourceRange *>(range);
|
|
609
446
|
const std::size_t headerLen = 4;
|
|
610
447
|
const char** _args = new const char*[argc];
|
|
@@ -617,9 +454,10 @@ KNativePointer impl_CreateSuggestionInfo(KNativePointer context, KNativePointer
|
|
|
617
454
|
position += strLen;
|
|
618
455
|
}
|
|
619
456
|
const auto _substitutionCode = getStringCopy(substitutionCode);
|
|
620
|
-
return GetImpl()->CreateSuggestionInfo(_context, _kind, _args, argc, _substitutionCode, _range);
|
|
457
|
+
return GetImpl()->CreateSuggestionInfo(_context, _kind, _args, argc, _substitutionCode, _title, _range);
|
|
621
458
|
}
|
|
622
|
-
|
|
459
|
+
KOALA_INTEROP_7(CreateSuggestionInfo, KNativePointer, KNativePointer, KNativePointer, KStringArray, KInt,
|
|
460
|
+
KStringPtr, KStringPtr, KNativePointer)
|
|
623
461
|
|
|
624
462
|
void impl_LogDiagnostic(KNativePointer context, KNativePointer kind, KStringArray argvPtr,
|
|
625
463
|
KInt argc, KNativePointer pos)
|
|
@@ -641,23 +479,6 @@ void impl_LogDiagnostic(KNativePointer context, KNativePointer kind, KStringArra
|
|
|
641
479
|
}
|
|
642
480
|
KOALA_INTEROP_V5(LogDiagnostic, KNativePointer, KNativePointer, KStringArray, KInt, KNativePointer)
|
|
643
481
|
|
|
644
|
-
void impl_LogDiagnosticWithSuggestion(KNativePointer context, KNativePointer diagnosticInfo,
|
|
645
|
-
KNativePointer suggestionInfo)
|
|
646
|
-
{
|
|
647
|
-
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
648
|
-
const auto _diagnosticInfo = reinterpret_cast<es2panda_DiagnosticInfo*>(diagnosticInfo);
|
|
649
|
-
const auto _suggestionInfo = reinterpret_cast<es2panda_SuggestionInfo*>(suggestionInfo);
|
|
650
|
-
GetImpl()->LogDiagnosticWithSuggestion(_context, _diagnosticInfo, _suggestionInfo);
|
|
651
|
-
}
|
|
652
|
-
KOALA_INTEROP_V3(LogDiagnosticWithSuggestion, KNativePointer, KNativePointer, KNativePointer)
|
|
653
|
-
|
|
654
|
-
KInt impl_GenerateStaticDeclarationsFromContext(KNativePointer contextPtr, KStringPtr &outputPath)
|
|
655
|
-
{
|
|
656
|
-
auto context = reinterpret_cast<es2panda_Context *>(contextPtr);
|
|
657
|
-
return GetImpl()->GenerateStaticDeclarationsFromContext(context, outputPath.data());
|
|
658
|
-
}
|
|
659
|
-
KOALA_INTEROP_2(GenerateStaticDeclarationsFromContext, KInt, KNativePointer, KStringPtr)
|
|
660
|
-
|
|
661
482
|
KNativePointer impl_AnnotationUsageIrPropertiesPtrConst(KNativePointer context, KNativePointer receiver)
|
|
662
483
|
{
|
|
663
484
|
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
@@ -700,11 +521,27 @@ KNativePointer impl_CreateContextGenerateAbcForExternalSourceFiles(
|
|
|
700
521
|
}
|
|
701
522
|
KOALA_INTEROP_3(CreateContextGenerateAbcForExternalSourceFiles, KNativePointer, KNativePointer, KInt, KStringArray)
|
|
702
523
|
|
|
703
|
-
|
|
524
|
+
KInt impl_GetCompilationMode(KNativePointer configPtr)
|
|
704
525
|
{
|
|
705
|
-
auto
|
|
706
|
-
auto
|
|
707
|
-
return
|
|
526
|
+
auto _config = reinterpret_cast<es2panda_Config *>(configPtr);
|
|
527
|
+
auto _options = const_cast<es2panda_Options *>(GetImpl()->ConfigGetOptions(_config));
|
|
528
|
+
return GetImpl()->OptionsUtilGetCompilationModeConst(nullptr, _options);
|
|
708
529
|
}
|
|
709
|
-
|
|
530
|
+
KOALA_INTEROP_1(GetCompilationMode, KInt, KNativePointer);
|
|
710
531
|
|
|
532
|
+
KNativePointer impl_CreateTypeNodeFromTsType(KNativePointer context, KNativePointer nodePtr)
|
|
533
|
+
{
|
|
534
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
535
|
+
const auto _nodePtr = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
536
|
+
auto _tsType = GetImpl()->TypedTsType(_context, _nodePtr);
|
|
537
|
+
if (_tsType == nullptr) {
|
|
538
|
+
_tsType = GetImpl()->ExpressionTsType(_context, _nodePtr);
|
|
539
|
+
}
|
|
540
|
+
if (_tsType == nullptr) {
|
|
541
|
+
return nullptr;
|
|
542
|
+
}
|
|
543
|
+
const auto _nodeTsType = reinterpret_cast<es2panda_Type*>(_tsType);
|
|
544
|
+
auto _typeAnnotation = GetImpl()->CreateOpaqueTypeNode(_context, _nodeTsType);
|
|
545
|
+
return _typeAnnotation;
|
|
546
|
+
}
|
|
547
|
+
KOALA_INTEROP_2(CreateTypeNodeFromTsType, KNativePointer, KNativePointer, KNativePointer);
|
|
@@ -191,11 +191,6 @@ es2panda_Impl *GetImplSlow()
|
|
|
191
191
|
return es2pandaImplementation;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
es2panda_ContextState intToState(KInt state)
|
|
195
|
-
{
|
|
196
|
-
return es2panda_ContextState(state);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
194
|
string getString(KStringPtr ptr)
|
|
200
195
|
{
|
|
201
196
|
return ptr.data();
|
|
@@ -273,6 +268,18 @@ KInt impl_IdentifierIdentifierFlags(KNativePointer contextPtr, KNativePointer no
|
|
|
273
268
|
}
|
|
274
269
|
KOALA_INTEROP_2(IdentifierIdentifierFlags, KInt, KNativePointer, KNativePointer)
|
|
275
270
|
|
|
271
|
+
void impl_ClassDefinitionSetBody(KNativePointer context, KNativePointer receiver, KNativePointerArray body, KUInt bodyLength) {
|
|
272
|
+
const auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
273
|
+
const auto _receiver = reinterpret_cast<es2panda_AstNode*>(receiver);
|
|
274
|
+
const auto _body = reinterpret_cast<es2panda_AstNode**>(body);
|
|
275
|
+
const auto _bodyLength = static_cast<KUInt>(bodyLength);
|
|
276
|
+
GetImpl()->ClassDefinitionClearBody(_context, _receiver);
|
|
277
|
+
for (size_t i = 0; i < _bodyLength; i++) {
|
|
278
|
+
GetImpl()->ClassDefinitionEmplaceBody(_context, _receiver, _body[i]);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
KOALA_INTEROP_V4(ClassDefinitionSetBody, KNativePointer, KNativePointer, KNativePointerArray, KUInt)
|
|
282
|
+
|
|
276
283
|
/*
|
|
277
284
|
Improve: NOT FROM API (shouldn't be there)
|
|
278
285
|
-----------------------------------------------------------------------------------------------------------------------------
|
|
@@ -304,15 +311,37 @@ KNativePointer impl_AstNodeUpdateAll(KNativePointer contextPtr, KNativePointer p
|
|
|
304
311
|
}
|
|
305
312
|
KOALA_INTEROP_2(AstNodeUpdateAll, KNativePointer, KNativePointer, KNativePointer)
|
|
306
313
|
|
|
307
|
-
|
|
314
|
+
void impl_AstNodeSetChildrenParentPtr(KNativePointer contextPtr, KNativePointer nodePtr) {
|
|
308
315
|
auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
|
|
309
316
|
auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
|
|
310
317
|
cachedParentNode = node;
|
|
311
318
|
|
|
312
319
|
GetImpl()->AstNodeIterateConst(context, node, changeParent);
|
|
313
|
-
return node;
|
|
314
320
|
}
|
|
315
|
-
|
|
321
|
+
KOALA_INTEROP_V2(AstNodeSetChildrenParentPtr, KNativePointer, KNativePointer)
|
|
322
|
+
|
|
323
|
+
void impl_AstNodeOnUpdate(KNativePointer context, KNativePointer newNode, KNativePointer replacedNode) {
|
|
324
|
+
auto _context = reinterpret_cast<es2panda_Context*>(context);
|
|
325
|
+
auto _newNode = reinterpret_cast<es2panda_AstNode*>(newNode);
|
|
326
|
+
auto _replacedNode = reinterpret_cast<es2panda_AstNode*>(replacedNode);
|
|
327
|
+
|
|
328
|
+
// Assign original
|
|
329
|
+
auto _original = GetImpl()->AstNodeOriginalNodeConst(_context, _replacedNode);
|
|
330
|
+
if (!_original) {
|
|
331
|
+
_original = _replacedNode;
|
|
332
|
+
}
|
|
333
|
+
GetImpl()->AstNodeSetOriginalNode(_context, _newNode, _original);
|
|
334
|
+
|
|
335
|
+
// Assign new node parent
|
|
336
|
+
auto _parent = GetImpl()->AstNodeParent(_context, _replacedNode);
|
|
337
|
+
if (_parent) {
|
|
338
|
+
GetImpl()->AstNodeSetParent(_context, _newNode, _parent);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// Redirect children parent pointer to this node
|
|
342
|
+
impl_AstNodeSetChildrenParentPtr(context, newNode);
|
|
343
|
+
}
|
|
344
|
+
KOALA_INTEROP_V3(AstNodeOnUpdate, KNativePointer, KNativePointer, KNativePointer)
|
|
316
345
|
|
|
317
346
|
std::vector<void*> cachedChildren;
|
|
318
347
|
|