@idlizer/arktscgen 2.1.9-arktscgen-8 → 2.1.10-arktscgen-2
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 +141 -3
- package/build/libarkts-copy/native/mingw.cross +13 -0
- package/build/libarkts-copy/native/src/bridges.cc +101 -232
- package/build/libarkts-copy/native/src/common.cc +55 -10
- package/build/libarkts-copy/native/src/common.h +1 -0
- package/build/libarkts-copy/native/src/generated/bridges.cc +1669 -44
- package/build/libarkts-copy/package.json +14 -17
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +39 -50
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +6 -5
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +5 -2
- package/build/libarkts-copy/src/arkts-api/node-cache.ts +4 -0
- 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 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +7 -0
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +10 -8
- 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/arkts-api/peers/ExternalSource.ts +4 -0
- package/build/libarkts-copy/src/arkts-api/plugins.ts +3 -4
- package/build/libarkts-copy/src/arkts-api/static/global.ts +29 -1
- package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +68 -5
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +3 -3
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +74 -42
- package/build/libarkts-copy/src/arkts-api/visitor.ts +965 -364
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +98 -91
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +610 -13
- package/build/libarkts-copy/src/generated/factory.ts +2 -2
- package/build/libarkts-copy/src/generated/index.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +4 -0
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +3 -0
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +7 -8
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +9 -8
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +15 -8
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +7 -8
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +7 -8
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +3 -4
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +9 -10
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +9 -10
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/Expression.ts +7 -2
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +4 -5
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +3 -0
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +7 -8
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/Literal.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +5 -10
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +10 -9
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/Program.ts +2 -0
- package/build/libarkts-copy/src/generated/peers/Property.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +19 -6
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +6 -0
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +3 -0
- package/build/libarkts-copy/src/generated/peers/Statement.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +3 -2
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +3 -0
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +5 -6
- package/build/libarkts-copy/src/index.ts +2 -0
- package/build/libarkts-copy/src/plugin-utils.ts +21 -4
- package/build/libarkts-copy/src/reexport-for-generated.ts +11 -0
- package/build/libarkts-copy/src/tracer.ts +172 -0
- package/lib/index.js +1523 -611
- package/package.json +2 -2
- 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 -87
- 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/AstNode.ts +0 -26
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Diagnostic.ts +0 -39
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticInfo.ts +0 -33
- 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/SourceRange.ts +0 -38
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SuggestionInfo.ts +0 -33
- 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 -906
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/nativePtrDecoder.ts +0 -69
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/performance.ts +0 -190
- 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 -325
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/visitor.ts +0 -421
- package/build/libarkts-copy/src/wrapper-compat/index.ts +0 -20
|
@@ -1052,11 +1052,11 @@ export const factory = {
|
|
|
1052
1052
|
return updateNodeByNode(TSAnyKeyword.createTSAnyKeyword(), original)
|
|
1053
1053
|
}
|
|
1054
1054
|
,
|
|
1055
|
-
createClassDeclaration(definition
|
|
1055
|
+
createClassDeclaration(definition: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
1056
1056
|
return ClassDeclaration.createClassDeclaration(definition, modifierFlags)
|
|
1057
1057
|
}
|
|
1058
1058
|
,
|
|
1059
|
-
updateClassDeclaration(original: ClassDeclaration, definition
|
|
1059
|
+
updateClassDeclaration(original: ClassDeclaration, definition: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
1060
1060
|
if (isSameNativeObject(definition, original.definition) && isSameNativeObject(modifierFlags, original.modifierFlags))
|
|
1061
1061
|
return original
|
|
1062
1062
|
return updateNodeByNode(ClassDeclaration.createClassDeclaration(definition, modifierFlags), 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"
|
|
@@ -32,10 +32,11 @@ import {
|
|
|
32
32
|
unpackString
|
|
33
33
|
} from "../../reexport-for-generated"
|
|
34
34
|
|
|
35
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
36
|
|
|
36
37
|
export class AnnotatedAstNode extends AstNode {
|
|
37
|
-
constructor(pointer: KNativePointer) {
|
|
38
|
-
super(pointer)
|
|
38
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
39
|
+
super(pointer, astNodeType)
|
|
39
40
|
}
|
|
40
41
|
protected readonly brandAnnotatedAstNode: undefined
|
|
41
42
|
}
|
|
@@ -32,12 +32,13 @@ import {
|
|
|
32
32
|
unpackString
|
|
33
33
|
} from "../../reexport-for-generated"
|
|
34
34
|
|
|
35
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
36
|
import { Expression } from "./Expression"
|
|
36
37
|
import { TypeNode } from "./TypeNode"
|
|
37
38
|
|
|
38
39
|
export class AnnotatedExpression extends Expression {
|
|
39
|
-
constructor(pointer: KNativePointer) {
|
|
40
|
-
super(pointer)
|
|
40
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
+
super(pointer, astNodeType)
|
|
41
42
|
}
|
|
42
43
|
get typeAnnotation(): TypeNode | undefined {
|
|
43
44
|
return unpackNode(global.generatedEs2panda._AnnotatedExpressionTypeAnnotationConst(global.context, this.peer))
|
|
@@ -32,11 +32,12 @@ import {
|
|
|
32
32
|
unpackString
|
|
33
33
|
} from "../../reexport-for-generated"
|
|
34
34
|
|
|
35
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
36
|
import { Statement } from "./Statement"
|
|
36
37
|
|
|
37
38
|
export class AnnotatedStatement extends Statement {
|
|
38
|
-
constructor(pointer: KNativePointer) {
|
|
39
|
-
super(pointer)
|
|
39
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
+
super(pointer, astNodeType)
|
|
40
41
|
}
|
|
41
42
|
protected readonly brandAnnotatedStatement: undefined
|
|
42
43
|
}
|
|
@@ -39,22 +39,21 @@ import { Identifier } from "./Identifier"
|
|
|
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
|
}
|
|
@@ -164,5 +163,5 @@ export function isAnnotationDeclaration(node: object | undefined): node is Annot
|
|
|
164
163
|
return node instanceof AnnotationDeclaration
|
|
165
164
|
}
|
|
166
165
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION)) {
|
|
167
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION, (peer: KNativePointer) => new AnnotationDeclaration(peer))
|
|
166
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION, (peer: KNativePointer) => new AnnotationDeclaration(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION))
|
|
168
167
|
}
|
|
@@ -38,22 +38,21 @@ import { Identifier } from "./Identifier"
|
|
|
38
38
|
import { Statement } from "./Statement"
|
|
39
39
|
|
|
40
40
|
export class AnnotationUsage extends Statement {
|
|
41
|
-
constructor(pointer: KNativePointer) {
|
|
42
|
-
|
|
43
|
-
super(pointer)
|
|
41
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
42
|
+
super(pointer, astNodeType)
|
|
44
43
|
}
|
|
45
44
|
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))
|
|
45
|
+
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsage1(global.context, passNode(expr), passNodeArray(properties), properties.length), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
47
46
|
result.setChildrenParentPtr()
|
|
48
47
|
return result
|
|
49
48
|
}
|
|
50
49
|
static updateAnnotationUsage(original?: AnnotationUsage, expr?: Expression): AnnotationUsage {
|
|
51
|
-
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsage(global.context, passNode(original), passNode(expr)))
|
|
50
|
+
const result: AnnotationUsage = new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsage(global.context, passNode(original), passNode(expr)), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
52
51
|
result.setChildrenParentPtr()
|
|
53
52
|
return result
|
|
54
53
|
}
|
|
55
54
|
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))
|
|
55
|
+
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
56
|
result.setChildrenParentPtr()
|
|
58
57
|
return result
|
|
59
58
|
}
|
|
@@ -82,5 +81,5 @@ export function isAnnotationUsage(node: object | undefined): node is AnnotationU
|
|
|
82
81
|
return node instanceof AnnotationUsage
|
|
83
82
|
}
|
|
84
83
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)) {
|
|
85
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, (peer: KNativePointer) => new AnnotationUsage(peer))
|
|
84
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, (peer: KNativePointer) => new AnnotationUsage(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE))
|
|
86
85
|
}
|
|
@@ -32,11 +32,15 @@ import {
|
|
|
32
32
|
unpackString
|
|
33
33
|
} from "../../reexport-for-generated"
|
|
34
34
|
|
|
35
|
+
import { ErrorLogger } from "./ErrorLogger"
|
|
35
36
|
|
|
36
37
|
export class ArkTsConfig extends ArktsObject {
|
|
37
38
|
constructor(pointer: KNativePointer) {
|
|
38
39
|
super(pointer)
|
|
39
40
|
}
|
|
41
|
+
static createArkTsConfig(configPath: string, de?: ErrorLogger): ArkTsConfig {
|
|
42
|
+
return new ArkTsConfig(global.generatedEs2panda._CreateArkTsConfig(global.context, configPath, passNode(de)))
|
|
43
|
+
}
|
|
40
44
|
/** @deprecated */
|
|
41
45
|
resolveAllDependenciesInArkTsConfig(): this {
|
|
42
46
|
global.generatedEs2panda._ArkTsConfigResolveAllDependenciesInArkTsConfig(global.context, this.peer)
|
|
@@ -40,22 +40,21 @@ import { TypeNode } from "./TypeNode"
|
|
|
40
40
|
import { ValidationInfo } from "./ValidationInfo"
|
|
41
41
|
|
|
42
42
|
export class ArrayExpression extends AnnotatedExpression {
|
|
43
|
-
constructor(pointer: KNativePointer) {
|
|
44
|
-
|
|
45
|
-
super(pointer)
|
|
43
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
44
|
+
super(pointer, astNodeType)
|
|
46
45
|
}
|
|
47
46
|
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))
|
|
47
|
+
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._CreateArrayExpression1(global.context, nodeType, passNodeArray(elements), elements.length, trailingComma), Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION)
|
|
49
48
|
result.setChildrenParentPtr()
|
|
50
49
|
return result
|
|
51
50
|
}
|
|
52
51
|
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))
|
|
52
|
+
const result: ArrayExpression = new ArrayExpression(global.generatedEs2panda._UpdateArrayExpression(global.context, passNode(original), passNodeArray(elements), elements.length), Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION)
|
|
54
53
|
result.setChildrenParentPtr()
|
|
55
54
|
return result
|
|
56
55
|
}
|
|
57
56
|
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))
|
|
57
|
+
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
58
|
result.setChildrenParentPtr()
|
|
60
59
|
return result
|
|
61
60
|
}
|
|
@@ -111,5 +110,5 @@ export function isArrayExpression(node: object | undefined): node is ArrayExpres
|
|
|
111
110
|
return node instanceof ArrayExpression
|
|
112
111
|
}
|
|
113
112
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION)) {
|
|
114
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION, (peer: KNativePointer) => new ArrayExpression(peer))
|
|
113
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION, (peer: KNativePointer) => new ArrayExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ARRAY_EXPRESSION))
|
|
115
114
|
}
|
|
@@ -39,12 +39,11 @@ import { ScriptFunction } from "./ScriptFunction"
|
|
|
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)
|
|
@@ -118,5 +117,5 @@ export function isArrowFunctionExpression(node: object | undefined): node is Arr
|
|
|
118
117
|
return node instanceof ArrowFunctionExpression
|
|
119
118
|
}
|
|
120
119
|
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))
|
|
120
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION, (peer: KNativePointer) => new ArrowFunctionExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION))
|
|
122
121
|
}
|
|
@@ -37,17 +37,16 @@ import { Expression } from "./Expression"
|
|
|
37
37
|
import { Statement } from "./Statement"
|
|
38
38
|
|
|
39
39
|
export class AssertStatement extends Statement {
|
|
40
|
-
constructor(pointer: KNativePointer) {
|
|
41
|
-
|
|
42
|
-
super(pointer)
|
|
40
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
+
super(pointer, astNodeType)
|
|
43
42
|
}
|
|
44
43
|
static createAssertStatement(test?: Expression, second?: Expression): AssertStatement {
|
|
45
|
-
const result: AssertStatement = new AssertStatement(global.generatedEs2panda._CreateAssertStatement(global.context, passNode(test), passNode(second)))
|
|
44
|
+
const result: AssertStatement = new AssertStatement(global.generatedEs2panda._CreateAssertStatement(global.context, passNode(test), passNode(second)), Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT)
|
|
46
45
|
result.setChildrenParentPtr()
|
|
47
46
|
return result
|
|
48
47
|
}
|
|
49
48
|
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)))
|
|
49
|
+
const result: AssertStatement = new AssertStatement(global.generatedEs2panda._UpdateAssertStatement(global.context, passNode(original), passNode(test), passNode(second)), Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT)
|
|
51
50
|
result.setChildrenParentPtr()
|
|
52
51
|
return result
|
|
53
52
|
}
|
|
@@ -63,5 +62,5 @@ export function isAssertStatement(node: object | undefined): node is AssertState
|
|
|
63
62
|
return node instanceof AssertStatement
|
|
64
63
|
}
|
|
65
64
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT)) {
|
|
66
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT, (peer: KNativePointer) => new AssertStatement(peer))
|
|
65
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT, (peer: KNativePointer) => new AssertStatement(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ASSERT_STATEMENT))
|
|
67
66
|
}
|
|
@@ -38,22 +38,21 @@ import { Es2pandaTokenType } from "./../Es2pandaEnums"
|
|
|
38
38
|
import { Expression } from "./Expression"
|
|
39
39
|
|
|
40
40
|
export class AssignmentExpression extends Expression {
|
|
41
|
-
constructor(pointer: KNativePointer) {
|
|
42
|
-
|
|
43
|
-
super(pointer)
|
|
41
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
42
|
+
super(pointer, astNodeType)
|
|
44
43
|
}
|
|
45
44
|
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))
|
|
45
|
+
const result: AssignmentExpression = new AssignmentExpression(global.generatedEs2panda._CreateAssignmentExpression1(global.context, type, passNode(left), passNode(right), assignmentOperator), Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION)
|
|
47
46
|
result.setChildrenParentPtr()
|
|
48
47
|
return result
|
|
49
48
|
}
|
|
50
49
|
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))
|
|
50
|
+
const result: AssignmentExpression = new AssignmentExpression(global.generatedEs2panda._UpdateAssignmentExpression(global.context, passNode(original), passNode(left), passNode(right), assignmentOperator), Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION)
|
|
52
51
|
result.setChildrenParentPtr()
|
|
53
52
|
return result
|
|
54
53
|
}
|
|
55
54
|
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))
|
|
55
|
+
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
56
|
result.setChildrenParentPtr()
|
|
58
57
|
return result
|
|
59
58
|
}
|
|
@@ -109,5 +108,5 @@ export function isAssignmentExpression(node: object | undefined): node is Assign
|
|
|
109
108
|
return node instanceof AssignmentExpression
|
|
110
109
|
}
|
|
111
110
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION)) {
|
|
112
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, (peer: KNativePointer) => new AssignmentExpression(peer))
|
|
111
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, (peer: KNativePointer) => new AssignmentExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION))
|
|
113
112
|
}
|
|
@@ -36,17 +36,16 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
36
36
|
import { Expression } from "./Expression"
|
|
37
37
|
|
|
38
38
|
export class AwaitExpression extends Expression {
|
|
39
|
-
constructor(pointer: KNativePointer) {
|
|
40
|
-
|
|
41
|
-
super(pointer)
|
|
39
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
+
super(pointer, astNodeType)
|
|
42
41
|
}
|
|
43
42
|
static createAwaitExpression(argument?: Expression): AwaitExpression {
|
|
44
|
-
const result: AwaitExpression = new AwaitExpression(global.generatedEs2panda._CreateAwaitExpression(global.context, passNode(argument)))
|
|
43
|
+
const result: AwaitExpression = new AwaitExpression(global.generatedEs2panda._CreateAwaitExpression(global.context, passNode(argument)), Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION)
|
|
45
44
|
result.setChildrenParentPtr()
|
|
46
45
|
return result
|
|
47
46
|
}
|
|
48
47
|
static updateAwaitExpression(original?: AwaitExpression, argument?: Expression): AwaitExpression {
|
|
49
|
-
const result: AwaitExpression = new AwaitExpression(global.generatedEs2panda._UpdateAwaitExpression(global.context, passNode(original), passNode(argument)))
|
|
48
|
+
const result: AwaitExpression = new AwaitExpression(global.generatedEs2panda._UpdateAwaitExpression(global.context, passNode(original), passNode(argument)), Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION)
|
|
50
49
|
result.setChildrenParentPtr()
|
|
51
50
|
return result
|
|
52
51
|
}
|
|
@@ -59,5 +58,5 @@ export function isAwaitExpression(node: object | undefined): node is AwaitExpres
|
|
|
59
58
|
return node instanceof AwaitExpression
|
|
60
59
|
}
|
|
61
60
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION)) {
|
|
62
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION, (peer: KNativePointer) => new AwaitExpression(peer))
|
|
61
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION, (peer: KNativePointer) => new AwaitExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_AWAIT_EXPRESSION))
|
|
63
62
|
}
|
|
@@ -36,17 +36,16 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
36
36
|
import { Literal } from "./Literal"
|
|
37
37
|
|
|
38
38
|
export class BigIntLiteral extends Literal {
|
|
39
|
-
constructor(pointer: KNativePointer) {
|
|
40
|
-
|
|
41
|
-
super(pointer)
|
|
39
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
+
super(pointer, astNodeType)
|
|
42
41
|
}
|
|
43
42
|
static createBigIntLiteral(src: string): BigIntLiteral {
|
|
44
|
-
const result: BigIntLiteral = new BigIntLiteral(global.generatedEs2panda._CreateBigIntLiteral(global.context, src))
|
|
43
|
+
const result: BigIntLiteral = new BigIntLiteral(global.generatedEs2panda._CreateBigIntLiteral(global.context, src), Es2pandaAstNodeType.AST_NODE_TYPE_BIGINT_LITERAL)
|
|
45
44
|
result.setChildrenParentPtr()
|
|
46
45
|
return result
|
|
47
46
|
}
|
|
48
47
|
static updateBigIntLiteral(original: BigIntLiteral | undefined, src: string): BigIntLiteral {
|
|
49
|
-
const result: BigIntLiteral = new BigIntLiteral(global.generatedEs2panda._UpdateBigIntLiteral(global.context, passNode(original), src))
|
|
48
|
+
const result: BigIntLiteral = new BigIntLiteral(global.generatedEs2panda._UpdateBigIntLiteral(global.context, passNode(original), src), Es2pandaAstNodeType.AST_NODE_TYPE_BIGINT_LITERAL)
|
|
50
49
|
result.setChildrenParentPtr()
|
|
51
50
|
return result
|
|
52
51
|
}
|
|
@@ -59,5 +58,5 @@ export function isBigIntLiteral(node: object | undefined): node is BigIntLiteral
|
|
|
59
58
|
return node instanceof BigIntLiteral
|
|
60
59
|
}
|
|
61
60
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_BIGINT_LITERAL)) {
|
|
62
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BIGINT_LITERAL, (peer: KNativePointer) => new BigIntLiteral(peer))
|
|
61
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BIGINT_LITERAL, (peer: KNativePointer) => new BigIntLiteral(peer, Es2pandaAstNodeType.AST_NODE_TYPE_BIGINT_LITERAL))
|
|
63
62
|
}
|
|
@@ -39,17 +39,16 @@ import { Expression } from "./Expression"
|
|
|
39
39
|
import { VReg } from "./VReg"
|
|
40
40
|
|
|
41
41
|
export class BinaryExpression 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 createBinaryExpression(left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression {
|
|
47
|
-
const result: BinaryExpression = new BinaryExpression(global.generatedEs2panda._CreateBinaryExpression(global.context, passNode(left), passNode(right), operatorType))
|
|
46
|
+
const result: BinaryExpression = new BinaryExpression(global.generatedEs2panda._CreateBinaryExpression(global.context, passNode(left), passNode(right), operatorType), Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION)
|
|
48
47
|
result.setChildrenParentPtr()
|
|
49
48
|
return result
|
|
50
49
|
}
|
|
51
50
|
static updateBinaryExpression(original: BinaryExpression | undefined, left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression {
|
|
52
|
-
const result: BinaryExpression = new BinaryExpression(global.generatedEs2panda._UpdateBinaryExpression(global.context, passNode(original), passNode(left), passNode(right), operatorType))
|
|
51
|
+
const result: BinaryExpression = new BinaryExpression(global.generatedEs2panda._UpdateBinaryExpression(global.context, passNode(original), passNode(left), passNode(right), operatorType), Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION)
|
|
53
52
|
result.setChildrenParentPtr()
|
|
54
53
|
return result
|
|
55
54
|
}
|
|
@@ -108,5 +107,5 @@ export function isBinaryExpression(node: object | undefined): node is BinaryExpr
|
|
|
108
107
|
return node instanceof BinaryExpression
|
|
109
108
|
}
|
|
110
109
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION)) {
|
|
111
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION, (peer: KNativePointer) => new BinaryExpression(peer))
|
|
110
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION, (peer: KNativePointer) => new BinaryExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION))
|
|
112
111
|
}
|
|
@@ -37,17 +37,16 @@ import { Expression } from "./Expression"
|
|
|
37
37
|
import { Statement } from "./Statement"
|
|
38
38
|
|
|
39
39
|
export class BlockExpression extends Expression {
|
|
40
|
-
constructor(pointer: KNativePointer) {
|
|
41
|
-
|
|
42
|
-
super(pointer)
|
|
40
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
+
super(pointer, astNodeType)
|
|
43
42
|
}
|
|
44
43
|
static createBlockExpression(statements: readonly Statement[]): BlockExpression {
|
|
45
|
-
const result: BlockExpression = new BlockExpression(global.generatedEs2panda._CreateBlockExpression(global.context, passNodeArray(statements), statements.length))
|
|
44
|
+
const result: BlockExpression = new BlockExpression(global.generatedEs2panda._CreateBlockExpression(global.context, passNodeArray(statements), statements.length), Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_EXPRESSION)
|
|
46
45
|
result.setChildrenParentPtr()
|
|
47
46
|
return result
|
|
48
47
|
}
|
|
49
48
|
static updateBlockExpression(original: BlockExpression | undefined, statements: readonly Statement[]): BlockExpression {
|
|
50
|
-
const result: BlockExpression = new BlockExpression(global.generatedEs2panda._UpdateBlockExpression(global.context, passNode(original), passNodeArray(statements), statements.length))
|
|
49
|
+
const result: BlockExpression = new BlockExpression(global.generatedEs2panda._UpdateBlockExpression(global.context, passNode(original), passNodeArray(statements), statements.length), Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_EXPRESSION)
|
|
51
50
|
result.setChildrenParentPtr()
|
|
52
51
|
return result
|
|
53
52
|
}
|
|
@@ -70,5 +69,5 @@ export function isBlockExpression(node: object | undefined): node is BlockExpres
|
|
|
70
69
|
return node instanceof BlockExpression
|
|
71
70
|
}
|
|
72
71
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_EXPRESSION)) {
|
|
73
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_EXPRESSION, (peer: KNativePointer) => new BlockExpression(peer))
|
|
72
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_EXPRESSION, (peer: KNativePointer) => new BlockExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_EXPRESSION))
|
|
74
73
|
}
|
|
@@ -36,17 +36,16 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
36
36
|
import { Statement } from "./Statement"
|
|
37
37
|
|
|
38
38
|
export class BlockStatement extends Statement {
|
|
39
|
-
constructor(pointer: KNativePointer) {
|
|
40
|
-
|
|
41
|
-
super(pointer)
|
|
39
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
+
super(pointer, astNodeType)
|
|
42
41
|
}
|
|
43
42
|
static createBlockStatement(statementList: readonly Statement[]): BlockStatement {
|
|
44
|
-
const result: BlockStatement = new BlockStatement(global.generatedEs2panda._CreateBlockStatement(global.context, passNodeArray(statementList), statementList.length))
|
|
43
|
+
const result: BlockStatement = new BlockStatement(global.generatedEs2panda._CreateBlockStatement(global.context, passNodeArray(statementList), statementList.length), Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT)
|
|
45
44
|
result.setChildrenParentPtr()
|
|
46
45
|
return result
|
|
47
46
|
}
|
|
48
47
|
static updateBlockStatement(original: BlockStatement | undefined, statementList: readonly Statement[]): BlockStatement {
|
|
49
|
-
const result: BlockStatement = new BlockStatement(global.generatedEs2panda._UpdateBlockStatement(global.context, passNode(original), passNodeArray(statementList), statementList.length))
|
|
48
|
+
const result: BlockStatement = new BlockStatement(global.generatedEs2panda._UpdateBlockStatement(global.context, passNode(original), passNodeArray(statementList), statementList.length), Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT)
|
|
50
49
|
result.setChildrenParentPtr()
|
|
51
50
|
return result
|
|
52
51
|
}
|
|
@@ -92,5 +91,5 @@ export function isBlockStatement(node: object | undefined): node is BlockStateme
|
|
|
92
91
|
return node instanceof BlockStatement
|
|
93
92
|
}
|
|
94
93
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT)) {
|
|
95
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT, (peer: KNativePointer) => new BlockStatement(peer))
|
|
94
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT, (peer: KNativePointer) => new BlockStatement(peer, Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT))
|
|
96
95
|
}
|
|
@@ -36,17 +36,16 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
36
36
|
import { Literal } from "./Literal"
|
|
37
37
|
|
|
38
38
|
export class BooleanLiteral extends Literal {
|
|
39
|
-
constructor(pointer: KNativePointer) {
|
|
40
|
-
|
|
41
|
-
super(pointer)
|
|
39
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
+
super(pointer, astNodeType)
|
|
42
41
|
}
|
|
43
42
|
static createBooleanLiteral(value: boolean): BooleanLiteral {
|
|
44
|
-
const result: BooleanLiteral = new BooleanLiteral(global.generatedEs2panda._CreateBooleanLiteral(global.context, value))
|
|
43
|
+
const result: BooleanLiteral = new BooleanLiteral(global.generatedEs2panda._CreateBooleanLiteral(global.context, value), Es2pandaAstNodeType.AST_NODE_TYPE_BOOLEAN_LITERAL)
|
|
45
44
|
result.setChildrenParentPtr()
|
|
46
45
|
return result
|
|
47
46
|
}
|
|
48
47
|
static updateBooleanLiteral(original: BooleanLiteral | undefined, value: boolean): BooleanLiteral {
|
|
49
|
-
const result: BooleanLiteral = new BooleanLiteral(global.generatedEs2panda._UpdateBooleanLiteral(global.context, passNode(original), value))
|
|
48
|
+
const result: BooleanLiteral = new BooleanLiteral(global.generatedEs2panda._UpdateBooleanLiteral(global.context, passNode(original), value), Es2pandaAstNodeType.AST_NODE_TYPE_BOOLEAN_LITERAL)
|
|
50
49
|
result.setChildrenParentPtr()
|
|
51
50
|
return result
|
|
52
51
|
}
|
|
@@ -59,5 +58,5 @@ export function isBooleanLiteral(node: object | undefined): node is BooleanLiter
|
|
|
59
58
|
return node instanceof BooleanLiteral
|
|
60
59
|
}
|
|
61
60
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_BOOLEAN_LITERAL)) {
|
|
62
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BOOLEAN_LITERAL, (peer: KNativePointer) => new BooleanLiteral(peer))
|
|
61
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BOOLEAN_LITERAL, (peer: KNativePointer) => new BooleanLiteral(peer, Es2pandaAstNodeType.AST_NODE_TYPE_BOOLEAN_LITERAL))
|
|
63
62
|
}
|
|
@@ -37,22 +37,21 @@ import { Identifier } from "./Identifier"
|
|
|
37
37
|
import { Statement } from "./Statement"
|
|
38
38
|
|
|
39
39
|
export class BreakStatement extends Statement {
|
|
40
|
-
constructor(pointer: KNativePointer) {
|
|
41
|
-
|
|
42
|
-
super(pointer)
|
|
40
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
+
super(pointer, astNodeType)
|
|
43
42
|
}
|
|
44
43
|
static create1BreakStatement(ident?: Identifier): BreakStatement {
|
|
45
|
-
const result: BreakStatement = new BreakStatement(global.generatedEs2panda._CreateBreakStatement1(global.context, passNode(ident)))
|
|
44
|
+
const result: BreakStatement = new BreakStatement(global.generatedEs2panda._CreateBreakStatement1(global.context, passNode(ident)), Es2pandaAstNodeType.AST_NODE_TYPE_BREAK_STATEMENT)
|
|
46
45
|
result.setChildrenParentPtr()
|
|
47
46
|
return result
|
|
48
47
|
}
|
|
49
48
|
static updateBreakStatement(original?: BreakStatement): BreakStatement {
|
|
50
|
-
const result: BreakStatement = new BreakStatement(global.generatedEs2panda._UpdateBreakStatement(global.context, passNode(original)))
|
|
49
|
+
const result: BreakStatement = new BreakStatement(global.generatedEs2panda._UpdateBreakStatement(global.context, passNode(original)), Es2pandaAstNodeType.AST_NODE_TYPE_BREAK_STATEMENT)
|
|
51
50
|
result.setChildrenParentPtr()
|
|
52
51
|
return result
|
|
53
52
|
}
|
|
54
53
|
static update1BreakStatement(original?: BreakStatement, ident?: Identifier): BreakStatement {
|
|
55
|
-
const result: BreakStatement = new BreakStatement(global.generatedEs2panda._UpdateBreakStatement1(global.context, passNode(original), passNode(ident)))
|
|
54
|
+
const result: BreakStatement = new BreakStatement(global.generatedEs2panda._UpdateBreakStatement1(global.context, passNode(original), passNode(ident)), Es2pandaAstNodeType.AST_NODE_TYPE_BREAK_STATEMENT)
|
|
56
55
|
result.setChildrenParentPtr()
|
|
57
56
|
return result
|
|
58
57
|
}
|
|
@@ -76,5 +75,5 @@ export function isBreakStatement(node: object | undefined): node is BreakStateme
|
|
|
76
75
|
return node instanceof BreakStatement
|
|
77
76
|
}
|
|
78
77
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_BREAK_STATEMENT)) {
|
|
79
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BREAK_STATEMENT, (peer: KNativePointer) => new BreakStatement(peer))
|
|
78
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_BREAK_STATEMENT, (peer: KNativePointer) => new BreakStatement(peer, Es2pandaAstNodeType.AST_NODE_TYPE_BREAK_STATEMENT))
|
|
80
79
|
}
|
|
@@ -39,12 +39,11 @@ import { MaybeOptionalExpression } from "./MaybeOptionalExpression"
|
|
|
39
39
|
import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation"
|
|
40
40
|
|
|
41
41
|
export class CallExpression extends MaybeOptionalExpression {
|
|
42
|
-
constructor(pointer: KNativePointer) {
|
|
43
|
-
|
|
44
|
-
super(pointer)
|
|
42
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
43
|
+
super(pointer, astNodeType)
|
|
45
44
|
}
|
|
46
45
|
static createCallExpression(callee: Expression | undefined, _arguments: readonly Expression[], typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, trailingComma: boolean, trailingBlock?: BlockStatement): CallExpression {
|
|
47
|
-
const result: CallExpression = new CallExpression(global.generatedEs2panda._CreateCallExpression(global.context, passNode(callee), passNodeArray(_arguments), _arguments.length, passNode(typeParams), optional_arg, trailingComma))
|
|
46
|
+
const result: CallExpression = new CallExpression(global.generatedEs2panda._CreateCallExpression(global.context, passNode(callee), passNodeArray(_arguments), _arguments.length, passNode(typeParams), optional_arg, trailingComma), Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION)
|
|
48
47
|
if (trailingBlock)
|
|
49
48
|
{
|
|
50
49
|
result.setTrailingBlock(trailingBlock)
|
|
@@ -53,7 +52,7 @@ export class CallExpression extends MaybeOptionalExpression {
|
|
|
53
52
|
return result
|
|
54
53
|
}
|
|
55
54
|
static update1CallExpression(original?: CallExpression, other?: CallExpression, trailingBlock?: BlockStatement): CallExpression {
|
|
56
|
-
const result: CallExpression = new CallExpression(global.generatedEs2panda._UpdateCallExpression1(global.context, passNode(original), passNode(other)))
|
|
55
|
+
const result: CallExpression = new CallExpression(global.generatedEs2panda._UpdateCallExpression1(global.context, passNode(original), passNode(other)), Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION)
|
|
57
56
|
if (trailingBlock)
|
|
58
57
|
{
|
|
59
58
|
result.setTrailingBlock(trailingBlock)
|
|
@@ -122,5 +121,5 @@ export function isCallExpression(node: object | undefined): node is CallExpressi
|
|
|
122
121
|
return node instanceof CallExpression
|
|
123
122
|
}
|
|
124
123
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION)) {
|
|
125
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION, (peer: KNativePointer) => new CallExpression(peer))
|
|
124
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION, (peer: KNativePointer) => new CallExpression(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION))
|
|
126
125
|
}
|
|
@@ -38,22 +38,21 @@ import { Expression } from "./Expression"
|
|
|
38
38
|
import { TypedStatement } from "./TypedStatement"
|
|
39
39
|
|
|
40
40
|
export class CatchClause extends TypedStatement {
|
|
41
|
-
constructor(pointer: KNativePointer) {
|
|
42
|
-
|
|
43
|
-
super(pointer)
|
|
41
|
+
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
42
|
+
super(pointer, astNodeType)
|
|
44
43
|
}
|
|
45
44
|
static createCatchClause(param?: Expression, body?: BlockStatement): CatchClause {
|
|
46
|
-
const result: CatchClause = new CatchClause(global.generatedEs2panda._CreateCatchClause(global.context, passNode(param), passNode(body)))
|
|
45
|
+
const result: CatchClause = new CatchClause(global.generatedEs2panda._CreateCatchClause(global.context, passNode(param), passNode(body)), Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE)
|
|
47
46
|
result.setChildrenParentPtr()
|
|
48
47
|
return result
|
|
49
48
|
}
|
|
50
49
|
static updateCatchClause(original?: CatchClause, param?: Expression, body?: BlockStatement): CatchClause {
|
|
51
|
-
const result: CatchClause = new CatchClause(global.generatedEs2panda._UpdateCatchClause(global.context, passNode(original), passNode(param), passNode(body)))
|
|
50
|
+
const result: CatchClause = new CatchClause(global.generatedEs2panda._UpdateCatchClause(global.context, passNode(original), passNode(param), passNode(body)), Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE)
|
|
52
51
|
result.setChildrenParentPtr()
|
|
53
52
|
return result
|
|
54
53
|
}
|
|
55
54
|
static update1CatchClause(original?: CatchClause, other?: CatchClause): CatchClause {
|
|
56
|
-
const result: CatchClause = new CatchClause(global.generatedEs2panda._UpdateCatchClause1(global.context, passNode(original), passNode(other)))
|
|
55
|
+
const result: CatchClause = new CatchClause(global.generatedEs2panda._UpdateCatchClause1(global.context, passNode(original), passNode(other)), Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE)
|
|
57
56
|
result.setChildrenParentPtr()
|
|
58
57
|
return result
|
|
59
58
|
}
|
|
@@ -72,5 +71,5 @@ export function isCatchClause(node: object | undefined): node is CatchClause {
|
|
|
72
71
|
return node instanceof CatchClause
|
|
73
72
|
}
|
|
74
73
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE)) {
|
|
75
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE, (peer: KNativePointer) => new CatchClause(peer))
|
|
74
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE, (peer: KNativePointer) => new CatchClause(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CATCH_CLAUSE))
|
|
76
75
|
}
|