@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
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -1208,11 +1207,11 @@ export const factory = {
|
|
|
1208
1207
|
return updateNodeByNode(SequenceExpression.createSequenceExpression(sequence), original)
|
|
1209
1208
|
}
|
|
1210
1209
|
,
|
|
1211
|
-
createArrowFunctionExpression(_function
|
|
1210
|
+
createArrowFunctionExpression(_function: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
1212
1211
|
return ArrowFunctionExpression.createArrowFunctionExpression(_function, annotations)
|
|
1213
1212
|
}
|
|
1214
1213
|
,
|
|
1215
|
-
updateArrowFunctionExpression(original: ArrowFunctionExpression, _function
|
|
1214
|
+
updateArrowFunctionExpression(original: ArrowFunctionExpression, _function: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
1216
1215
|
if (isSameNativeObject(_function, original.function) && isSameNativeObject(annotations, original.annotations))
|
|
1217
1216
|
return original
|
|
1218
1217
|
return updateNodeByNode(ArrowFunctionExpression.createArrowFunctionExpression(_function, annotations), original)
|
|
@@ -20,10 +20,13 @@
|
|
|
20
20
|
|
|
21
21
|
export * from "./peers/SourcePosition"
|
|
22
22
|
export * from "./peers/SourceRange"
|
|
23
|
+
export * from "./peers/SrcDumper"
|
|
24
|
+
export * from "./peers/AstDumper"
|
|
23
25
|
export * from "./peers/LabelPair"
|
|
24
26
|
export * from "./peers/ScriptFunctionData"
|
|
25
27
|
export * from "./peers/ImportSource"
|
|
26
28
|
export * from "./peers/SignatureInfo"
|
|
29
|
+
export * from "./peers/ValidationInfo"
|
|
27
30
|
export * from "./peers/IndexInfo"
|
|
28
31
|
export * from "./peers/ObjectDescriptor"
|
|
29
32
|
export * from "./peers/ScopeFindResult"
|
|
@@ -215,7 +218,5 @@ export * from "./peers/NewExpression"
|
|
|
215
218
|
export * from "./peers/TSParameterProperty"
|
|
216
219
|
export * from "./peers/ETSWildcardType"
|
|
217
220
|
export * from "./peers/TSThisType"
|
|
218
|
-
export * from "./peers/InterfaceDecl"
|
|
219
|
-
export * from "./peers/FunctionDecl"
|
|
220
221
|
export * from "./peers/Program"
|
|
221
222
|
export * from "./peers/ArkTsConfig"
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -32,10 +31,11 @@ import {
|
|
|
32
31
|
unpackString
|
|
33
32
|
} from "../../reexport-for-generated"
|
|
34
33
|
|
|
34
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
35
|
|
|
36
36
|
export class AnnotatedAstNode extends AstNode {
|
|
37
|
-
constructor(pointer: KNativePointer) {
|
|
38
|
-
super(pointer)
|
|
37
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
38
|
+
super(pointer, astNodeType)
|
|
39
39
|
}
|
|
40
40
|
protected readonly brandAnnotatedAstNode: undefined
|
|
41
41
|
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -32,12 +31,13 @@ import {
|
|
|
32
31
|
unpackString
|
|
33
32
|
} from "../../reexport-for-generated"
|
|
34
33
|
|
|
34
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
35
|
import { Expression } from "./Expression"
|
|
36
36
|
import { TypeNode } from "./TypeNode"
|
|
37
37
|
|
|
38
38
|
export class AnnotatedExpression extends Expression {
|
|
39
|
-
constructor(pointer: KNativePointer) {
|
|
40
|
-
super(pointer)
|
|
39
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
+
super(pointer, astNodeType)
|
|
41
41
|
}
|
|
42
42
|
get typeAnnotation(): TypeNode | undefined {
|
|
43
43
|
return unpackNode(global.generatedEs2panda._AnnotatedExpressionTypeAnnotationConst(global.context, this.peer))
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -32,11 +31,12 @@ import {
|
|
|
32
31
|
unpackString
|
|
33
32
|
} from "../../reexport-for-generated"
|
|
34
33
|
|
|
34
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
35
|
import { Statement } from "./Statement"
|
|
36
36
|
|
|
37
37
|
export class AnnotatedStatement extends Statement {
|
|
38
|
-
constructor(pointer: KNativePointer) {
|
|
39
|
-
super(pointer)
|
|
38
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
39
|
+
super(pointer, astNodeType)
|
|
40
40
|
}
|
|
41
41
|
protected readonly brandAnnotatedStatement: undefined
|
|
42
42
|
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -36,25 +35,25 @@ import { AnnotationUsage } from "./AnnotationUsage"
|
|
|
36
35
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
37
36
|
import { Expression } from "./Expression"
|
|
38
37
|
import { Identifier } from "./Identifier"
|
|
38
|
+
import { SrcDumper } from "./SrcDumper"
|
|
39
39
|
import { Statement } from "./Statement"
|
|
40
40
|
|
|
41
41
|
export class AnnotationDeclaration extends Statement {
|
|
42
|
-
constructor(pointer: KNativePointer) {
|
|
43
|
-
|
|
44
|
-
super(pointer)
|
|
42
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
43
|
+
super(pointer, astNodeType)
|
|
45
44
|
}
|
|
46
45
|
static create1AnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[]): AnnotationDeclaration {
|
|
47
|
-
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration1(global.context, passNode(expr), passNodeArray(properties), properties.length))
|
|
46
|
+
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration1(global.context, passNode(expr), passNodeArray(properties), properties.length), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION)
|
|
48
47
|
result.setChildrenParentPtr()
|
|
49
48
|
return result
|
|
50
49
|
}
|
|
51
50
|
static updateAnnotationDeclaration(original?: AnnotationDeclaration, expr?: Expression): AnnotationDeclaration {
|
|
52
|
-
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration(global.context, passNode(original), passNode(expr)))
|
|
51
|
+
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration(global.context, passNode(original), passNode(expr)), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION)
|
|
53
52
|
result.setChildrenParentPtr()
|
|
54
53
|
return result
|
|
55
54
|
}
|
|
56
55
|
static update1AnnotationDeclaration(original: AnnotationDeclaration | undefined, expr: Expression | undefined, properties: readonly AstNode[]): AnnotationDeclaration {
|
|
57
|
-
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration1(global.context, passNode(original), passNode(expr), passNodeArray(properties), properties.length))
|
|
56
|
+
const result: AnnotationDeclaration = new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration1(global.context, passNode(original), passNode(expr), passNodeArray(properties), properties.length), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION)
|
|
58
57
|
result.setChildrenParentPtr()
|
|
59
58
|
return result
|
|
60
59
|
}
|
|
@@ -105,7 +104,7 @@ export class AnnotationDeclaration extends Statement {
|
|
|
105
104
|
return this
|
|
106
105
|
}
|
|
107
106
|
get baseName(): Identifier | undefined {
|
|
108
|
-
return unpackNode(global.generatedEs2panda._AnnotationDeclarationGetBaseNameConst(global.context, this.peer))
|
|
107
|
+
return unpackNode(global.generatedEs2panda._AnnotationDeclarationGetBaseNameConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
109
108
|
}
|
|
110
109
|
/** @deprecated */
|
|
111
110
|
emplaceProperties(properties?: AstNode): this {
|
|
@@ -122,9 +121,12 @@ export class AnnotationDeclaration extends Statement {
|
|
|
122
121
|
global.generatedEs2panda._AnnotationDeclarationSetValueProperties(global.context, this.peer, passNode(properties), index)
|
|
123
122
|
return this
|
|
124
123
|
}
|
|
124
|
+
get hasAnnotations(): boolean {
|
|
125
|
+
return global.generatedEs2panda._AnnotationDeclarationHasAnnotationsConst(global.context, this.peer)
|
|
126
|
+
}
|
|
125
127
|
/** @deprecated */
|
|
126
|
-
|
|
127
|
-
global.generatedEs2panda.
|
|
128
|
+
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
129
|
+
global.generatedEs2panda._AnnotationDeclarationEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
128
130
|
return this
|
|
129
131
|
}
|
|
130
132
|
/** @deprecated */
|
|
@@ -133,15 +135,15 @@ export class AnnotationDeclaration extends Statement {
|
|
|
133
135
|
return this
|
|
134
136
|
}
|
|
135
137
|
/** @deprecated */
|
|
136
|
-
|
|
137
|
-
global.generatedEs2panda.
|
|
138
|
+
dumpAnnotations(dumper?: SrcDumper): this {
|
|
139
|
+
global.generatedEs2panda._AnnotationDeclarationDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
138
140
|
return this
|
|
139
141
|
}
|
|
140
142
|
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
141
|
-
return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotationsForUpdate(global.context, this.peer))
|
|
143
|
+
return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
142
144
|
}
|
|
143
145
|
get annotations(): readonly AnnotationUsage[] {
|
|
144
|
-
return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotations(global.context, this.peer))
|
|
146
|
+
return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
145
147
|
}
|
|
146
148
|
/** @deprecated */
|
|
147
149
|
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
@@ -153,16 +155,11 @@ export class AnnotationDeclaration extends Statement {
|
|
|
153
155
|
global.generatedEs2panda._AnnotationDeclarationSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
154
156
|
return this
|
|
155
157
|
}
|
|
156
|
-
/** @deprecated */
|
|
157
|
-
addAnnotations(annotations?: AnnotationUsage): this {
|
|
158
|
-
global.generatedEs2panda._AnnotationDeclarationAddAnnotations(global.context, this.peer, passNode(annotations))
|
|
159
|
-
return this
|
|
160
|
-
}
|
|
161
158
|
protected readonly brandAnnotationDeclaration: undefined
|
|
162
159
|
}
|
|
163
160
|
export function isAnnotationDeclaration(node: object | undefined): node is AnnotationDeclaration {
|
|
164
161
|
return node instanceof AnnotationDeclaration
|
|
165
162
|
}
|
|
166
163
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION)) {
|
|
167
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION, (peer: KNativePointer) => new AnnotationDeclaration(peer))
|
|
164
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION, (peer: KNativePointer) => new AnnotationDeclaration(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION))
|
|
168
165
|
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -38,22 +37,21 @@ import { Identifier } from "./Identifier"
|
|
|
38
37
|
import { Statement } from "./Statement"
|
|
39
38
|
|
|
40
39
|
export class AnnotationUsage extends Statement {
|
|
41
|
-
constructor(pointer: KNativePointer) {
|
|
42
|
-
|
|
43
|
-
super(pointer)
|
|
40
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
+
super(pointer, astNodeType)
|
|
44
42
|
}
|
|
45
43
|
static create1AnnotationUsage(expr: Expression | undefined, properties: readonly AstNode[]): AnnotationUsage {
|
|
46
|
-
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsage1(global.context, passNode(expr), passNodeArray(properties), properties.length))
|
|
44
|
+
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsage1(global.context, passNode(expr), passNodeArray(properties), properties.length), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
47
45
|
result.setChildrenParentPtr()
|
|
48
46
|
return result
|
|
49
47
|
}
|
|
50
48
|
static updateAnnotationUsage(original?: AnnotationUsage, expr?: Expression): AnnotationUsage {
|
|
51
|
-
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsage(global.context, passNode(original), passNode(expr)))
|
|
49
|
+
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsage(global.context, passNode(original), passNode(expr)), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
52
50
|
result.setChildrenParentPtr()
|
|
53
51
|
return result
|
|
54
52
|
}
|
|
55
53
|
static update1AnnotationUsage(original: AnnotationUsage | undefined, expr: Expression | undefined, properties: readonly AstNode[]): AnnotationUsage {
|
|
56
|
-
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsage1(global.context, passNode(original), passNode(expr), passNodeArray(properties), properties.length))
|
|
54
|
+
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsage1(global.context, passNode(original), passNode(expr), passNodeArray(properties), properties.length), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
57
55
|
result.setChildrenParentPtr()
|
|
58
56
|
return result
|
|
59
57
|
}
|
|
@@ -74,7 +72,7 @@ export class AnnotationUsage extends Statement {
|
|
|
74
72
|
return this
|
|
75
73
|
}
|
|
76
74
|
get baseName(): Identifier | undefined {
|
|
77
|
-
return unpackNode(global.generatedEs2panda._AnnotationUsageGetBaseNameConst(global.context, this.peer))
|
|
75
|
+
return unpackNode(global.generatedEs2panda._AnnotationUsageGetBaseNameConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
78
76
|
}
|
|
79
77
|
protected readonly brandAnnotationUsage: undefined
|
|
80
78
|
}
|
|
@@ -82,5 +80,5 @@ export function isAnnotationUsage(node: object | undefined): node is AnnotationU
|
|
|
82
80
|
return node instanceof AnnotationUsage
|
|
83
81
|
}
|
|
84
82
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)) {
|
|
85
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, (peer: KNativePointer) => new AnnotationUsage(peer))
|
|
83
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, (peer: KNativePointer) => new AnnotationUsage(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE))
|
|
86
84
|
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -32,11 +31,15 @@ import {
|
|
|
32
31
|
unpackString
|
|
33
32
|
} from "../../reexport-for-generated"
|
|
34
33
|
|
|
34
|
+
import { ErrorLogger } from "./ErrorLogger"
|
|
35
35
|
|
|
36
36
|
export class ArkTsConfig extends ArktsObject {
|
|
37
37
|
constructor(pointer: KNativePointer) {
|
|
38
38
|
super(pointer)
|
|
39
39
|
}
|
|
40
|
+
static createArkTsConfig(configPath: string, de?: ErrorLogger): ArkTsConfig {
|
|
41
|
+
return new ArkTsConfig(global.generatedEs2panda._CreateArkTsConfig(global.context, configPath, passNode(de)))
|
|
42
|
+
}
|
|
40
43
|
/** @deprecated */
|
|
41
44
|
resolveAllDependenciesInArkTsConfig(): this {
|
|
42
45
|
global.generatedEs2panda._ArkTsConfigResolveAllDependenciesInArkTsConfig(global.context, this.peer)
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -33,29 +32,27 @@ import {
|
|
|
33
32
|
} from "../../reexport-for-generated"
|
|
34
33
|
|
|
35
34
|
import { AnnotatedExpression } from "./AnnotatedExpression"
|
|
36
|
-
import { Decorator } from "./Decorator"
|
|
37
35
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
38
36
|
import { Expression } from "./Expression"
|
|
39
37
|
import { TypeNode } from "./TypeNode"
|
|
40
38
|
import { ValidationInfo } from "./ValidationInfo"
|
|
41
39
|
|
|
42
40
|
export class ArrayExpression extends AnnotatedExpression {
|
|
43
|
-
constructor(pointer: KNativePointer) {
|
|
44
|
-
|
|
45
|
-
super(pointer)
|
|
41
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
42
|
+
super(pointer, astNodeType)
|
|
46
43
|
}
|
|
47
44
|
static create1ArrayExpression(nodeType: Es2pandaAstNodeType, elements: readonly Expression[], trailingComma: boolean): ArrayExpression {
|
|
48
|
-
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._CreateArrayExpression1(global.context, nodeType, passNodeArray(elements), elements.length, trailingComma))
|
|
45
|
+
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._CreateArrayExpression1(global.context, nodeType, passNodeArray(elements), elements.length, trailingComma), Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION)
|
|
49
46
|
result.setChildrenParentPtr()
|
|
50
47
|
return result
|
|
51
48
|
}
|
|
52
49
|
static updateArrayExpression(original: ArrayExpression | undefined, elements: readonly Expression[]): ArrayExpression {
|
|
53
|
-
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._UpdateArrayExpression(global.context, passNode(original), passNodeArray(elements), elements.length))
|
|
50
|
+
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._UpdateArrayExpression(global.context, passNode(original), passNodeArray(elements), elements.length), Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION)
|
|
54
51
|
result.setChildrenParentPtr()
|
|
55
52
|
return result
|
|
56
53
|
}
|
|
57
54
|
static update1ArrayExpression(original: ArrayExpression | undefined, nodeType: Es2pandaAstNodeType, elements: readonly Expression[], trailingComma: boolean): ArrayExpression {
|
|
58
|
-
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._UpdateArrayExpression1(global.context, passNode(original), nodeType, passNodeArray(elements), elements.length, trailingComma))
|
|
55
|
+
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._UpdateArrayExpression1(global.context, passNode(original), nodeType, passNodeArray(elements), elements.length, trailingComma), Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION)
|
|
59
56
|
result.setChildrenParentPtr()
|
|
60
57
|
return result
|
|
61
58
|
}
|
|
@@ -83,9 +80,6 @@ export class ArrayExpression extends AnnotatedExpression {
|
|
|
83
80
|
global.generatedEs2panda._ArrayExpressionSetOptional(global.context, this.peer, optional_arg)
|
|
84
81
|
return this
|
|
85
82
|
}
|
|
86
|
-
get decorators(): readonly Decorator[] {
|
|
87
|
-
return unpackNodeArray(global.generatedEs2panda._ArrayExpressionDecoratorsConst(global.context, this.peer))
|
|
88
|
-
}
|
|
89
83
|
/** @deprecated */
|
|
90
84
|
clearPreferredType(): this {
|
|
91
85
|
global.generatedEs2panda._ArrayExpressionClearPreferredType(global.context, this.peer)
|
|
@@ -111,5 +105,5 @@ export function isArrayExpression(node: object | undefined): node is ArrayExpres
|
|
|
111
105
|
return node instanceof ArrayExpression
|
|
112
106
|
}
|
|
113
107
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION)) {
|
|
114
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION, (peer: KNativePointer) => new ArrayExpression(peer))
|
|
108
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION, (peer: KNativePointer) => new ArrayExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION))
|
|
115
109
|
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -36,15 +35,15 @@ import { AnnotationUsage } from "./AnnotationUsage"
|
|
|
36
35
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
37
36
|
import { Expression } from "./Expression"
|
|
38
37
|
import { ScriptFunction } from "./ScriptFunction"
|
|
38
|
+
import { SrcDumper } from "./SrcDumper"
|
|
39
39
|
import { TypeNode } from "./TypeNode"
|
|
40
40
|
|
|
41
41
|
export class ArrowFunctionExpression extends Expression {
|
|
42
|
-
constructor(pointer: KNativePointer) {
|
|
43
|
-
|
|
44
|
-
super(pointer)
|
|
42
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
43
|
+
super(pointer, astNodeType)
|
|
45
44
|
}
|
|
46
45
|
static createArrowFunctionExpression(func?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
47
|
-
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression(global.context, passNode(func)))
|
|
46
|
+
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression(global.context, passNode(func)), Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION)
|
|
48
47
|
if (annotations)
|
|
49
48
|
{
|
|
50
49
|
result.setAnnotations(annotations)
|
|
@@ -53,7 +52,7 @@ export class ArrowFunctionExpression extends Expression {
|
|
|
53
52
|
return result
|
|
54
53
|
}
|
|
55
54
|
static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
56
|
-
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression(global.context, passNode(original), passNode(func)))
|
|
55
|
+
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression(global.context, passNode(original), passNode(func)), Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION)
|
|
57
56
|
if (annotations)
|
|
58
57
|
{
|
|
59
58
|
result.setAnnotations(annotations)
|
|
@@ -62,7 +61,7 @@ export class ArrowFunctionExpression extends Expression {
|
|
|
62
61
|
return result
|
|
63
62
|
}
|
|
64
63
|
static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
65
|
-
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression1(global.context, passNode(original), passNode(other)))
|
|
64
|
+
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression1(global.context, passNode(original), passNode(other)), Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION)
|
|
66
65
|
if (annotations)
|
|
67
66
|
{
|
|
68
67
|
result.setAnnotations(annotations)
|
|
@@ -70,15 +69,18 @@ export class ArrowFunctionExpression extends Expression {
|
|
|
70
69
|
result.setChildrenParentPtr()
|
|
71
70
|
return result
|
|
72
71
|
}
|
|
73
|
-
get function(): ScriptFunction
|
|
74
|
-
return
|
|
72
|
+
get function(): ScriptFunction {
|
|
73
|
+
return unpackNonNullableNode(global.generatedEs2panda._ArrowFunctionExpressionFunction(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION)
|
|
75
74
|
}
|
|
76
75
|
get createTypeAnnotation(): TypeNode | undefined {
|
|
77
76
|
return unpackNode(global.generatedEs2panda._ArrowFunctionExpressionCreateTypeAnnotation(global.context, this.peer))
|
|
78
77
|
}
|
|
78
|
+
get hasAnnotations(): boolean {
|
|
79
|
+
return global.generatedEs2panda._ArrowFunctionExpressionHasAnnotationsConst(global.context, this.peer)
|
|
80
|
+
}
|
|
79
81
|
/** @deprecated */
|
|
80
|
-
|
|
81
|
-
global.generatedEs2panda.
|
|
82
|
+
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
83
|
+
global.generatedEs2panda._ArrowFunctionExpressionEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
82
84
|
return this
|
|
83
85
|
}
|
|
84
86
|
/** @deprecated */
|
|
@@ -87,15 +89,15 @@ export class ArrowFunctionExpression extends Expression {
|
|
|
87
89
|
return this
|
|
88
90
|
}
|
|
89
91
|
/** @deprecated */
|
|
90
|
-
|
|
91
|
-
global.generatedEs2panda.
|
|
92
|
+
dumpAnnotations(dumper?: SrcDumper): this {
|
|
93
|
+
global.generatedEs2panda._ArrowFunctionExpressionDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
92
94
|
return this
|
|
93
95
|
}
|
|
94
96
|
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
95
|
-
return unpackNodeArray(global.generatedEs2panda._ArrowFunctionExpressionAnnotationsForUpdate(global.context, this.peer))
|
|
97
|
+
return unpackNodeArray(global.generatedEs2panda._ArrowFunctionExpressionAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
96
98
|
}
|
|
97
99
|
get annotations(): readonly AnnotationUsage[] {
|
|
98
|
-
return unpackNodeArray(global.generatedEs2panda._ArrowFunctionExpressionAnnotations(global.context, this.peer))
|
|
100
|
+
return unpackNodeArray(global.generatedEs2panda._ArrowFunctionExpressionAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
99
101
|
}
|
|
100
102
|
/** @deprecated */
|
|
101
103
|
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
@@ -107,16 +109,11 @@ export class ArrowFunctionExpression extends Expression {
|
|
|
107
109
|
global.generatedEs2panda._ArrowFunctionExpressionSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
108
110
|
return this
|
|
109
111
|
}
|
|
110
|
-
/** @deprecated */
|
|
111
|
-
addAnnotations(annotations?: AnnotationUsage): this {
|
|
112
|
-
global.generatedEs2panda._ArrowFunctionExpressionAddAnnotations(global.context, this.peer, passNode(annotations))
|
|
113
|
-
return this
|
|
114
|
-
}
|
|
115
112
|
protected readonly brandArrowFunctionExpression: undefined
|
|
116
113
|
}
|
|
117
114
|
export function isArrowFunctionExpression(node: object | undefined): node is ArrowFunctionExpression {
|
|
118
115
|
return node instanceof ArrowFunctionExpression
|
|
119
116
|
}
|
|
120
117
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION)) {
|
|
121
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION, (peer: KNativePointer) => new ArrowFunctionExpression(peer))
|
|
118
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION, (peer: KNativePointer) => new ArrowFunctionExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION))
|
|
122
119
|
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -37,17 +36,16 @@ import { Expression } from "./Expression"
|
|
|
37
36
|
import { Statement } from "./Statement"
|
|
38
37
|
|
|
39
38
|
export class AssertStatement extends Statement {
|
|
40
|
-
constructor(pointer: KNativePointer) {
|
|
41
|
-
|
|
42
|
-
super(pointer)
|
|
39
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
+
super(pointer, astNodeType)
|
|
43
41
|
}
|
|
44
42
|
static createAssertStatement(test?: Expression, second?: Expression): AssertStatement {
|
|
45
|
-
const result: AssertStatement = new AssertStatement(global.generatedEs2panda._CreateAssertStatement(global.context, passNode(test), passNode(second)))
|
|
43
|
+
const result: AssertStatement = new AssertStatement(global.generatedEs2panda._CreateAssertStatement(global.context, passNode(test), passNode(second)), Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT)
|
|
46
44
|
result.setChildrenParentPtr()
|
|
47
45
|
return result
|
|
48
46
|
}
|
|
49
47
|
static updateAssertStatement(original?: AssertStatement, test?: Expression, second?: Expression): AssertStatement {
|
|
50
|
-
const result: AssertStatement = new AssertStatement(global.generatedEs2panda._UpdateAssertStatement(global.context, passNode(original), passNode(test), passNode(second)))
|
|
48
|
+
const result: AssertStatement = new AssertStatement(global.generatedEs2panda._UpdateAssertStatement(global.context, passNode(original), passNode(test), passNode(second)), Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT)
|
|
51
49
|
result.setChildrenParentPtr()
|
|
52
50
|
return result
|
|
53
51
|
}
|
|
@@ -63,5 +61,5 @@ export function isAssertStatement(node: object | undefined): node is AssertState
|
|
|
63
61
|
return node instanceof AssertStatement
|
|
64
62
|
}
|
|
65
63
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT)) {
|
|
66
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT, (peer: KNativePointer) => new AssertStatement(peer))
|
|
64
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT, (peer: KNativePointer) => new AssertStatement(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT))
|
|
67
65
|
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -38,22 +37,21 @@ import { Es2pandaTokenType } from "./../Es2pandaEnums"
|
|
|
38
37
|
import { Expression } from "./Expression"
|
|
39
38
|
|
|
40
39
|
export class AssignmentExpression extends Expression {
|
|
41
|
-
constructor(pointer: KNativePointer) {
|
|
42
|
-
|
|
43
|
-
super(pointer)
|
|
40
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
+
super(pointer, astNodeType)
|
|
44
42
|
}
|
|
45
43
|
static create1AssignmentExpression(type: Es2pandaAstNodeType, left: Expression | undefined, right: Expression | undefined, assignmentOperator: Es2pandaTokenType): AssignmentExpression {
|
|
46
|
-
const result: AssignmentExpression = new AssignmentExpression(global.generatedEs2panda._CreateAssignmentExpression1(global.context, type, passNode(left), passNode(right), assignmentOperator))
|
|
44
|
+
const result: AssignmentExpression = new AssignmentExpression(global.generatedEs2panda._CreateAssignmentExpression1(global.context, type, passNode(left), passNode(right), assignmentOperator), Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION)
|
|
47
45
|
result.setChildrenParentPtr()
|
|
48
46
|
return result
|
|
49
47
|
}
|
|
50
48
|
static updateAssignmentExpression(original: AssignmentExpression | undefined, left: Expression | undefined, right: Expression | undefined, assignmentOperator: Es2pandaTokenType): AssignmentExpression {
|
|
51
|
-
const result: AssignmentExpression = new AssignmentExpression(global.generatedEs2panda._UpdateAssignmentExpression(global.context, passNode(original), passNode(left), passNode(right), assignmentOperator))
|
|
49
|
+
const result: AssignmentExpression = new AssignmentExpression(global.generatedEs2panda._UpdateAssignmentExpression(global.context, passNode(original), passNode(left), passNode(right), assignmentOperator), Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION)
|
|
52
50
|
result.setChildrenParentPtr()
|
|
53
51
|
return result
|
|
54
52
|
}
|
|
55
53
|
static update1AssignmentExpression(original: AssignmentExpression | undefined, type: Es2pandaAstNodeType, left: Expression | undefined, right: Expression | undefined, assignmentOperator: Es2pandaTokenType): AssignmentExpression {
|
|
56
|
-
const result: AssignmentExpression = new AssignmentExpression(global.generatedEs2panda._UpdateAssignmentExpression1(global.context, passNode(original), type, passNode(left), passNode(right), assignmentOperator))
|
|
54
|
+
const result: AssignmentExpression = new AssignmentExpression(global.generatedEs2panda._UpdateAssignmentExpression1(global.context, passNode(original), type, passNode(left), passNode(right), assignmentOperator), Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION)
|
|
57
55
|
result.setChildrenParentPtr()
|
|
58
56
|
return result
|
|
59
57
|
}
|
|
@@ -109,5 +107,5 @@ export function isAssignmentExpression(node: object | undefined): node is Assign
|
|
|
109
107
|
return node instanceof AssignmentExpression
|
|
110
108
|
}
|
|
111
109
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION)) {
|
|
112
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, (peer: KNativePointer) => new AssignmentExpression(peer))
|
|
110
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, (peer: KNativePointer) => new AssignmentExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION))
|
|
113
111
|
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -45,3 +44,6 @@ export class AstDumper extends ArktsObject {
|
|
|
45
44
|
}
|
|
46
45
|
protected readonly brandAstDumper: undefined
|
|
47
46
|
}
|
|
47
|
+
export function isAstDumper(node: object | undefined): node is AstDumper {
|
|
48
|
+
return node instanceof AstDumper
|
|
49
|
+
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -36,17 +35,16 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
36
35
|
import { Expression } from "./Expression"
|
|
37
36
|
|
|
38
37
|
export class AwaitExpression extends Expression {
|
|
39
|
-
constructor(pointer: KNativePointer) {
|
|
40
|
-
|
|
41
|
-
super(pointer)
|
|
38
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
39
|
+
super(pointer, astNodeType)
|
|
42
40
|
}
|
|
43
41
|
static createAwaitExpression(argument?: Expression): AwaitExpression {
|
|
44
|
-
const result: AwaitExpression = new AwaitExpression(global.generatedEs2panda._CreateAwaitExpression(global.context, passNode(argument)))
|
|
42
|
+
const result: AwaitExpression = new AwaitExpression(global.generatedEs2panda._CreateAwaitExpression(global.context, passNode(argument)), Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION)
|
|
45
43
|
result.setChildrenParentPtr()
|
|
46
44
|
return result
|
|
47
45
|
}
|
|
48
46
|
static updateAwaitExpression(original?: AwaitExpression, argument?: Expression): AwaitExpression {
|
|
49
|
-
const result: AwaitExpression = new AwaitExpression(global.generatedEs2panda._UpdateAwaitExpression(global.context, passNode(original), passNode(argument)))
|
|
47
|
+
const result: AwaitExpression = new AwaitExpression(global.generatedEs2panda._UpdateAwaitExpression(global.context, passNode(original), passNode(argument)), Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION)
|
|
50
48
|
result.setChildrenParentPtr()
|
|
51
49
|
return result
|
|
52
50
|
}
|
|
@@ -59,5 +57,5 @@ export function isAwaitExpression(node: object | undefined): node is AwaitExpres
|
|
|
59
57
|
return node instanceof AwaitExpression
|
|
60
58
|
}
|
|
61
59
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION)) {
|
|
62
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION, (peer: KNativePointer) => new AwaitExpression(peer))
|
|
60
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION, (peer: KNativePointer) => new AwaitExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION))
|
|
63
61
|
}
|