@idlizer/arktscgen 2.1.10-arktscgen-2 → 2.1.10-arktscgen-3a
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 +89 -6
- package/build/libarkts-copy/native/meson.build +1 -0
- package/build/libarkts-copy/native/src/bridges.cc +10 -4
- package/build/libarkts-copy/native/src/common.cc +0 -12
- package/build/libarkts-copy/native/src/generated/bridges.cc +416 -723
- package/build/libarkts-copy/native/src/memoryTracker.cc +178 -0
- package/build/libarkts-copy/native/src/memoryTracker.h +52 -0
- package/build/libarkts-copy/package.json +8 -8
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +14 -2
- package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +2 -2
- package/build/libarkts-copy/src/arkts-api/index.ts +2 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +4 -1
- package/{templates/node-map.ts → build/libarkts-copy/src/arkts-api/peers/DiagnosticKind.ts} +8 -19
- package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +26 -9
- package/build/libarkts-copy/src/arkts-api/utilities/performance.ts +309 -0
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +7 -21
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +61 -7
- package/build/libarkts-copy/src/arkts-api/visitor.ts +21 -14
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +1 -0
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +88 -172
- package/build/libarkts-copy/src/generated/factory.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +11 -13
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +3 -1
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +0 -5
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +12 -14
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/BindingProps.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +6 -2
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +1 -24
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +26 -20
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +2 -30
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +10 -12
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/CodeGen.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/Declaration.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/DiagnosticInfo.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +12 -14
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +13 -15
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +3 -4
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/Expression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +10 -16
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +2 -2
- package/build/libarkts-copy/src/generated/peers/IRNode.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +0 -10
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/ImportSource.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/LabelPair.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/Literal.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +0 -5
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/Program.ts +9 -2
- package/build/libarkts-copy/src/generated/peers/Property.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +22 -19
- package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +2 -1
- package/build/libarkts-copy/src/generated/peers/SourceRange.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +0 -5
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/Statement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SuggestionInfo.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +2 -25
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +14 -38
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +26 -40
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +11 -13
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +2 -3
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +1 -2
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +10 -12
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/VReg.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +11 -20
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +0 -1
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +0 -1
- package/build/libarkts-copy/src/index.ts +2 -1
- package/build/libarkts-copy/src/plugin-utils.ts +0 -10
- package/build/libarkts-copy/src/reexport-for-generated.ts +1 -20
- package/lib/index.js +115 -38
- package/package.json +4 -3
- package/templates/factory.ts +0 -1
- package/templates/peer.ts +0 -1
- package/build/libarkts-copy/src/arkts-api/ChainExpressionFilter.ts +0 -79
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -51,7 +50,7 @@ export class TSInferType extends TypeNode {
|
|
|
51
50
|
return result
|
|
52
51
|
}
|
|
53
52
|
get typeParam(): TSTypeParameter | undefined {
|
|
54
|
-
return unpackNode(global.generatedEs2panda._TSInferTypeTypeParamConst(global.context, this.peer))
|
|
53
|
+
return unpackNode(global.generatedEs2panda._TSInferTypeTypeParamConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER)
|
|
55
54
|
}
|
|
56
55
|
protected readonly brandTSInferType: undefined
|
|
57
56
|
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -34,10 +33,10 @@ import {
|
|
|
34
33
|
|
|
35
34
|
import { AnnotationUsage } from "./AnnotationUsage"
|
|
36
35
|
import { ClassDeclaration } from "./ClassDeclaration"
|
|
37
|
-
import { Decorator } from "./Decorator"
|
|
38
36
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
39
37
|
import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
40
38
|
import { Identifier } from "./Identifier"
|
|
39
|
+
import { SrcDumper } from "./SrcDumper"
|
|
41
40
|
import { TSInterfaceBody } from "./TSInterfaceBody"
|
|
42
41
|
import { TSInterfaceHeritage } from "./TSInterfaceHeritage"
|
|
43
42
|
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
@@ -66,10 +65,10 @@ export class TSInterfaceDeclaration extends TypedStatement {
|
|
|
66
65
|
return result
|
|
67
66
|
}
|
|
68
67
|
get body(): TSInterfaceBody | undefined {
|
|
69
|
-
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationBody(global.context, this.peer))
|
|
68
|
+
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationBody(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_BODY)
|
|
70
69
|
}
|
|
71
70
|
get id(): Identifier | undefined {
|
|
72
|
-
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationId(global.context, this.peer))
|
|
71
|
+
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationId(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
73
72
|
}
|
|
74
73
|
get internalName(): string {
|
|
75
74
|
return unpackString(global.generatedEs2panda._TSInterfaceDeclarationInternalNameConst(global.context, this.peer))
|
|
@@ -86,13 +85,13 @@ export class TSInterfaceDeclaration extends TypedStatement {
|
|
|
86
85
|
return global.generatedEs2panda._TSInterfaceDeclarationIsFromExternalConst(global.context, this.peer)
|
|
87
86
|
}
|
|
88
87
|
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
89
|
-
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationTypeParams(global.context, this.peer))
|
|
88
|
+
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
|
|
90
89
|
}
|
|
91
90
|
get extends(): readonly TSInterfaceHeritage[] {
|
|
92
|
-
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationExtends(global.context, this.peer))
|
|
91
|
+
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationExtends(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_HERITAGE)
|
|
93
92
|
}
|
|
94
93
|
get extendsForUpdate(): readonly TSInterfaceHeritage[] {
|
|
95
|
-
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationExtendsForUpdate(global.context, this.peer))
|
|
94
|
+
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationExtendsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_HERITAGE)
|
|
96
95
|
}
|
|
97
96
|
get anonClass(): ClassDeclaration | undefined {
|
|
98
97
|
return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationGetAnonClass(global.context, this.peer))
|
|
@@ -117,30 +116,12 @@ export class TSInterfaceDeclaration extends TypedStatement {
|
|
|
117
116
|
global.generatedEs2panda._TSInterfaceDeclarationSetValueExtends(global.context, this.peer, passNode(_extends), index)
|
|
118
117
|
return this
|
|
119
118
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
global.generatedEs2panda._TSInterfaceDeclarationEmplaceDecorators(global.context, this.peer, passNode(decorators))
|
|
123
|
-
return this
|
|
119
|
+
get hasAnnotations(): boolean {
|
|
120
|
+
return global.generatedEs2panda._TSInterfaceDeclarationHasAnnotationsConst(global.context, this.peer)
|
|
124
121
|
}
|
|
125
122
|
/** @deprecated */
|
|
126
|
-
|
|
127
|
-
global.generatedEs2panda.
|
|
128
|
-
return this
|
|
129
|
-
}
|
|
130
|
-
/** @deprecated */
|
|
131
|
-
setValueDecorators(decorators: Decorator | undefined, index: number): this {
|
|
132
|
-
global.generatedEs2panda._TSInterfaceDeclarationSetValueDecorators(global.context, this.peer, passNode(decorators), index)
|
|
133
|
-
return this
|
|
134
|
-
}
|
|
135
|
-
get decorators(): readonly Decorator[] {
|
|
136
|
-
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationDecorators(global.context, this.peer))
|
|
137
|
-
}
|
|
138
|
-
get decoratorsForUpdate(): readonly Decorator[] {
|
|
139
|
-
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationDecoratorsForUpdate(global.context, this.peer))
|
|
140
|
-
}
|
|
141
|
-
/** @deprecated */
|
|
142
|
-
emplaceAnnotations(source?: AnnotationUsage): this {
|
|
143
|
-
global.generatedEs2panda._TSInterfaceDeclarationEmplaceAnnotations(global.context, this.peer, passNode(source))
|
|
123
|
+
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
124
|
+
global.generatedEs2panda._TSInterfaceDeclarationEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
144
125
|
return this
|
|
145
126
|
}
|
|
146
127
|
/** @deprecated */
|
|
@@ -149,15 +130,15 @@ export class TSInterfaceDeclaration extends TypedStatement {
|
|
|
149
130
|
return this
|
|
150
131
|
}
|
|
151
132
|
/** @deprecated */
|
|
152
|
-
|
|
153
|
-
global.generatedEs2panda.
|
|
133
|
+
dumpAnnotations(dumper?: SrcDumper): this {
|
|
134
|
+
global.generatedEs2panda._TSInterfaceDeclarationDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
154
135
|
return this
|
|
155
136
|
}
|
|
156
137
|
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
157
|
-
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotationsForUpdate(global.context, this.peer))
|
|
138
|
+
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
158
139
|
}
|
|
159
140
|
get annotations(): readonly AnnotationUsage[] {
|
|
160
|
-
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotations(global.context, this.peer))
|
|
141
|
+
return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
161
142
|
}
|
|
162
143
|
/** @deprecated */
|
|
163
144
|
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
@@ -169,11 +150,6 @@ export class TSInterfaceDeclaration extends TypedStatement {
|
|
|
169
150
|
global.generatedEs2panda._TSInterfaceDeclarationSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
170
151
|
return this
|
|
171
152
|
}
|
|
172
|
-
/** @deprecated */
|
|
173
|
-
addAnnotations(annotations?: AnnotationUsage): this {
|
|
174
|
-
global.generatedEs2panda._TSInterfaceDeclarationAddAnnotations(global.context, this.peer, passNode(annotations))
|
|
175
|
-
return this
|
|
176
|
-
}
|
|
177
153
|
protected readonly brandTSInterfaceDeclaration: undefined
|
|
178
154
|
}
|
|
179
155
|
export function isTSInterfaceDeclaration(node: object | undefined): node is TSInterfaceDeclaration {
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -52,7 +51,7 @@ export class TSMappedType extends TypeNode {
|
|
|
52
51
|
return result
|
|
53
52
|
}
|
|
54
53
|
get typeParameter(): TSTypeParameter | undefined {
|
|
55
|
-
return unpackNode(global.generatedEs2panda._TSMappedTypeTypeParameter(global.context, this.peer))
|
|
54
|
+
return unpackNode(global.generatedEs2panda._TSMappedTypeTypeParameter(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER)
|
|
56
55
|
}
|
|
57
56
|
get typeAnnotation(): TypeNode | undefined {
|
|
58
57
|
return unpackNode(global.generatedEs2panda._TSMappedTypeTypeAnnotation(global.context, this.peer))
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -56,7 +55,7 @@ export class TSMethodSignature extends AstNode {
|
|
|
56
55
|
return unpackNode(global.generatedEs2panda._TSMethodSignatureKey(global.context, this.peer))
|
|
57
56
|
}
|
|
58
57
|
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
59
|
-
return unpackNode(global.generatedEs2panda._TSMethodSignatureTypeParams(global.context, this.peer))
|
|
58
|
+
return unpackNode(global.generatedEs2panda._TSMethodSignatureTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
|
|
60
59
|
}
|
|
61
60
|
get params(): readonly Expression[] {
|
|
62
61
|
return unpackNodeArray(global.generatedEs2panda._TSMethodSignatureParamsConst(global.context, this.peer))
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -54,13 +53,13 @@ export class TSQualifiedName extends Expression {
|
|
|
54
53
|
return unpackNode(global.generatedEs2panda._TSQualifiedNameLeft(global.context, this.peer))
|
|
55
54
|
}
|
|
56
55
|
get right(): Identifier | undefined {
|
|
57
|
-
return unpackNode(global.generatedEs2panda._TSQualifiedNameRight(global.context, this.peer))
|
|
56
|
+
return unpackNode(global.generatedEs2panda._TSQualifiedNameRight(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
58
57
|
}
|
|
59
58
|
get name(): string {
|
|
60
59
|
return unpackString(global.generatedEs2panda._TSQualifiedNameNameConst(global.context, this.peer))
|
|
61
60
|
}
|
|
62
61
|
get resolveLeftMostQualifiedName(): TSQualifiedName | undefined {
|
|
63
|
-
return unpackNode(global.generatedEs2panda._TSQualifiedNameResolveLeftMostQualifiedName(global.context, this.peer))
|
|
62
|
+
return unpackNode(global.generatedEs2panda._TSQualifiedNameResolveLeftMostQualifiedName(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_QUALIFIED_NAME)
|
|
64
63
|
}
|
|
65
64
|
protected readonly brandTSQualifiedName: undefined
|
|
66
65
|
}
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -55,7 +54,7 @@ export class TSSignatureDeclaration extends TypedAstNode {
|
|
|
55
54
|
return result
|
|
56
55
|
}
|
|
57
56
|
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
58
|
-
return unpackNode(global.generatedEs2panda._TSSignatureDeclarationTypeParams(global.context, this.peer))
|
|
57
|
+
return unpackNode(global.generatedEs2panda._TSSignatureDeclarationTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
|
|
59
58
|
}
|
|
60
59
|
get params(): readonly Expression[] {
|
|
61
60
|
return unpackNodeArray(global.generatedEs2panda._TSSignatureDeclarationParamsConst(global.context, this.peer))
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -34,10 +33,10 @@ import {
|
|
|
34
33
|
|
|
35
34
|
import { AnnotatedStatement } from "./AnnotatedStatement"
|
|
36
35
|
import { AnnotationUsage } from "./AnnotationUsage"
|
|
37
|
-
import { Decorator } from "./Decorator"
|
|
38
36
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
39
37
|
import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
40
38
|
import { Identifier } from "./Identifier"
|
|
39
|
+
import { SrcDumper } from "./SrcDumper"
|
|
41
40
|
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
42
41
|
import { TypeNode } from "./TypeNode"
|
|
43
42
|
|
|
@@ -85,30 +84,35 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement {
|
|
|
85
84
|
return result
|
|
86
85
|
}
|
|
87
86
|
get id(): Identifier | undefined {
|
|
88
|
-
return unpackNode(global.generatedEs2panda._TSTypeAliasDeclarationId(global.context, this.peer))
|
|
87
|
+
return unpackNode(global.generatedEs2panda._TSTypeAliasDeclarationId(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
89
88
|
}
|
|
90
89
|
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
91
|
-
return unpackNode(global.generatedEs2panda._TSTypeAliasDeclarationTypeParamsConst(global.context, this.peer))
|
|
92
|
-
}
|
|
93
|
-
get decorators(): readonly Decorator[] {
|
|
94
|
-
return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationDecoratorsConst(global.context, this.peer))
|
|
90
|
+
return unpackNode(global.generatedEs2panda._TSTypeAliasDeclarationTypeParamsConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
|
|
95
91
|
}
|
|
96
92
|
/** @deprecated */
|
|
97
93
|
setTypeParameters(typeParams?: TSTypeParameterDeclaration): this {
|
|
98
94
|
global.generatedEs2panda._TSTypeAliasDeclarationSetTypeParameters(global.context, this.peer, passNode(typeParams))
|
|
99
95
|
return this
|
|
100
96
|
}
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
/** @deprecated */
|
|
98
|
+
clearTypeParamterTypes(): this {
|
|
99
|
+
global.generatedEs2panda._TSTypeAliasDeclarationClearTypeParamterTypes(global.context, this.peer)
|
|
100
|
+
return this
|
|
101
|
+
}
|
|
102
|
+
get typeAnnotation(): TypeNode {
|
|
103
|
+
return unpackNonNullableNode(global.generatedEs2panda._TSTypeAliasDeclarationTypeAnnotationConst(global.context, this.peer))
|
|
103
104
|
}
|
|
104
105
|
/** @deprecated */
|
|
105
|
-
|
|
106
|
-
global.generatedEs2panda.
|
|
106
|
+
setTsTypeAnnotation(typeAnnotation?: TypeNode): this {
|
|
107
|
+
global.generatedEs2panda._TSTypeAliasDeclarationSetTsTypeAnnotation(global.context, this.peer, passNode(typeAnnotation))
|
|
107
108
|
return this
|
|
108
109
|
}
|
|
110
|
+
get hasAnnotations(): boolean {
|
|
111
|
+
return global.generatedEs2panda._TSTypeAliasDeclarationHasAnnotationsConst(global.context, this.peer)
|
|
112
|
+
}
|
|
109
113
|
/** @deprecated */
|
|
110
|
-
|
|
111
|
-
global.generatedEs2panda.
|
|
114
|
+
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
115
|
+
global.generatedEs2panda._TSTypeAliasDeclarationEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
112
116
|
return this
|
|
113
117
|
}
|
|
114
118
|
/** @deprecated */
|
|
@@ -117,42 +121,24 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement {
|
|
|
117
121
|
return this
|
|
118
122
|
}
|
|
119
123
|
/** @deprecated */
|
|
120
|
-
|
|
121
|
-
global.generatedEs2panda.
|
|
124
|
+
dumpAnnotations(dumper?: SrcDumper): this {
|
|
125
|
+
global.generatedEs2panda._TSTypeAliasDeclarationDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
122
126
|
return this
|
|
123
127
|
}
|
|
124
128
|
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
125
|
-
return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationAnnotationsForUpdate(global.context, this.peer))
|
|
129
|
+
return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
126
130
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
global.generatedEs2panda._TSTypeAliasDeclarationClearTypeParamterTypes(global.context, this.peer)
|
|
130
|
-
return this
|
|
131
|
-
}
|
|
132
|
-
/** @deprecated */
|
|
133
|
-
emplaceDecorators(decorators?: Decorator): this {
|
|
134
|
-
global.generatedEs2panda._TSTypeAliasDeclarationEmplaceDecorators(global.context, this.peer, passNode(decorators))
|
|
135
|
-
return this
|
|
136
|
-
}
|
|
137
|
-
/** @deprecated */
|
|
138
|
-
clearDecorators(): this {
|
|
139
|
-
global.generatedEs2panda._TSTypeAliasDeclarationClearDecorators(global.context, this.peer)
|
|
140
|
-
return this
|
|
131
|
+
get annotations(): readonly AnnotationUsage[] {
|
|
132
|
+
return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
141
133
|
}
|
|
142
134
|
/** @deprecated */
|
|
143
|
-
|
|
144
|
-
global.generatedEs2panda.
|
|
135
|
+
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
136
|
+
global.generatedEs2panda._TSTypeAliasDeclarationSetAnnotations(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
145
137
|
return this
|
|
146
138
|
}
|
|
147
|
-
get decoratorsForUpdate(): readonly Decorator[] {
|
|
148
|
-
return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationDecoratorsForUpdate(global.context, this.peer))
|
|
149
|
-
}
|
|
150
|
-
get typeAnnotation(): TypeNode {
|
|
151
|
-
return unpackNonNullableNode(global.generatedEs2panda._TSTypeAliasDeclarationTypeAnnotationConst(global.context, this.peer))
|
|
152
|
-
}
|
|
153
139
|
/** @deprecated */
|
|
154
|
-
|
|
155
|
-
global.generatedEs2panda.
|
|
140
|
+
setAnnotations1(annotationList: readonly AnnotationUsage[]): this {
|
|
141
|
+
global.generatedEs2panda._TSTypeAliasDeclarationSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
156
142
|
return this
|
|
157
143
|
}
|
|
158
144
|
protected readonly brandTSTypeAliasDeclaration: undefined
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -37,6 +36,7 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
37
36
|
import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
38
37
|
import { Expression } from "./Expression"
|
|
39
38
|
import { Identifier } from "./Identifier"
|
|
39
|
+
import { SrcDumper } from "./SrcDumper"
|
|
40
40
|
import { TypeNode } from "./TypeNode"
|
|
41
41
|
|
|
42
42
|
export class TSTypeParameter extends Expression {
|
|
@@ -59,7 +59,7 @@ export class TSTypeParameter extends Expression {
|
|
|
59
59
|
return result
|
|
60
60
|
}
|
|
61
61
|
get name(): Identifier | undefined {
|
|
62
|
-
return unpackNode(global.generatedEs2panda._TSTypeParameterName(global.context, this.peer))
|
|
62
|
+
return unpackNode(global.generatedEs2panda._TSTypeParameterName(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
63
63
|
}
|
|
64
64
|
get constraint(): TypeNode | undefined {
|
|
65
65
|
return unpackNode(global.generatedEs2panda._TSTypeParameterConstraint(global.context, this.peer))
|
|
@@ -77,9 +77,12 @@ export class TSTypeParameter extends Expression {
|
|
|
77
77
|
global.generatedEs2panda._TSTypeParameterSetDefaultType(global.context, this.peer, passNode(defaultType))
|
|
78
78
|
return this
|
|
79
79
|
}
|
|
80
|
+
get hasAnnotations(): boolean {
|
|
81
|
+
return global.generatedEs2panda._TSTypeParameterHasAnnotationsConst(global.context, this.peer)
|
|
82
|
+
}
|
|
80
83
|
/** @deprecated */
|
|
81
|
-
|
|
82
|
-
global.generatedEs2panda.
|
|
84
|
+
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
85
|
+
global.generatedEs2panda._TSTypeParameterEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
83
86
|
return this
|
|
84
87
|
}
|
|
85
88
|
/** @deprecated */
|
|
@@ -88,15 +91,15 @@ export class TSTypeParameter extends Expression {
|
|
|
88
91
|
return this
|
|
89
92
|
}
|
|
90
93
|
/** @deprecated */
|
|
91
|
-
|
|
92
|
-
global.generatedEs2panda.
|
|
94
|
+
dumpAnnotations(dumper?: SrcDumper): this {
|
|
95
|
+
global.generatedEs2panda._TSTypeParameterDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
93
96
|
return this
|
|
94
97
|
}
|
|
95
98
|
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
96
|
-
return unpackNodeArray(global.generatedEs2panda._TSTypeParameterAnnotationsForUpdate(global.context, this.peer))
|
|
99
|
+
return unpackNodeArray(global.generatedEs2panda._TSTypeParameterAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
97
100
|
}
|
|
98
101
|
get annotations(): readonly AnnotationUsage[] {
|
|
99
|
-
return unpackNodeArray(global.generatedEs2panda._TSTypeParameterAnnotations(global.context, this.peer))
|
|
102
|
+
return unpackNodeArray(global.generatedEs2panda._TSTypeParameterAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
100
103
|
}
|
|
101
104
|
/** @deprecated */
|
|
102
105
|
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
@@ -108,11 +111,6 @@ export class TSTypeParameter extends Expression {
|
|
|
108
111
|
global.generatedEs2panda._TSTypeParameterSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
109
112
|
return this
|
|
110
113
|
}
|
|
111
|
-
/** @deprecated */
|
|
112
|
-
addAnnotations(annotations?: AnnotationUsage): this {
|
|
113
|
-
global.generatedEs2panda._TSTypeParameterAddAnnotations(global.context, this.peer, passNode(annotations))
|
|
114
|
-
return this
|
|
115
|
-
}
|
|
116
114
|
protected readonly brandTSTypeParameter: undefined
|
|
117
115
|
}
|
|
118
116
|
export function isTSTypeParameter(node: object | undefined): node is TSTypeParameter {
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
unpackNonNullableNode,
|
|
25
25
|
unpackNode,
|
|
26
26
|
unpackNodeArray,
|
|
27
|
-
assertValidPeer,
|
|
28
27
|
AstNode,
|
|
29
28
|
KNativePointer,
|
|
30
29
|
nodeByType,
|
|
@@ -51,7 +50,7 @@ export class TSTypeParameterDeclaration extends Expression {
|
|
|
51
50
|
return result
|
|
52
51
|
}
|
|
53
52
|
get params(): readonly TSTypeParameter[] {
|
|
54
|
-
return unpackNodeArray(global.generatedEs2panda._TSTypeParameterDeclarationParamsConst(global.context, this.peer))
|
|
53
|
+
return unpackNodeArray(global.generatedEs2panda._TSTypeParameterDeclarationParamsConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER)
|
|
55
54
|
}
|
|
56
55
|
/** @deprecated */
|
|
57
56
|
addParam(param?: TSTypeParameter): this {
|