@idlizer/arktscgen 2.1.2 → 2.1.7
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/README.md +36 -0
- package/build/libarkts-copy/generator/options.json5 +113 -44
- package/build/libarkts-copy/native/meson.build +13 -0
- package/build/libarkts-copy/native/meson_options.txt +13 -0
- package/build/libarkts-copy/native/src/bridges.cc +78 -10
- package/build/libarkts-copy/native/src/common.cc +56 -8
- package/build/libarkts-copy/native/src/common.h +48 -0
- package/build/libarkts-copy/native/src/generated/bridges.cc +825 -325
- package/build/libarkts-copy/package.json +67 -49
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +42 -4
- package/build/libarkts-copy/src/InteropNativeModule.ts +5 -2
- package/build/libarkts-copy/src/arkts-api/AbstractVisitor.ts +50 -0
- package/build/libarkts-copy/src/arkts-api/CheckedBackFilter.ts +53 -0
- package/build/libarkts-copy/src/arkts-api/SetBaseOverloads.ts +51 -0
- package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +8 -6
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +95 -117
- package/build/libarkts-copy/src/arkts-api/index.ts +6 -1
- package/build/libarkts-copy/src/arkts-api/node-cache.ts +35 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArrayExpression.ts +42 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArrowFunctionExpression.ts +49 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/AssignmentExpression.ts +50 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/{createCallExpression.ts → CallExpression.ts} +27 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDefinition.ts +73 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassProperty.ts +64 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSFunctionType.ts +65 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSImportDeclaration.ts +69 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSParameterExpression.ts +60 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSStructDeclaration.ts +31 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSTuple.ts +31 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/MemberExpression.ts +41 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/MethodDefinition.ts +75 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/{createNumberLiteral.ts → NumberLiteral.ts} +15 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +34 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +99 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +81 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +68 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeParameter.ts +39 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeReferencePart.ts +36 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TryStatement.ts +44 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclaration.ts +54 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclarator.ts +37 -0
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +16 -15
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +1 -2
- package/build/libarkts-copy/src/arkts-api/peers/ImportPathManager.ts +30 -0
- package/build/libarkts-copy/src/arkts-api/peers/Program.ts +7 -5
- package/build/libarkts-copy/src/arkts-api/peers/SourcePosition.ts +38 -0
- package/build/libarkts-copy/src/arkts-api/plugins.ts +48 -0
- package/build/libarkts-copy/src/arkts-api/static/global.ts +8 -2
- package/build/libarkts-copy/src/arkts-api/static/profiler.ts +40 -0
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +18 -14
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +76 -12
- package/build/libarkts-copy/src/arkts-api/visitor.ts +324 -42
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +504 -458
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +225 -75
- package/build/libarkts-copy/src/generated/factory.ts +21 -43
- package/build/libarkts-copy/src/generated/index.ts +24 -3
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +12 -12
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +10 -5
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +13 -7
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +14 -7
- package/build/libarkts-copy/src/generated/peers/BindingProps.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +15 -5
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +8 -5
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +8 -8
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +12 -5
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +30 -15
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +7 -8
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +21 -5
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/CodeGen.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +8 -5
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/Declaration.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ETSDynamicFunctionType.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +15 -15
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +26 -17
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +53 -0
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +11 -6
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +11 -6
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +10 -10
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +50 -0
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +8 -8
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/Expression.ts +4 -5
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/FunctionDecl.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +8 -8
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +6 -7
- package/build/libarkts-copy/src/generated/peers/IRNode.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +9 -9
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +10 -10
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/ImportSource.ts +1 -15
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +14 -6
- package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/InterfaceDecl.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/LabelPair.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/Literal.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +24 -8
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +25 -8
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +19 -4
- package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/OverloadInfo.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/Property.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +8 -5
- package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +16 -11
- package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/SourceRange.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/Statement.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +10 -10
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +8 -8
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +10 -6
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/VReg.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +4 -4
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +5 -5
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +7 -7
- package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +35 -0
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +6 -6
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +4 -4
- package/build/libarkts-copy/src/index.ts +35 -0
- package/build/libarkts-copy/src/reexport-for-generated.ts +1 -1
- package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +15 -0
- package/build/libarkts-copy/src/ts-api/factory/nodeTests.ts +15 -0
- package/build/libarkts-copy/src/ts-api/types.ts +15 -0
- package/build/libarkts-copy/src/utils.ts +301 -9
- package/build/libarkts-copy/tsconfig.json +5 -4
- package/lib/index.js +2861 -1209
- package/package.json +6 -6
- package/templates/factory.ts +0 -1
- package/templates/peer.ts +0 -1
- package/build/libarkts-copy/src/Es2pandaEnums.ts +0 -183
- package/build/libarkts-copy/src/arkts-api/node-utilities/createScriptFunction.ts +0 -55
- package/build/libarkts-copy/src/es2panda.ts +0 -277
- package/build/libarkts-copy/src/generated/node-map.ts +0 -182
- package/build/libarkts-copy/src/generated/peers/ETSLaunchExpression.ts +0 -57
|
@@ -22,16 +22,16 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { TypeNode } from "./TypeNode"
|
|
33
33
|
export class TSArrayType extends TypeNode {
|
|
34
|
-
|
|
34
|
+
constructor(pointer: KNativePointer) {
|
|
35
35
|
assertValidPeer(pointer, 101)
|
|
36
36
|
super(pointer)
|
|
37
37
|
}
|
|
@@ -48,6 +48,6 @@ export class TSArrayType extends TypeNode {
|
|
|
48
48
|
export function isTSArrayType(node: object | undefined): node is TSArrayType {
|
|
49
49
|
return node instanceof TSArrayType
|
|
50
50
|
}
|
|
51
|
-
if (!nodeByType.has(
|
|
52
|
-
nodeByType.set(
|
|
51
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_ARRAY_TYPE)) {
|
|
52
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_ARRAY_TYPE, (peer: KNativePointer) => new TSArrayType(peer))
|
|
53
53
|
}
|
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
@@ -30,10 +29,11 @@ import {
|
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
32
31
|
import { AnnotatedExpression } from "./AnnotatedExpression"
|
|
32
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
33
33
|
import { Expression } from "./Expression"
|
|
34
34
|
import { TypeNode } from "./TypeNode"
|
|
35
35
|
export class TSAsExpression extends AnnotatedExpression {
|
|
36
|
-
|
|
36
|
+
constructor(pointer: KNativePointer) {
|
|
37
37
|
assertValidPeer(pointer, 137)
|
|
38
38
|
super(pointer)
|
|
39
39
|
}
|
|
@@ -44,7 +44,7 @@ export class TSAsExpression extends AnnotatedExpression {
|
|
|
44
44
|
return new TSAsExpression(global.generatedEs2panda._UpdateTSAsExpression(global.context, passNode(original), passNode(expression), passNode(typeAnnotation), isConst))
|
|
45
45
|
}
|
|
46
46
|
get expr(): Expression | undefined {
|
|
47
|
-
return unpackNode(global.generatedEs2panda.
|
|
47
|
+
return unpackNode(global.generatedEs2panda._TSAsExpressionExpr(global.context, this.peer))
|
|
48
48
|
}
|
|
49
49
|
/** @deprecated */
|
|
50
50
|
setExpr(expr?: Expression): this {
|
|
@@ -71,6 +71,6 @@ export class TSAsExpression extends AnnotatedExpression {
|
|
|
71
71
|
export function isTSAsExpression(node: object | undefined): node is TSAsExpression {
|
|
72
72
|
return node instanceof TSAsExpression
|
|
73
73
|
}
|
|
74
|
-
if (!nodeByType.has(
|
|
75
|
-
nodeByType.set(
|
|
74
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_AS_EXPRESSION)) {
|
|
75
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_AS_EXPRESSION, (peer: KNativePointer) => new TSAsExpression(peer))
|
|
76
76
|
}
|
|
@@ -22,16 +22,16 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { TypeNode } from "./TypeNode"
|
|
33
33
|
export class TSBigintKeyword extends TypeNode {
|
|
34
|
-
|
|
34
|
+
constructor(pointer: KNativePointer) {
|
|
35
35
|
assertValidPeer(pointer, 97)
|
|
36
36
|
super(pointer)
|
|
37
37
|
}
|
|
@@ -45,6 +45,6 @@ export class TSBigintKeyword extends TypeNode {
|
|
|
45
45
|
export function isTSBigintKeyword(node: object | undefined): node is TSBigintKeyword {
|
|
46
46
|
return node instanceof TSBigintKeyword
|
|
47
47
|
}
|
|
48
|
-
if (!nodeByType.has(
|
|
49
|
-
nodeByType.set(
|
|
48
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_BIGINT_KEYWORD)) {
|
|
49
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_BIGINT_KEYWORD, (peer: KNativePointer) => new TSBigintKeyword(peer))
|
|
50
50
|
}
|
|
@@ -22,16 +22,16 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { TypeNode } from "./TypeNode"
|
|
33
33
|
export class TSBooleanKeyword extends TypeNode {
|
|
34
|
-
|
|
34
|
+
constructor(pointer: KNativePointer) {
|
|
35
35
|
assertValidPeer(pointer, 92)
|
|
36
36
|
super(pointer)
|
|
37
37
|
}
|
|
@@ -45,6 +45,6 @@ export class TSBooleanKeyword extends TypeNode {
|
|
|
45
45
|
export function isTSBooleanKeyword(node: object | undefined): node is TSBooleanKeyword {
|
|
46
46
|
return node instanceof TSBooleanKeyword
|
|
47
47
|
}
|
|
48
|
-
if (!nodeByType.has(
|
|
49
|
-
nodeByType.set(
|
|
48
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_BOOLEAN_KEYWORD)) {
|
|
49
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_BOOLEAN_KEYWORD, (peer: KNativePointer) => new TSBooleanKeyword(peer))
|
|
50
50
|
}
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { Expression } from "./Expression"
|
|
33
33
|
import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation"
|
|
34
34
|
export class TSClassImplements extends Expression {
|
|
35
|
-
|
|
35
|
+
constructor(pointer: KNativePointer) {
|
|
36
36
|
assertValidPeer(pointer, 138)
|
|
37
37
|
super(pointer)
|
|
38
38
|
}
|
|
@@ -46,7 +46,7 @@ export class TSClassImplements extends Expression {
|
|
|
46
46
|
return new TSClassImplements(global.generatedEs2panda._UpdateTSClassImplements1(global.context, passNode(original), passNode(expression)))
|
|
47
47
|
}
|
|
48
48
|
get expr(): Expression | undefined {
|
|
49
|
-
return unpackNode(global.generatedEs2panda.
|
|
49
|
+
return unpackNode(global.generatedEs2panda._TSClassImplementsExpr(global.context, this.peer))
|
|
50
50
|
}
|
|
51
51
|
get typeParameters(): TSTypeParameterInstantiation | undefined {
|
|
52
52
|
return unpackNode(global.generatedEs2panda._TSClassImplementsTypeParametersConst(global.context, this.peer))
|
|
@@ -55,6 +55,6 @@ export class TSClassImplements extends Expression {
|
|
|
55
55
|
export function isTSClassImplements(node: object | undefined): node is TSClassImplements {
|
|
56
56
|
return node instanceof TSClassImplements
|
|
57
57
|
}
|
|
58
|
-
if (!nodeByType.has(
|
|
59
|
-
nodeByType.set(
|
|
58
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_CLASS_IMPLEMENTS)) {
|
|
59
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_CLASS_IMPLEMENTS, (peer: KNativePointer) => new TSClassImplements(peer))
|
|
60
60
|
}
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { Expression } from "./Expression"
|
|
33
33
|
import { TypeNode } from "./TypeNode"
|
|
34
34
|
export class TSConditionalType extends TypeNode {
|
|
35
|
-
|
|
35
|
+
constructor(pointer: KNativePointer) {
|
|
36
36
|
assertValidPeer(pointer, 110)
|
|
37
37
|
super(pointer)
|
|
38
38
|
}
|
|
@@ -58,6 +58,6 @@ export class TSConditionalType extends TypeNode {
|
|
|
58
58
|
export function isTSConditionalType(node: object | undefined): node is TSConditionalType {
|
|
59
59
|
return node instanceof TSConditionalType
|
|
60
60
|
}
|
|
61
|
-
if (!nodeByType.has(
|
|
62
|
-
nodeByType.set(
|
|
61
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_CONDITIONAL_TYPE)) {
|
|
62
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_CONDITIONAL_TYPE, (peer: KNativePointer) => new TSConditionalType(peer))
|
|
63
63
|
}
|
|
@@ -22,19 +22,19 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { Expression } from "./Expression"
|
|
33
33
|
import { FunctionSignature } from "./FunctionSignature"
|
|
34
34
|
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
35
35
|
import { TypeNode } from "./TypeNode"
|
|
36
36
|
export class TSConstructorType extends TypeNode {
|
|
37
|
-
|
|
37
|
+
constructor(pointer: KNativePointer) {
|
|
38
38
|
assertValidPeer(pointer, 125)
|
|
39
39
|
super(pointer)
|
|
40
40
|
}
|
|
@@ -45,13 +45,13 @@ export class TSConstructorType extends TypeNode {
|
|
|
45
45
|
return new TSConstructorType(global.generatedEs2panda._UpdateTSConstructorType(global.context, passNode(original), passNode(signature), abstract))
|
|
46
46
|
}
|
|
47
47
|
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
48
|
-
return unpackNode(global.generatedEs2panda.
|
|
48
|
+
return unpackNode(global.generatedEs2panda._TSConstructorTypeTypeParams(global.context, this.peer))
|
|
49
49
|
}
|
|
50
50
|
get params(): readonly Expression[] {
|
|
51
51
|
return unpackNodeArray(global.generatedEs2panda._TSConstructorTypeParamsConst(global.context, this.peer))
|
|
52
52
|
}
|
|
53
53
|
get returnType(): TypeNode | undefined {
|
|
54
|
-
return unpackNode(global.generatedEs2panda.
|
|
54
|
+
return unpackNode(global.generatedEs2panda._TSConstructorTypeReturnType(global.context, this.peer))
|
|
55
55
|
}
|
|
56
56
|
get abstract(): boolean {
|
|
57
57
|
return global.generatedEs2panda._TSConstructorTypeAbstractConst(global.context, this.peer)
|
|
@@ -60,6 +60,6 @@ export class TSConstructorType extends TypeNode {
|
|
|
60
60
|
export function isTSConstructorType(node: object | undefined): node is TSConstructorType {
|
|
61
61
|
return node instanceof TSConstructorType
|
|
62
62
|
}
|
|
63
|
-
if (!nodeByType.has(
|
|
64
|
-
nodeByType.set(
|
|
63
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_CONSTRUCTOR_TYPE)) {
|
|
64
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_CONSTRUCTOR_TYPE, (peer: KNativePointer) => new TSConstructorType(peer))
|
|
65
65
|
}
|
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
@@ -31,10 +30,11 @@ import {
|
|
|
31
30
|
|
|
32
31
|
import { ClassDefinition } from "./ClassDefinition"
|
|
33
32
|
import { Decorator } from "./Decorator"
|
|
33
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
34
34
|
import { Identifier } from "./Identifier"
|
|
35
35
|
import { TypedStatement } from "./TypedStatement"
|
|
36
36
|
export class TSEnumDeclaration extends TypedStatement {
|
|
37
|
-
|
|
37
|
+
constructor(pointer: KNativePointer) {
|
|
38
38
|
assertValidPeer(pointer, 86)
|
|
39
39
|
super(pointer)
|
|
40
40
|
}
|
|
@@ -45,7 +45,7 @@ export class TSEnumDeclaration extends TypedStatement {
|
|
|
45
45
|
return new TSEnumDeclaration(global.generatedEs2panda._UpdateTSEnumDeclaration(global.context, passNode(original), passNode(key), passNodeArray(members), members.length, isConst, isStatic, isDeclare))
|
|
46
46
|
}
|
|
47
47
|
get key(): Identifier | undefined {
|
|
48
|
-
return unpackNode(global.generatedEs2panda.
|
|
48
|
+
return unpackNode(global.generatedEs2panda._TSEnumDeclarationKey(global.context, this.peer))
|
|
49
49
|
}
|
|
50
50
|
get members(): readonly AstNode[] {
|
|
51
51
|
return unpackNodeArray(global.generatedEs2panda._TSEnumDeclarationMembersConst(global.context, this.peer))
|
|
@@ -76,6 +76,6 @@ export class TSEnumDeclaration extends TypedStatement {
|
|
|
76
76
|
export function isTSEnumDeclaration(node: object | undefined): node is TSEnumDeclaration {
|
|
77
77
|
return node instanceof TSEnumDeclaration
|
|
78
78
|
}
|
|
79
|
-
if (!nodeByType.has(
|
|
80
|
-
nodeByType.set(
|
|
79
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_ENUM_DECLARATION)) {
|
|
80
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_ENUM_DECLARATION, (peer: KNativePointer) => new TSEnumDeclaration(peer))
|
|
81
81
|
}
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { Expression } from "./Expression"
|
|
33
33
|
import { Statement } from "./Statement"
|
|
34
34
|
export class TSEnumMember extends Statement {
|
|
35
|
-
|
|
35
|
+
constructor(pointer: KNativePointer) {
|
|
36
36
|
assertValidPeer(pointer, 87)
|
|
37
37
|
super(pointer)
|
|
38
38
|
}
|
|
@@ -46,10 +46,10 @@ export class TSEnumMember extends Statement {
|
|
|
46
46
|
return new TSEnumMember(global.generatedEs2panda._UpdateTSEnumMember1(global.context, passNode(original), passNode(key), passNode(init), isGenerated))
|
|
47
47
|
}
|
|
48
48
|
get key(): Expression | undefined {
|
|
49
|
-
return unpackNode(global.generatedEs2panda.
|
|
49
|
+
return unpackNode(global.generatedEs2panda._TSEnumMemberKey(global.context, this.peer))
|
|
50
50
|
}
|
|
51
51
|
get init(): Expression | undefined {
|
|
52
|
-
return unpackNode(global.generatedEs2panda.
|
|
52
|
+
return unpackNode(global.generatedEs2panda._TSEnumMemberInit(global.context, this.peer))
|
|
53
53
|
}
|
|
54
54
|
get isGenerated(): boolean {
|
|
55
55
|
return global.generatedEs2panda._TSEnumMemberIsGeneratedConst(global.context, this.peer)
|
|
@@ -61,6 +61,6 @@ export class TSEnumMember extends Statement {
|
|
|
61
61
|
export function isTSEnumMember(node: object | undefined): node is TSEnumMember {
|
|
62
62
|
return node instanceof TSEnumMember
|
|
63
63
|
}
|
|
64
|
-
if (!nodeByType.has(
|
|
65
|
-
nodeByType.set(
|
|
64
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_ENUM_MEMBER)) {
|
|
65
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_ENUM_MEMBER, (peer: KNativePointer) => new TSEnumMember(peer))
|
|
66
66
|
}
|
|
@@ -22,16 +22,16 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { Expression } from "./Expression"
|
|
33
33
|
export class TSExternalModuleReference extends Expression {
|
|
34
|
-
|
|
34
|
+
constructor(pointer: KNativePointer) {
|
|
35
35
|
assertValidPeer(pointer, 88)
|
|
36
36
|
super(pointer)
|
|
37
37
|
}
|
|
@@ -48,6 +48,6 @@ export class TSExternalModuleReference extends Expression {
|
|
|
48
48
|
export function isTSExternalModuleReference(node: object | undefined): node is TSExternalModuleReference {
|
|
49
49
|
return node instanceof TSExternalModuleReference
|
|
50
50
|
}
|
|
51
|
-
if (!nodeByType.has(
|
|
52
|
-
nodeByType.set(
|
|
51
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_EXTERNAL_MODULE_REFERENCE)) {
|
|
52
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_EXTERNAL_MODULE_REFERENCE, (peer: KNativePointer) => new TSExternalModuleReference(peer))
|
|
53
53
|
}
|
|
@@ -22,19 +22,19 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { Expression } from "./Expression"
|
|
33
33
|
import { FunctionSignature } from "./FunctionSignature"
|
|
34
34
|
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
35
35
|
import { TypeNode } from "./TypeNode"
|
|
36
36
|
export class TSFunctionType extends TypeNode {
|
|
37
|
-
|
|
37
|
+
constructor(pointer: KNativePointer) {
|
|
38
38
|
assertValidPeer(pointer, 124)
|
|
39
39
|
super(pointer)
|
|
40
40
|
}
|
|
@@ -45,13 +45,13 @@ export class TSFunctionType extends TypeNode {
|
|
|
45
45
|
return new TSFunctionType(global.generatedEs2panda._UpdateTSFunctionType(global.context, passNode(original), passNode(signature)))
|
|
46
46
|
}
|
|
47
47
|
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
48
|
-
return unpackNode(global.generatedEs2panda.
|
|
48
|
+
return unpackNode(global.generatedEs2panda._TSFunctionTypeTypeParams(global.context, this.peer))
|
|
49
49
|
}
|
|
50
50
|
get params(): readonly Expression[] {
|
|
51
51
|
return unpackNodeArray(global.generatedEs2panda._TSFunctionTypeParamsConst(global.context, this.peer))
|
|
52
52
|
}
|
|
53
53
|
get returnType(): TypeNode | undefined {
|
|
54
|
-
return unpackNode(global.generatedEs2panda.
|
|
54
|
+
return unpackNode(global.generatedEs2panda._TSFunctionTypeReturnType(global.context, this.peer))
|
|
55
55
|
}
|
|
56
56
|
/** @deprecated */
|
|
57
57
|
setNullable(nullable: boolean): this {
|
|
@@ -62,6 +62,6 @@ export class TSFunctionType extends TypeNode {
|
|
|
62
62
|
export function isTSFunctionType(node: object | undefined): node is TSFunctionType {
|
|
63
63
|
return node instanceof TSFunctionType
|
|
64
64
|
}
|
|
65
|
-
if (!nodeByType.has(
|
|
66
|
-
nodeByType.set(
|
|
65
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_FUNCTION_TYPE)) {
|
|
66
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_FUNCTION_TYPE, (peer: KNativePointer) => new TSFunctionType(peer))
|
|
67
67
|
}
|
|
@@ -22,18 +22,18 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { Expression } from "./Expression"
|
|
33
33
|
import { Identifier } from "./Identifier"
|
|
34
34
|
import { Statement } from "./Statement"
|
|
35
35
|
export class TSImportEqualsDeclaration extends Statement {
|
|
36
|
-
|
|
36
|
+
constructor(pointer: KNativePointer) {
|
|
37
37
|
assertValidPeer(pointer, 123)
|
|
38
38
|
super(pointer)
|
|
39
39
|
}
|
|
@@ -56,6 +56,6 @@ export class TSImportEqualsDeclaration extends Statement {
|
|
|
56
56
|
export function isTSImportEqualsDeclaration(node: object | undefined): node is TSImportEqualsDeclaration {
|
|
57
57
|
return node instanceof TSImportEqualsDeclaration
|
|
58
58
|
}
|
|
59
|
-
if (!nodeByType.has(
|
|
60
|
-
nodeByType.set(
|
|
59
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_IMPORT_EQUALS_DECLARATION)) {
|
|
60
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_IMPORT_EQUALS_DECLARATION, (peer: KNativePointer) => new TSImportEqualsDeclaration(peer))
|
|
61
61
|
}
|
|
@@ -22,18 +22,18 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { Expression } from "./Expression"
|
|
33
33
|
import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation"
|
|
34
34
|
import { TypeNode } from "./TypeNode"
|
|
35
35
|
export class TSImportType extends TypeNode {
|
|
36
|
-
|
|
36
|
+
constructor(pointer: KNativePointer) {
|
|
37
37
|
assertValidPeer(pointer, 111)
|
|
38
38
|
super(pointer)
|
|
39
39
|
}
|
|
@@ -59,6 +59,6 @@ export class TSImportType extends TypeNode {
|
|
|
59
59
|
export function isTSImportType(node: object | undefined): node is TSImportType {
|
|
60
60
|
return node instanceof TSImportType
|
|
61
61
|
}
|
|
62
|
-
if (!nodeByType.has(
|
|
63
|
-
nodeByType.set(
|
|
62
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_IMPORT_TYPE)) {
|
|
63
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_IMPORT_TYPE, (peer: KNativePointer) => new TSImportType(peer))
|
|
64
64
|
}
|
|
@@ -22,19 +22,19 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { Es2pandaTSIndexSignatureKind } from "./../Es2pandaEnums"
|
|
33
33
|
import { Expression } from "./Expression"
|
|
34
34
|
import { TypeNode } from "./TypeNode"
|
|
35
35
|
import { TypedAstNode } from "./TypedAstNode"
|
|
36
36
|
export class TSIndexSignature extends TypedAstNode {
|
|
37
|
-
|
|
37
|
+
constructor(pointer: KNativePointer) {
|
|
38
38
|
assertValidPeer(pointer, 135)
|
|
39
39
|
super(pointer)
|
|
40
40
|
}
|
|
@@ -60,6 +60,6 @@ export class TSIndexSignature extends TypedAstNode {
|
|
|
60
60
|
export function isTSIndexSignature(node: object | undefined): node is TSIndexSignature {
|
|
61
61
|
return node instanceof TSIndexSignature
|
|
62
62
|
}
|
|
63
|
-
if (!nodeByType.has(
|
|
64
|
-
nodeByType.set(
|
|
63
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_INDEX_SIGNATURE)) {
|
|
64
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_INDEX_SIGNATURE, (peer: KNativePointer) => new TSIndexSignature(peer))
|
|
65
65
|
}
|
|
@@ -22,16 +22,16 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { TypeNode } from "./TypeNode"
|
|
33
33
|
export class TSIndexedAccessType extends TypeNode {
|
|
34
|
-
|
|
34
|
+
constructor(pointer: KNativePointer) {
|
|
35
35
|
assertValidPeer(pointer, 129)
|
|
36
36
|
super(pointer)
|
|
37
37
|
}
|
|
@@ -51,6 +51,6 @@ export class TSIndexedAccessType extends TypeNode {
|
|
|
51
51
|
export function isTSIndexedAccessType(node: object | undefined): node is TSIndexedAccessType {
|
|
52
52
|
return node instanceof TSIndexedAccessType
|
|
53
53
|
}
|
|
54
|
-
if (!nodeByType.has(
|
|
55
|
-
nodeByType.set(
|
|
54
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_INDEXED_ACCESS_TYPE)) {
|
|
55
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_INDEXED_ACCESS_TYPE, (peer: KNativePointer) => new TSIndexedAccessType(peer))
|
|
56
56
|
}
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { TSTypeParameter } from "./TSTypeParameter"
|
|
33
33
|
import { TypeNode } from "./TypeNode"
|
|
34
34
|
export class TSInferType extends TypeNode {
|
|
35
|
-
|
|
35
|
+
constructor(pointer: KNativePointer) {
|
|
36
36
|
assertValidPeer(pointer, 109)
|
|
37
37
|
super(pointer)
|
|
38
38
|
}
|
|
@@ -49,6 +49,6 @@ export class TSInferType extends TypeNode {
|
|
|
49
49
|
export function isTSInferType(node: object | undefined): node is TSInferType {
|
|
50
50
|
return node instanceof TSInferType
|
|
51
51
|
}
|
|
52
|
-
if (!nodeByType.has(
|
|
53
|
-
nodeByType.set(
|
|
52
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_INFER_TYPE)) {
|
|
53
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_INFER_TYPE, (peer: KNativePointer) => new TSInferType(peer))
|
|
54
54
|
}
|
|
@@ -22,16 +22,16 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
29
28
|
unpackString
|
|
30
29
|
} from "../../reexport-for-generated"
|
|
31
30
|
|
|
31
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
32
|
import { Expression } from "./Expression"
|
|
33
33
|
export class TSInterfaceBody extends Expression {
|
|
34
|
-
|
|
34
|
+
constructor(pointer: KNativePointer) {
|
|
35
35
|
assertValidPeer(pointer, 131)
|
|
36
36
|
super(pointer)
|
|
37
37
|
}
|
|
@@ -42,12 +42,12 @@ export class TSInterfaceBody extends Expression {
|
|
|
42
42
|
return new TSInterfaceBody(global.generatedEs2panda._UpdateTSInterfaceBody(global.context, passNode(original), passNodeArray(body), body.length))
|
|
43
43
|
}
|
|
44
44
|
get body(): readonly AstNode[] {
|
|
45
|
-
return unpackNodeArray(global.generatedEs2panda.
|
|
45
|
+
return unpackNodeArray(global.generatedEs2panda._TSInterfaceBodyBody(global.context, this.peer))
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
export function isTSInterfaceBody(node: object | undefined): node is TSInterfaceBody {
|
|
49
49
|
return node instanceof TSInterfaceBody
|
|
50
50
|
}
|
|
51
|
-
if (!nodeByType.has(
|
|
52
|
-
nodeByType.set(
|
|
51
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_BODY)) {
|
|
52
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_BODY, (peer: KNativePointer) => new TSInterfaceBody(peer))
|
|
53
53
|
}
|
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
unpackNodeArray,
|
|
23
23
|
assertValidPeer,
|
|
24
24
|
AstNode,
|
|
25
|
-
Es2pandaAstNodeType,
|
|
26
25
|
KNativePointer,
|
|
27
26
|
nodeByType,
|
|
28
27
|
ArktsObject,
|
|
@@ -32,13 +31,14 @@ import {
|
|
|
32
31
|
import { AnnotationUsage } from "./AnnotationUsage"
|
|
33
32
|
import { ClassDeclaration } from "./ClassDeclaration"
|
|
34
33
|
import { Decorator } from "./Decorator"
|
|
34
|
+
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
35
|
import { Identifier } from "./Identifier"
|
|
36
36
|
import { TSInterfaceBody } from "./TSInterfaceBody"
|
|
37
37
|
import { TSInterfaceHeritage } from "./TSInterfaceHeritage"
|
|
38
38
|
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
39
39
|
import { TypedStatement } from "./TypedStatement"
|
|
40
40
|
export class TSInterfaceDeclaration extends TypedStatement {
|
|
41
|
-
|
|
41
|
+
constructor(pointer: KNativePointer) {
|
|
42
42
|
assertValidPeer(pointer, 130)
|
|
43
43
|
super(pointer)
|
|
44
44
|
}
|
|
@@ -49,10 +49,10 @@ export class TSInterfaceDeclaration extends TypedStatement {
|
|
|
49
49
|
return new TSInterfaceDeclaration(global.generatedEs2panda._UpdateTSInterfaceDeclaration(global.context, passNode(original), passNodeArray(_extends), _extends.length, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal))
|
|
50
50
|
}
|
|
51
51
|
get body(): TSInterfaceBody | undefined {
|
|
52
|
-
return unpackNode(global.generatedEs2panda.
|
|
52
|
+
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationBody(global.context, this.peer))
|
|
53
53
|
}
|
|
54
54
|
get id(): Identifier | undefined {
|
|
55
|
-
return unpackNode(global.generatedEs2panda.
|
|
55
|
+
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationId(global.context, this.peer))
|
|
56
56
|
}
|
|
57
57
|
get internalName(): string {
|
|
58
58
|
return unpackString(global.generatedEs2panda._TSInterfaceDeclarationInternalNameConst(global.context, this.peer))
|
|
@@ -69,16 +69,16 @@ export class TSInterfaceDeclaration extends TypedStatement {
|
|
|
69
69
|
return global.generatedEs2panda._TSInterfaceDeclarationIsFromExternalConst(global.context, this.peer)
|
|
70
70
|
}
|
|
71
71
|
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
72
|
-
return unpackNode(global.generatedEs2panda.
|
|
72
|
+
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationTypeParams(global.context, this.peer))
|
|
73
73
|
}
|
|
74
74
|
get extends(): readonly TSInterfaceHeritage[] {
|
|
75
|
-
return unpackNodeArray(global.generatedEs2panda.
|
|
75
|
+
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationExtends(global.context, this.peer))
|
|
76
76
|
}
|
|
77
77
|
get decorators(): readonly Decorator[] {
|
|
78
78
|
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationDecoratorsConst(global.context, this.peer))
|
|
79
79
|
}
|
|
80
80
|
get anonClass(): ClassDeclaration | undefined {
|
|
81
|
-
return unpackNode(global.generatedEs2panda.
|
|
81
|
+
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationGetAnonClass(global.context, this.peer))
|
|
82
82
|
}
|
|
83
83
|
/** @deprecated */
|
|
84
84
|
setAnonClass(anonClass?: ClassDeclaration): this {
|
|
@@ -86,7 +86,7 @@ export class TSInterfaceDeclaration extends TypedStatement {
|
|
|
86
86
|
return this
|
|
87
87
|
}
|
|
88
88
|
get annotations(): readonly AnnotationUsage[] {
|
|
89
|
-
return unpackNodeArray(global.generatedEs2panda.
|
|
89
|
+
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotations(global.context, this.peer))
|
|
90
90
|
}
|
|
91
91
|
/** @deprecated */
|
|
92
92
|
setAnnotations(annotations: readonly AnnotationUsage[]): this {
|
|
@@ -97,6 +97,6 @@ export class TSInterfaceDeclaration extends TypedStatement {
|
|
|
97
97
|
export function isTSInterfaceDeclaration(node: object | undefined): node is TSInterfaceDeclaration {
|
|
98
98
|
return node instanceof TSInterfaceDeclaration
|
|
99
99
|
}
|
|
100
|
-
if (!nodeByType.has(
|
|
101
|
-
nodeByType.set(
|
|
100
|
+
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_DECLARATION)) {
|
|
101
|
+
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_DECLARATION, (peer: KNativePointer) => new TSInterfaceDeclaration(peer))
|
|
102
102
|
}
|