@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,
|
|
@@ -40,19 +39,20 @@ import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
|
40
39
|
import { Expression } from "./Expression"
|
|
41
40
|
import { Identifier } from "./Identifier"
|
|
42
41
|
import { MethodDefinition } from "./MethodDefinition"
|
|
42
|
+
import { SrcDumper } from "./SrcDumper"
|
|
43
43
|
import { TSClassImplements } from "./TSClassImplements"
|
|
44
44
|
import { TSEnumDeclaration } from "./TSEnumDeclaration"
|
|
45
45
|
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
46
46
|
import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation"
|
|
47
47
|
import { TypedAstNode } from "./TypedAstNode"
|
|
48
|
+
import { extension_ClassDefinitionSetBody } from "./../../reexport-for-generated"
|
|
48
49
|
|
|
49
50
|
export class ClassDefinition extends TypedAstNode {
|
|
50
|
-
constructor(pointer: KNativePointer) {
|
|
51
|
-
|
|
52
|
-
super(pointer)
|
|
51
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
52
|
+
super(pointer, astNodeType)
|
|
53
53
|
}
|
|
54
54
|
static createClassDefinition(ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
55
|
-
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._CreateClassDefinition(global.context, passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), _implements.length, passNode(ctor), passNode(superClass), passNodeArray(body), body.length, modifiers, flags))
|
|
55
|
+
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._CreateClassDefinition(global.context, passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), _implements.length, passNode(ctor), passNode(superClass), passNodeArray(body), body.length, modifiers, flags), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
|
|
56
56
|
if (annotations)
|
|
57
57
|
{
|
|
58
58
|
result.setAnnotations(annotations)
|
|
@@ -61,7 +61,7 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
61
61
|
return result
|
|
62
62
|
}
|
|
63
63
|
static updateClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
64
|
-
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition(global.context, passNode(original), passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), _implements.length, passNode(ctor), passNode(superClass), passNodeArray(body), body.length, modifiers, flags))
|
|
64
|
+
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition(global.context, passNode(original), passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), _implements.length, passNode(ctor), passNode(superClass), passNodeArray(body), body.length, modifiers, flags), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
|
|
65
65
|
if (annotations)
|
|
66
66
|
{
|
|
67
67
|
result.setAnnotations(annotations)
|
|
@@ -70,7 +70,7 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
70
70
|
return result
|
|
71
71
|
}
|
|
72
72
|
static update1ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
73
|
-
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition1(global.context, passNode(original), passNode(ident), passNodeArray(body), body.length, modifiers, flags))
|
|
73
|
+
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition1(global.context, passNode(original), passNode(ident), passNodeArray(body), body.length, modifiers, flags), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
|
|
74
74
|
if (annotations)
|
|
75
75
|
{
|
|
76
76
|
result.setAnnotations(annotations)
|
|
@@ -79,7 +79,7 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
79
79
|
return result
|
|
80
80
|
}
|
|
81
81
|
static update2ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
82
|
-
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition2(global.context, passNode(original), passNode(ident), modifiers, flags))
|
|
82
|
+
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition2(global.context, passNode(original), passNode(ident), modifiers, flags), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
|
|
83
83
|
if (annotations)
|
|
84
84
|
{
|
|
85
85
|
result.setAnnotations(annotations)
|
|
@@ -88,7 +88,7 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
88
88
|
return result
|
|
89
89
|
}
|
|
90
90
|
get ident(): Identifier | undefined {
|
|
91
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionIdent(global.context, this.peer))
|
|
91
|
+
return unpackNode(global.generatedEs2panda._ClassDefinitionIdent(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
92
92
|
}
|
|
93
93
|
/** @deprecated */
|
|
94
94
|
setIdent(ident?: Identifier): this {
|
|
@@ -148,6 +148,9 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
148
148
|
get isFromStruct(): boolean {
|
|
149
149
|
return global.generatedEs2panda._ClassDefinitionIsFromStructConst(global.context, this.peer)
|
|
150
150
|
}
|
|
151
|
+
get isInitInCctor(): boolean {
|
|
152
|
+
return global.generatedEs2panda._ClassDefinitionIsInitInCctorConst(global.context, this.peer)
|
|
153
|
+
}
|
|
151
154
|
get isModule(): boolean {
|
|
152
155
|
return global.generatedEs2panda._ClassDefinitionIsModuleConst(global.context, this.peer)
|
|
153
156
|
}
|
|
@@ -186,6 +189,11 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
186
189
|
global.generatedEs2panda._ClassDefinitionSetFromStructModifier(global.context, this.peer)
|
|
187
190
|
return this
|
|
188
191
|
}
|
|
192
|
+
/** @deprecated */
|
|
193
|
+
setInitInCctor(): this {
|
|
194
|
+
global.generatedEs2panda._ClassDefinitionSetInitInCctor(global.context, this.peer)
|
|
195
|
+
return this
|
|
196
|
+
}
|
|
189
197
|
get modifiers(): Es2pandaClassDefinitionModifiers {
|
|
190
198
|
return global.generatedEs2panda._ClassDefinitionModifiersConst(global.context, this.peer)
|
|
191
199
|
}
|
|
@@ -195,13 +203,13 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
195
203
|
return this
|
|
196
204
|
}
|
|
197
205
|
get ctor(): MethodDefinition | undefined {
|
|
198
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionCtor(global.context, this.peer))
|
|
206
|
+
return unpackNode(global.generatedEs2panda._ClassDefinitionCtor(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
|
|
199
207
|
}
|
|
200
208
|
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
201
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionTypeParams(global.context, this.peer))
|
|
209
|
+
return unpackNode(global.generatedEs2panda._ClassDefinitionTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
|
|
202
210
|
}
|
|
203
211
|
get superTypeParams(): TSTypeParameterInstantiation | undefined {
|
|
204
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionSuperTypeParams(global.context, this.peer))
|
|
212
|
+
return unpackNode(global.generatedEs2panda._ClassDefinitionSuperTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_INSTANTIATION)
|
|
205
213
|
}
|
|
206
214
|
get localTypeCounter(): number {
|
|
207
215
|
return global.generatedEs2panda._ClassDefinitionLocalTypeCounter(global.context, this.peer)
|
|
@@ -210,7 +218,7 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
210
218
|
return global.generatedEs2panda._ClassDefinitionLocalIndexConst(global.context, this.peer)
|
|
211
219
|
}
|
|
212
220
|
get functionalReferenceReferencedMethod(): MethodDefinition | undefined {
|
|
213
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionFunctionalReferenceReferencedMethodConst(global.context, this.peer))
|
|
221
|
+
return unpackNode(global.generatedEs2panda._ClassDefinitionFunctionalReferenceReferencedMethodConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
|
|
214
222
|
}
|
|
215
223
|
/** @deprecated */
|
|
216
224
|
setFunctionalReferenceReferencedMethod(functionalReferenceReferencedMethod?: MethodDefinition): this {
|
|
@@ -221,7 +229,7 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
221
229
|
return unpackString(global.generatedEs2panda._ClassDefinitionLocalPrefixConst(global.context, this.peer))
|
|
222
230
|
}
|
|
223
231
|
get origEnumDecl(): TSEnumDeclaration | undefined {
|
|
224
|
-
return unpackNode(global.generatedEs2panda._ClassDefinitionOrigEnumDeclConst(global.context, this.peer))
|
|
232
|
+
return unpackNode(global.generatedEs2panda._ClassDefinitionOrigEnumDeclConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_ENUM_DECLARATION)
|
|
225
233
|
}
|
|
226
234
|
get anonClass(): ClassDeclaration | undefined {
|
|
227
235
|
return unpackNode(global.generatedEs2panda._ClassDefinitionGetAnonClass(global.context, this.peer))
|
|
@@ -282,10 +290,10 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
282
290
|
return this
|
|
283
291
|
}
|
|
284
292
|
get implements(): readonly TSClassImplements[] {
|
|
285
|
-
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionImplements(global.context, this.peer))
|
|
293
|
+
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionImplements(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_CLASS_IMPLEMENTS)
|
|
286
294
|
}
|
|
287
295
|
get implementsForUpdate(): readonly TSClassImplements[] {
|
|
288
|
-
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionImplementsForUpdate(global.context, this.peer))
|
|
296
|
+
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionImplementsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_CLASS_IMPLEMENTS)
|
|
289
297
|
}
|
|
290
298
|
/** @deprecated */
|
|
291
299
|
setCtor(ctor?: MethodDefinition): this {
|
|
@@ -312,9 +320,12 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
312
320
|
global.generatedEs2panda._ClassDefinitionSetInternalName(global.context, this.peer, internalName)
|
|
313
321
|
return this
|
|
314
322
|
}
|
|
323
|
+
get hasAnnotations(): boolean {
|
|
324
|
+
return global.generatedEs2panda._ClassDefinitionHasAnnotationsConst(global.context, this.peer)
|
|
325
|
+
}
|
|
315
326
|
/** @deprecated */
|
|
316
|
-
|
|
317
|
-
global.generatedEs2panda.
|
|
327
|
+
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
328
|
+
global.generatedEs2panda._ClassDefinitionEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
318
329
|
return this
|
|
319
330
|
}
|
|
320
331
|
/** @deprecated */
|
|
@@ -323,15 +334,15 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
323
334
|
return this
|
|
324
335
|
}
|
|
325
336
|
/** @deprecated */
|
|
326
|
-
|
|
327
|
-
global.generatedEs2panda.
|
|
337
|
+
dumpAnnotations(dumper?: SrcDumper): this {
|
|
338
|
+
global.generatedEs2panda._ClassDefinitionDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
328
339
|
return this
|
|
329
340
|
}
|
|
330
341
|
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
331
|
-
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotationsForUpdate(global.context, this.peer))
|
|
342
|
+
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
332
343
|
}
|
|
333
344
|
get annotations(): readonly AnnotationUsage[] {
|
|
334
|
-
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotations(global.context, this.peer))
|
|
345
|
+
return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
335
346
|
}
|
|
336
347
|
/** @deprecated */
|
|
337
348
|
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
@@ -343,16 +354,12 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
343
354
|
global.generatedEs2panda._ClassDefinitionSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
344
355
|
return this
|
|
345
356
|
}
|
|
346
|
-
|
|
347
|
-
addAnnotations(annotations?: AnnotationUsage): this {
|
|
348
|
-
global.generatedEs2panda._ClassDefinitionAddAnnotations(global.context, this.peer, passNode(annotations))
|
|
349
|
-
return this
|
|
350
|
-
}
|
|
357
|
+
setBody = extension_ClassDefinitionSetBody
|
|
351
358
|
protected readonly brandClassDefinition: undefined
|
|
352
359
|
}
|
|
353
360
|
export function isClassDefinition(node: object | undefined): node is ClassDefinition {
|
|
354
361
|
return node instanceof ClassDefinition
|
|
355
362
|
}
|
|
356
363
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)) {
|
|
357
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION, (peer: KNativePointer) => new ClassDefinition(peer))
|
|
364
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION, (peer: KNativePointer) => new ClassDefinition(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION))
|
|
358
365
|
}
|
|
@@ -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,18 +31,18 @@ import {
|
|
|
32
31
|
unpackString
|
|
33
32
|
} from "../../reexport-for-generated"
|
|
34
33
|
|
|
35
|
-
import {
|
|
34
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
36
35
|
import { Expression } from "./Expression"
|
|
37
36
|
import { Identifier } from "./Identifier"
|
|
38
37
|
import { TSEnumMember } from "./TSEnumMember"
|
|
39
38
|
import { TypedStatement } from "./TypedStatement"
|
|
40
39
|
|
|
41
40
|
export class ClassElement extends TypedStatement {
|
|
42
|
-
constructor(pointer: KNativePointer) {
|
|
43
|
-
super(pointer)
|
|
41
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
42
|
+
super(pointer, astNodeType)
|
|
44
43
|
}
|
|
45
44
|
get id(): Identifier | undefined {
|
|
46
|
-
return unpackNode(global.generatedEs2panda._ClassElementId(global.context, this.peer))
|
|
45
|
+
return unpackNode(global.generatedEs2panda._ClassElementId(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
47
46
|
}
|
|
48
47
|
get key(): Expression | undefined {
|
|
49
48
|
return unpackNode(global.generatedEs2panda._ClassElementKey(global.context, this.peer))
|
|
@@ -57,7 +56,7 @@ export class ClassElement extends TypedStatement {
|
|
|
57
56
|
return this
|
|
58
57
|
}
|
|
59
58
|
get originEnumMember(): TSEnumMember | undefined {
|
|
60
|
-
return unpackNode(global.generatedEs2panda._ClassElementOriginEnumMemberConst(global.context, this.peer))
|
|
59
|
+
return unpackNode(global.generatedEs2panda._ClassElementOriginEnumMemberConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_ENUM_MEMBER)
|
|
61
60
|
}
|
|
62
61
|
/** @deprecated */
|
|
63
62
|
setOrigEnumMember(enumMember?: TSEnumMember): this {
|
|
@@ -70,32 +69,6 @@ export class ClassElement extends TypedStatement {
|
|
|
70
69
|
get isComputed(): boolean {
|
|
71
70
|
return global.generatedEs2panda._ClassElementIsComputedConst(global.context, this.peer)
|
|
72
71
|
}
|
|
73
|
-
/** @deprecated */
|
|
74
|
-
addDecorator(decorator?: Decorator): this {
|
|
75
|
-
global.generatedEs2panda._ClassElementAddDecorator(global.context, this.peer, passNode(decorator))
|
|
76
|
-
return this
|
|
77
|
-
}
|
|
78
|
-
/** @deprecated */
|
|
79
|
-
emplaceDecorators(decorators?: Decorator): this {
|
|
80
|
-
global.generatedEs2panda._ClassElementEmplaceDecorators(global.context, this.peer, passNode(decorators))
|
|
81
|
-
return this
|
|
82
|
-
}
|
|
83
|
-
/** @deprecated */
|
|
84
|
-
clearDecorators(): this {
|
|
85
|
-
global.generatedEs2panda._ClassElementClearDecorators(global.context, this.peer)
|
|
86
|
-
return this
|
|
87
|
-
}
|
|
88
|
-
/** @deprecated */
|
|
89
|
-
setValueDecorators(decorators: Decorator | undefined, index: number): this {
|
|
90
|
-
global.generatedEs2panda._ClassElementSetValueDecorators(global.context, this.peer, passNode(decorators), index)
|
|
91
|
-
return this
|
|
92
|
-
}
|
|
93
|
-
get decorators(): readonly Decorator[] {
|
|
94
|
-
return unpackNodeArray(global.generatedEs2panda._ClassElementDecorators(global.context, this.peer))
|
|
95
|
-
}
|
|
96
|
-
get decoratorsForUpdate(): readonly Decorator[] {
|
|
97
|
-
return unpackNodeArray(global.generatedEs2panda._ClassElementDecoratorsForUpdate(global.context, this.peer))
|
|
98
|
-
}
|
|
99
72
|
protected readonly brandClassElement: undefined
|
|
100
73
|
}
|
|
101
74
|
export function isClassElement(node: object | undefined): node is ClassElement {
|
|
@@ -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,22 +36,21 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
37
36
|
import { Expression } from "./Expression"
|
|
38
37
|
|
|
39
38
|
export class ClassExpression extends Expression {
|
|
40
|
-
constructor(pointer: KNativePointer) {
|
|
41
|
-
|
|
42
|
-
super(pointer)
|
|
39
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
+
super(pointer, astNodeType)
|
|
43
41
|
}
|
|
44
42
|
static createClassExpression(def?: ClassDefinition): ClassExpression {
|
|
45
|
-
const result: ClassExpression = new ClassExpression(global.generatedEs2panda._CreateClassExpression(global.context, passNode(def)))
|
|
43
|
+
const result: ClassExpression = new ClassExpression(global.generatedEs2panda._CreateClassExpression(global.context, passNode(def)), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_EXPRESSION)
|
|
46
44
|
result.setChildrenParentPtr()
|
|
47
45
|
return result
|
|
48
46
|
}
|
|
49
47
|
static updateClassExpression(original?: ClassExpression, def?: ClassDefinition): ClassExpression {
|
|
50
|
-
const result: ClassExpression = new ClassExpression(global.generatedEs2panda._UpdateClassExpression(global.context, passNode(original), passNode(def)))
|
|
48
|
+
const result: ClassExpression = new ClassExpression(global.generatedEs2panda._UpdateClassExpression(global.context, passNode(original), passNode(def)), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_EXPRESSION)
|
|
51
49
|
result.setChildrenParentPtr()
|
|
52
50
|
return result
|
|
53
51
|
}
|
|
54
52
|
get definition(): ClassDefinition | undefined {
|
|
55
|
-
return unpackNode(global.generatedEs2panda._ClassExpressionDefinitionConst(global.context, this.peer))
|
|
53
|
+
return unpackNode(global.generatedEs2panda._ClassExpressionDefinitionConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
|
|
56
54
|
}
|
|
57
55
|
protected readonly brandClassExpression: undefined
|
|
58
56
|
}
|
|
@@ -60,5 +58,5 @@ export function isClassExpression(node: object | undefined): node is ClassExpres
|
|
|
60
58
|
return node instanceof ClassExpression
|
|
61
59
|
}
|
|
62
60
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_EXPRESSION)) {
|
|
63
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_EXPRESSION, (peer: KNativePointer) => new ClassExpression(peer))
|
|
61
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_EXPRESSION, (peer: KNativePointer) => new ClassExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_EXPRESSION))
|
|
64
62
|
}
|
|
@@ -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,15 +36,15 @@ import { ClassElement } from "./ClassElement"
|
|
|
37
36
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
38
37
|
import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
39
38
|
import { Expression } from "./Expression"
|
|
39
|
+
import { SrcDumper } from "./SrcDumper"
|
|
40
40
|
import { TypeNode } from "./TypeNode"
|
|
41
41
|
|
|
42
42
|
export class ClassProperty extends ClassElement {
|
|
43
|
-
constructor(pointer: KNativePointer) {
|
|
44
|
-
|
|
45
|
-
super(pointer)
|
|
43
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
44
|
+
super(pointer, astNodeType)
|
|
46
45
|
}
|
|
47
46
|
static createClassProperty(key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean, annotations?: readonly AnnotationUsage[]): ClassProperty {
|
|
48
|
-
const result: ClassProperty = new ClassProperty(global.generatedEs2panda._CreateClassProperty(global.context, passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed))
|
|
47
|
+
const result: ClassProperty = new ClassProperty(global.generatedEs2panda._CreateClassProperty(global.context, passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY)
|
|
49
48
|
if (annotations)
|
|
50
49
|
{
|
|
51
50
|
result.setAnnotations(annotations)
|
|
@@ -54,7 +53,7 @@ export class ClassProperty extends ClassElement {
|
|
|
54
53
|
return result
|
|
55
54
|
}
|
|
56
55
|
static updateClassProperty(original: ClassProperty | undefined, key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean, annotations?: readonly AnnotationUsage[]): ClassProperty {
|
|
57
|
-
const result: ClassProperty = new ClassProperty(global.generatedEs2panda._UpdateClassProperty(global.context, passNode(original), passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed))
|
|
56
|
+
const result: ClassProperty = new ClassProperty(global.generatedEs2panda._UpdateClassProperty(global.context, passNode(original), passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY)
|
|
58
57
|
if (annotations)
|
|
59
58
|
{
|
|
60
59
|
result.setAnnotations(annotations)
|
|
@@ -82,13 +81,24 @@ export class ClassProperty extends ClassElement {
|
|
|
82
81
|
return global.generatedEs2panda._ClassPropertyNeedInitInStaticBlockConst(global.context, this.peer)
|
|
83
82
|
}
|
|
84
83
|
/** @deprecated */
|
|
85
|
-
|
|
86
|
-
global.generatedEs2panda.
|
|
84
|
+
setNeedInitInStaticBlock(): this {
|
|
85
|
+
global.generatedEs2panda._ClassPropertySetNeedInitInStaticBlock(global.context, this.peer)
|
|
87
86
|
return this
|
|
88
87
|
}
|
|
88
|
+
get isImmediateInit(): boolean {
|
|
89
|
+
return global.generatedEs2panda._ClassPropertyIsImmediateInitConst(global.context, this.peer)
|
|
90
|
+
}
|
|
91
|
+
/** @deprecated */
|
|
92
|
+
setIsImmediateInit(): this {
|
|
93
|
+
global.generatedEs2panda._ClassPropertySetIsImmediateInit(global.context, this.peer)
|
|
94
|
+
return this
|
|
95
|
+
}
|
|
96
|
+
get hasAnnotations(): boolean {
|
|
97
|
+
return global.generatedEs2panda._ClassPropertyHasAnnotationsConst(global.context, this.peer)
|
|
98
|
+
}
|
|
89
99
|
/** @deprecated */
|
|
90
|
-
|
|
91
|
-
global.generatedEs2panda.
|
|
100
|
+
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
101
|
+
global.generatedEs2panda._ClassPropertyEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
92
102
|
return this
|
|
93
103
|
}
|
|
94
104
|
/** @deprecated */
|
|
@@ -97,15 +107,15 @@ export class ClassProperty extends ClassElement {
|
|
|
97
107
|
return this
|
|
98
108
|
}
|
|
99
109
|
/** @deprecated */
|
|
100
|
-
|
|
101
|
-
global.generatedEs2panda.
|
|
110
|
+
dumpAnnotations(dumper?: SrcDumper): this {
|
|
111
|
+
global.generatedEs2panda._ClassPropertyDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
102
112
|
return this
|
|
103
113
|
}
|
|
104
114
|
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
105
|
-
return unpackNodeArray(global.generatedEs2panda._ClassPropertyAnnotationsForUpdate(global.context, this.peer))
|
|
115
|
+
return unpackNodeArray(global.generatedEs2panda._ClassPropertyAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
106
116
|
}
|
|
107
117
|
get annotations(): readonly AnnotationUsage[] {
|
|
108
|
-
return unpackNodeArray(global.generatedEs2panda._ClassPropertyAnnotations(global.context, this.peer))
|
|
118
|
+
return unpackNodeArray(global.generatedEs2panda._ClassPropertyAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
109
119
|
}
|
|
110
120
|
/** @deprecated */
|
|
111
121
|
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
@@ -117,16 +127,11 @@ export class ClassProperty extends ClassElement {
|
|
|
117
127
|
global.generatedEs2panda._ClassPropertySetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
118
128
|
return this
|
|
119
129
|
}
|
|
120
|
-
/** @deprecated */
|
|
121
|
-
addAnnotations(annotations?: AnnotationUsage): this {
|
|
122
|
-
global.generatedEs2panda._ClassPropertyAddAnnotations(global.context, this.peer, passNode(annotations))
|
|
123
|
-
return this
|
|
124
|
-
}
|
|
125
130
|
protected readonly brandClassProperty: undefined
|
|
126
131
|
}
|
|
127
132
|
export function isClassProperty(node: object | undefined): node is ClassProperty {
|
|
128
133
|
return node instanceof ClassProperty
|
|
129
134
|
}
|
|
130
135
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY)) {
|
|
131
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY, (peer: KNativePointer) => new ClassProperty(peer))
|
|
136
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY, (peer: KNativePointer) => new ClassProperty(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY))
|
|
132
137
|
}
|
|
@@ -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 { Expression } from "./Expression"
|
|
|
38
37
|
import { ScriptFunction } from "./ScriptFunction"
|
|
39
38
|
|
|
40
39
|
export class ClassStaticBlock extends ClassElement {
|
|
41
|
-
constructor(pointer: KNativePointer) {
|
|
42
|
-
|
|
43
|
-
super(pointer)
|
|
40
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
+
super(pointer, astNodeType)
|
|
44
42
|
}
|
|
45
43
|
static createClassStaticBlock(value?: Expression): ClassStaticBlock {
|
|
46
|
-
const result: ClassStaticBlock = new ClassStaticBlock(global.generatedEs2panda._CreateClassStaticBlock(global.context, passNode(value)))
|
|
44
|
+
const result: ClassStaticBlock = new ClassStaticBlock(global.generatedEs2panda._CreateClassStaticBlock(global.context, passNode(value)), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK)
|
|
47
45
|
result.setChildrenParentPtr()
|
|
48
46
|
return result
|
|
49
47
|
}
|
|
50
48
|
static updateClassStaticBlock(original?: ClassStaticBlock, value?: Expression): ClassStaticBlock {
|
|
51
|
-
const result: ClassStaticBlock = new ClassStaticBlock(global.generatedEs2panda._UpdateClassStaticBlock(global.context, passNode(original), passNode(value)))
|
|
49
|
+
const result: ClassStaticBlock = new ClassStaticBlock(global.generatedEs2panda._UpdateClassStaticBlock(global.context, passNode(original), passNode(value)), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK)
|
|
52
50
|
result.setChildrenParentPtr()
|
|
53
51
|
return result
|
|
54
52
|
}
|
|
55
53
|
get function(): ScriptFunction | undefined {
|
|
56
|
-
return unpackNode(global.generatedEs2panda._ClassStaticBlockFunction(global.context, this.peer))
|
|
54
|
+
return unpackNode(global.generatedEs2panda._ClassStaticBlockFunction(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION)
|
|
57
55
|
}
|
|
58
56
|
get name(): string {
|
|
59
57
|
return unpackString(global.generatedEs2panda._ClassStaticBlockNameConst(global.context, this.peer))
|
|
@@ -64,5 +62,5 @@ export function isClassStaticBlock(node: object | undefined): node is ClassStati
|
|
|
64
62
|
return node instanceof ClassStaticBlock
|
|
65
63
|
}
|
|
66
64
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK)) {
|
|
67
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK, (peer: KNativePointer) => new ClassStaticBlock(peer))
|
|
65
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK, (peer: KNativePointer) => new ClassStaticBlock(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK))
|
|
68
66
|
}
|
|
@@ -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 ConditionalExpression 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 createConditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression {
|
|
44
|
-
const result: ConditionalExpression = new ConditionalExpression(global.generatedEs2panda._CreateConditionalExpression(global.context, passNode(test), passNode(consequent), passNode(alternate)))
|
|
42
|
+
const result: ConditionalExpression = new ConditionalExpression(global.generatedEs2panda._CreateConditionalExpression(global.context, passNode(test), passNode(consequent), passNode(alternate)), Es2pandaAstNodeType.AST_NODE_TYPE_CONDITIONAL_EXPRESSION)
|
|
45
43
|
result.setChildrenParentPtr()
|
|
46
44
|
return result
|
|
47
45
|
}
|
|
48
46
|
static updateConditionalExpression(original?: ConditionalExpression, test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression {
|
|
49
|
-
const result: ConditionalExpression = new ConditionalExpression(global.generatedEs2panda._UpdateConditionalExpression(global.context, passNode(original), passNode(test), passNode(consequent), passNode(alternate)))
|
|
47
|
+
const result: ConditionalExpression = new ConditionalExpression(global.generatedEs2panda._UpdateConditionalExpression(global.context, passNode(original), passNode(test), passNode(consequent), passNode(alternate)), Es2pandaAstNodeType.AST_NODE_TYPE_CONDITIONAL_EXPRESSION)
|
|
50
48
|
result.setChildrenParentPtr()
|
|
51
49
|
return result
|
|
52
50
|
}
|
|
@@ -80,5 +78,5 @@ export function isConditionalExpression(node: object | undefined): node is Condi
|
|
|
80
78
|
return node instanceof ConditionalExpression
|
|
81
79
|
}
|
|
82
80
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CONDITIONAL_EXPRESSION)) {
|
|
83
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CONDITIONAL_EXPRESSION, (peer: KNativePointer) => new ConditionalExpression(peer))
|
|
81
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CONDITIONAL_EXPRESSION, (peer: KNativePointer) => new ConditionalExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CONDITIONAL_EXPRESSION))
|
|
84
82
|
}
|
|
@@ -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,27 +36,26 @@ import { Identifier } from "./Identifier"
|
|
|
37
36
|
import { Statement } from "./Statement"
|
|
38
37
|
|
|
39
38
|
export class ContinueStatement 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 create1ContinueStatement(ident?: Identifier): ContinueStatement {
|
|
45
|
-
const result: ContinueStatement = new ContinueStatement(global.generatedEs2panda._CreateContinueStatement1(global.context, passNode(ident)))
|
|
43
|
+
const result: ContinueStatement = new ContinueStatement(global.generatedEs2panda._CreateContinueStatement1(global.context, passNode(ident)), Es2pandaAstNodeType.AST_NODE_TYPE_CONTINUE_STATEMENT)
|
|
46
44
|
result.setChildrenParentPtr()
|
|
47
45
|
return result
|
|
48
46
|
}
|
|
49
47
|
static updateContinueStatement(original?: ContinueStatement): ContinueStatement {
|
|
50
|
-
const result: ContinueStatement = new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement(global.context, passNode(original)))
|
|
48
|
+
const result: ContinueStatement = new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement(global.context, passNode(original)), Es2pandaAstNodeType.AST_NODE_TYPE_CONTINUE_STATEMENT)
|
|
51
49
|
result.setChildrenParentPtr()
|
|
52
50
|
return result
|
|
53
51
|
}
|
|
54
52
|
static update1ContinueStatement(original?: ContinueStatement, ident?: Identifier): ContinueStatement {
|
|
55
|
-
const result: ContinueStatement = new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement1(global.context, passNode(original), passNode(ident)))
|
|
53
|
+
const result: ContinueStatement = new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement1(global.context, passNode(original), passNode(ident)), Es2pandaAstNodeType.AST_NODE_TYPE_CONTINUE_STATEMENT)
|
|
56
54
|
result.setChildrenParentPtr()
|
|
57
55
|
return result
|
|
58
56
|
}
|
|
59
57
|
get ident(): Identifier | undefined {
|
|
60
|
-
return unpackNode(global.generatedEs2panda._ContinueStatementIdent(global.context, this.peer))
|
|
58
|
+
return unpackNode(global.generatedEs2panda._ContinueStatementIdent(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
61
59
|
}
|
|
62
60
|
get target(): AstNode | undefined {
|
|
63
61
|
return unpackNode(global.generatedEs2panda._ContinueStatementTargetConst(global.context, this.peer))
|
|
@@ -76,5 +74,5 @@ export function isContinueStatement(node: object | undefined): node is ContinueS
|
|
|
76
74
|
return node instanceof ContinueStatement
|
|
77
75
|
}
|
|
78
76
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CONTINUE_STATEMENT)) {
|
|
79
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CONTINUE_STATEMENT, (peer: KNativePointer) => new ContinueStatement(peer))
|
|
77
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CONTINUE_STATEMENT, (peer: KNativePointer) => new ContinueStatement(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CONTINUE_STATEMENT))
|
|
80
78
|
}
|
|
@@ -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 { Statement } from "./Statement"
|
|
37
36
|
|
|
38
37
|
export class DebuggerStatement extends Statement {
|
|
39
|
-
constructor(pointer: KNativePointer) {
|
|
40
|
-
|
|
41
|
-
super(pointer)
|
|
38
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
39
|
+
super(pointer, astNodeType)
|
|
42
40
|
}
|
|
43
41
|
static createDebuggerStatement(): DebuggerStatement {
|
|
44
|
-
const result: DebuggerStatement = new DebuggerStatement(global.generatedEs2panda._CreateDebuggerStatement(global.context))
|
|
42
|
+
const result: DebuggerStatement = new DebuggerStatement(global.generatedEs2panda._CreateDebuggerStatement(global.context), Es2pandaAstNodeType.AST_NODE_TYPE_DEBUGGER_STATEMENT)
|
|
45
43
|
result.setChildrenParentPtr()
|
|
46
44
|
return result
|
|
47
45
|
}
|
|
48
46
|
static updateDebuggerStatement(original?: DebuggerStatement): DebuggerStatement {
|
|
49
|
-
const result: DebuggerStatement = new DebuggerStatement(global.generatedEs2panda._UpdateDebuggerStatement(global.context, passNode(original)))
|
|
47
|
+
const result: DebuggerStatement = new DebuggerStatement(global.generatedEs2panda._UpdateDebuggerStatement(global.context, passNode(original)), Es2pandaAstNodeType.AST_NODE_TYPE_DEBUGGER_STATEMENT)
|
|
50
48
|
result.setChildrenParentPtr()
|
|
51
49
|
return result
|
|
52
50
|
}
|
|
@@ -56,5 +54,5 @@ export function isDebuggerStatement(node: object | undefined): node is DebuggerS
|
|
|
56
54
|
return node instanceof DebuggerStatement
|
|
57
55
|
}
|
|
58
56
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_DEBUGGER_STATEMENT)) {
|
|
59
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_DEBUGGER_STATEMENT, (peer: KNativePointer) => new DebuggerStatement(peer))
|
|
57
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_DEBUGGER_STATEMENT, (peer: KNativePointer) => new DebuggerStatement(peer, Es2pandaAstNodeType.AST_NODE_TYPE_DEBUGGER_STATEMENT))
|
|
60
58
|
}
|
|
@@ -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 Decorator 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 createDecorator(expr?: Expression): Decorator {
|
|
45
|
-
const result: Decorator = new Decorator(global.generatedEs2panda._CreateDecorator(global.context, passNode(expr)))
|
|
43
|
+
const result: Decorator = new Decorator(global.generatedEs2panda._CreateDecorator(global.context, passNode(expr)), Es2pandaAstNodeType.AST_NODE_TYPE_DECORATOR)
|
|
46
44
|
result.setChildrenParentPtr()
|
|
47
45
|
return result
|
|
48
46
|
}
|
|
49
47
|
static updateDecorator(original?: Decorator, expr?: Expression): Decorator {
|
|
50
|
-
const result: Decorator = new Decorator(global.generatedEs2panda._UpdateDecorator(global.context, passNode(original), passNode(expr)))
|
|
48
|
+
const result: Decorator = new Decorator(global.generatedEs2panda._UpdateDecorator(global.context, passNode(original), passNode(expr)), Es2pandaAstNodeType.AST_NODE_TYPE_DECORATOR)
|
|
51
49
|
result.setChildrenParentPtr()
|
|
52
50
|
return result
|
|
53
51
|
}
|
|
@@ -60,5 +58,5 @@ export function isDecorator(node: object | undefined): node is Decorator {
|
|
|
60
58
|
return node instanceof Decorator
|
|
61
59
|
}
|
|
62
60
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_DECORATOR)) {
|
|
63
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_DECORATOR, (peer: KNativePointer) => new Decorator(peer))
|
|
61
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_DECORATOR, (peer: KNativePointer) => new Decorator(peer, Es2pandaAstNodeType.AST_NODE_TYPE_DECORATOR))
|
|
64
62
|
}
|