@idlizer/arktscgen 2.1.9-arktscgen-5 → 2.1.9-arktscgen-8
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 +151 -0
- package/build/libarkts-copy/native/meson.build +11 -12
- package/build/libarkts-copy/native/meson_options.txt +1 -1
- package/build/libarkts-copy/native/mingw.cross +14 -0
- package/build/libarkts-copy/native/src/bridges.cc +77 -1
- package/build/libarkts-copy/native/src/common.cc +5 -5
- package/build/libarkts-copy/native/src/generated/bridges.cc +312 -33
- package/build/libarkts-copy/package.json +24 -20
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +19 -1
- package/build/libarkts-copy/src/arkts-api/ChainExpressionFilter.ts +2 -1
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +18 -12
- package/build/libarkts-copy/src/arkts-api/ProgramProvider.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +15 -26
- package/build/libarkts-copy/src/arkts-api/index.ts +2 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/BlockStatement.ts +0 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/CallExpression.ts +1 -22
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDefinition.ts +7 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassProperty.ts +1 -22
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSFunctionType.ts +2 -5
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSImportDeclaration.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSModule.ts +44 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSParameterExpression.ts +1 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/MethodDefinition.ts +3 -7
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +10 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +11 -7
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +3 -6
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +13 -12
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +35 -4
- package/build/libarkts-copy/src/arkts-api/plugins.ts +12 -3
- package/build/libarkts-copy/src/arkts-api/static/global.ts +2 -2
- package/build/libarkts-copy/src/{wrapper-compat/arkts-api → arkts-api}/static/globalUtils.ts +4 -4
- package/build/libarkts-copy/src/arkts-api/static/profiler.ts +0 -8
- package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +57 -0
- package/build/libarkts-copy/src/arkts-api/utilities/nativePtrDecoder.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +6 -8
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +153 -29
- package/build/libarkts-copy/src/arkts-api/visitor.ts +16 -10
- package/build/libarkts-copy/src/checkSdk.ts +15 -0
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +343 -321
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +93 -12
- package/build/libarkts-copy/src/generated/factory.ts +38 -25
- package/build/libarkts-copy/src/generated/index.ts +2 -0
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +15 -3
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +10 -2
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +11 -2
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +20 -4
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +10 -2
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +12 -9
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +77 -0
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +3 -1
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +29 -5
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +12 -3
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +14 -2
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +103 -0
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/Program.ts +8 -0
- package/build/libarkts-copy/src/generated/peers/Property.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +26 -9
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +12 -3
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +12 -3
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +29 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +11 -3
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +1 -1
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +1 -1
- package/build/libarkts-copy/src/index.ts +1 -4
- package/build/libarkts-copy/src/plugin-utils.ts +37 -37
- package/build/libarkts-copy/src/reexport-for-generated.ts +7 -0
- package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +14 -14
- package/build/libarkts-copy/src/ts-api/index.ts +1 -1
- package/build/libarkts-copy/src/ts-api/types.ts +56 -56
- package/build/libarkts-copy/src/ts-api/utilities/private.ts +6 -6
- package/build/libarkts-copy/src/ts-api/utilities/public.ts +3 -3
- package/build/libarkts-copy/src/ts-api/visitor/visitor.ts +4 -4
- package/build/libarkts-copy/src/utils.ts +13 -159
- package/build/libarkts-copy/src/wrapper-compat/README.md +4 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/index.ts +3 -4
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrayExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrowFunctionExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/AssignmentExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/BlockStatement.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/CallExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDefinition.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassProperty.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSFunctionType.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSImportDeclaration.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSParameterExpression.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ExpressionStatement.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/IfStatement.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MemberExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MethodDefinition.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/NumberLiteral.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ObjectExpression.ts +3 -3
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/Property.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ScriptFunction.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/StructDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSInterfaceDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeParameter.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TryStatement.ts +3 -3
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclaration.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclarator.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Diagnostic.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticInfo.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticKind.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/ImportPathManager.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Program.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourceRange.ts +2 -2
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SuggestionInfo.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/to-be-generated/MemberExpression.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/types.ts +10 -11
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/nativePtrDecoder.ts +1 -1
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/private.ts +4 -4
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/public.ts +6 -6
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/visitor.ts +10 -10
- package/lib/index.js +7194 -7097
- package/package.json +2 -2
- package/templates/Es2pandaNativeModule.ts +1 -1
- package/templates/bridges.cc +5 -0
- package/build/libarkts-copy/src/arkts-api/CheckedBackFilter.ts +0 -131
- package/build/libarkts-copy/src/arkts-api/CompileWithCache.ts +0 -193
- package/build/libarkts-copy/src/arkts-api/InferVoidReturnType.ts +0 -89
- package/build/libarkts-copy/src/arkts-api/SetBaseOverloads.ts +0 -44
- package/build/libarkts-copy/src/arkts-api/node-utilities/AnnotationUsage.ts +0 -29
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArrowFunctionExpression.ts +0 -49
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDeclaration.ts +0 -54
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +0 -68
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclaration.ts +0 -54
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/ArktsObject.ts +0 -45
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Config.ts +0 -53
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Context.ts +0 -60
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourcePosition.ts +0 -38
|
@@ -37,7 +37,7 @@ import { Expression } from "./Expression"
|
|
|
37
37
|
|
|
38
38
|
export class SequenceExpression extends Expression {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 61)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createSequenceExpression(sequence_arg: readonly Expression[]): SequenceExpression {
|
|
@@ -41,7 +41,7 @@ import { ValidationInfo } from "./ValidationInfo"
|
|
|
41
41
|
|
|
42
42
|
export class SpreadElement extends AnnotatedExpression {
|
|
43
43
|
constructor(pointer: KNativePointer) {
|
|
44
|
-
assertValidPeer(pointer,
|
|
44
|
+
assertValidPeer(pointer, 165)
|
|
45
45
|
super(pointer)
|
|
46
46
|
}
|
|
47
47
|
static createSpreadElement(nodeType: Es2pandaAstNodeType, argument?: Expression): SpreadElement {
|
|
@@ -37,7 +37,7 @@ import { Literal } from "./Literal"
|
|
|
37
37
|
|
|
38
38
|
export class StringLiteral extends Literal {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 62)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static create1StringLiteral(str: string): StringLiteral {
|
|
@@ -37,7 +37,7 @@ import { Expression } from "./Expression"
|
|
|
37
37
|
|
|
38
38
|
export class SuperExpression extends Expression {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 85)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createSuperExpression(): SuperExpression {
|
|
@@ -38,7 +38,7 @@ import { Statement } from "./Statement"
|
|
|
38
38
|
|
|
39
39
|
export class SwitchCaseStatement extends Statement {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 87)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createSwitchCaseStatement(test: Expression | undefined, consequent: readonly Statement[]): SwitchCaseStatement {
|
|
@@ -39,7 +39,7 @@ import { SwitchCaseStatement } from "./SwitchCaseStatement"
|
|
|
39
39
|
|
|
40
40
|
export class SwitchStatement extends Statement {
|
|
41
41
|
constructor(pointer: KNativePointer) {
|
|
42
|
-
assertValidPeer(pointer,
|
|
42
|
+
assertValidPeer(pointer, 88)
|
|
43
43
|
super(pointer)
|
|
44
44
|
}
|
|
45
45
|
static createSwitchStatement(discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[]): SwitchStatement {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSAnyKeyword extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 93)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSAnyKeyword(): TSAnyKeyword {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSArrayType extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 104)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSArrayType(elementType?: TypeNode): TSArrayType {
|
|
@@ -39,7 +39,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
39
39
|
|
|
40
40
|
export class TSAsExpression extends AnnotatedExpression {
|
|
41
41
|
constructor(pointer: KNativePointer) {
|
|
42
|
-
assertValidPeer(pointer,
|
|
42
|
+
assertValidPeer(pointer, 140)
|
|
43
43
|
super(pointer)
|
|
44
44
|
}
|
|
45
45
|
static createTSAsExpression(expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSBigintKeyword extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 100)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSBigintKeyword(): TSBigintKeyword {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSBooleanKeyword extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 95)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSBooleanKeyword(): TSBooleanKeyword {
|
|
@@ -38,7 +38,7 @@ import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation"
|
|
|
38
38
|
|
|
39
39
|
export class TSClassImplements extends Expression {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 141)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSClassImplements(expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements {
|
|
@@ -38,7 +38,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
38
38
|
|
|
39
39
|
export class TSConditionalType extends TypeNode {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 113)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSConditionalType(checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType {
|
|
@@ -40,7 +40,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
40
40
|
|
|
41
41
|
export class TSConstructorType extends TypeNode {
|
|
42
42
|
constructor(pointer: KNativePointer) {
|
|
43
|
-
assertValidPeer(pointer,
|
|
43
|
+
assertValidPeer(pointer, 128)
|
|
44
44
|
super(pointer)
|
|
45
45
|
}
|
|
46
46
|
static createTSConstructorType(signature: FunctionSignature | undefined, abstract: boolean): TSConstructorType {
|
|
@@ -36,15 +36,16 @@ import { ClassDefinition } from "./ClassDefinition"
|
|
|
36
36
|
import { Decorator } from "./Decorator"
|
|
37
37
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
38
38
|
import { Identifier } from "./Identifier"
|
|
39
|
+
import { TypeNode } from "./TypeNode"
|
|
39
40
|
import { TypedStatement } from "./TypedStatement"
|
|
40
41
|
|
|
41
42
|
export class TSEnumDeclaration extends TypedStatement {
|
|
42
43
|
constructor(pointer: KNativePointer) {
|
|
43
|
-
assertValidPeer(pointer,
|
|
44
|
+
assertValidPeer(pointer, 89)
|
|
44
45
|
super(pointer)
|
|
45
46
|
}
|
|
46
|
-
static
|
|
47
|
-
const result: TSEnumDeclaration = new TSEnumDeclaration(global.generatedEs2panda.
|
|
47
|
+
static create1TSEnumDeclaration(key: Identifier | undefined, members: readonly AstNode[], isConst: boolean, isStatic: boolean, isDeclare: boolean, typeNode?: TypeNode): TSEnumDeclaration {
|
|
48
|
+
const result: TSEnumDeclaration = new TSEnumDeclaration(global.generatedEs2panda._CreateTSEnumDeclaration1(global.context, passNode(key), passNodeArray(members), members.length, isConst, isStatic, isDeclare, passNode(typeNode)))
|
|
48
49
|
result.setChildrenParentPtr()
|
|
49
50
|
return result
|
|
50
51
|
}
|
|
@@ -53,6 +54,14 @@ export class TSEnumDeclaration extends TypedStatement {
|
|
|
53
54
|
result.setChildrenParentPtr()
|
|
54
55
|
return result
|
|
55
56
|
}
|
|
57
|
+
static update1TSEnumDeclaration(original: TSEnumDeclaration | undefined, key: Identifier | undefined, members: readonly AstNode[], isConst: boolean, isStatic: boolean, isDeclare: boolean, typeNode?: TypeNode): TSEnumDeclaration {
|
|
58
|
+
const result: TSEnumDeclaration = new TSEnumDeclaration(global.generatedEs2panda._UpdateTSEnumDeclaration1(global.context, passNode(original), passNode(key), passNodeArray(members), members.length, isConst, isStatic, isDeclare, passNode(typeNode)))
|
|
59
|
+
result.setChildrenParentPtr()
|
|
60
|
+
return result
|
|
61
|
+
}
|
|
62
|
+
get typeNodes(): TypeNode | undefined {
|
|
63
|
+
return unpackNode(global.generatedEs2panda._TSEnumDeclarationTypeNodes(global.context, this.peer))
|
|
64
|
+
}
|
|
56
65
|
get key(): Identifier | undefined {
|
|
57
66
|
return unpackNode(global.generatedEs2panda._TSEnumDeclarationKey(global.context, this.peer))
|
|
58
67
|
}
|
|
@@ -38,7 +38,7 @@ import { Statement } from "./Statement"
|
|
|
38
38
|
|
|
39
39
|
export class TSEnumMember extends Statement {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 90)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static create1TSEnumMember(key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember {
|
|
@@ -37,7 +37,7 @@ import { Expression } from "./Expression"
|
|
|
37
37
|
|
|
38
38
|
export class TSExternalModuleReference extends Expression {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 91)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSExternalModuleReference(expr?: Expression): TSExternalModuleReference {
|
|
@@ -40,7 +40,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
40
40
|
|
|
41
41
|
export class TSFunctionType extends TypeNode {
|
|
42
42
|
constructor(pointer: KNativePointer) {
|
|
43
|
-
assertValidPeer(pointer,
|
|
43
|
+
assertValidPeer(pointer, 127)
|
|
44
44
|
super(pointer)
|
|
45
45
|
}
|
|
46
46
|
static createTSFunctionType(signature?: FunctionSignature): TSFunctionType {
|
|
@@ -39,7 +39,7 @@ import { Statement } from "./Statement"
|
|
|
39
39
|
|
|
40
40
|
export class TSImportEqualsDeclaration extends Statement {
|
|
41
41
|
constructor(pointer: KNativePointer) {
|
|
42
|
-
assertValidPeer(pointer,
|
|
42
|
+
assertValidPeer(pointer, 126)
|
|
43
43
|
super(pointer)
|
|
44
44
|
}
|
|
45
45
|
static createTSImportEqualsDeclaration(id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration {
|
|
@@ -39,7 +39,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
39
39
|
|
|
40
40
|
export class TSImportType extends TypeNode {
|
|
41
41
|
constructor(pointer: KNativePointer) {
|
|
42
|
-
assertValidPeer(pointer,
|
|
42
|
+
assertValidPeer(pointer, 114)
|
|
43
43
|
super(pointer)
|
|
44
44
|
}
|
|
45
45
|
static createTSImportType(param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType {
|
|
@@ -40,7 +40,7 @@ import { TypedAstNode } from "./TypedAstNode"
|
|
|
40
40
|
|
|
41
41
|
export class TSIndexSignature extends TypedAstNode {
|
|
42
42
|
constructor(pointer: KNativePointer) {
|
|
43
|
-
assertValidPeer(pointer,
|
|
43
|
+
assertValidPeer(pointer, 138)
|
|
44
44
|
super(pointer)
|
|
45
45
|
}
|
|
46
46
|
static createTSIndexSignature(param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSIndexedAccessType extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 132)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSIndexedAccessType(objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType {
|
|
@@ -38,7 +38,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
38
38
|
|
|
39
39
|
export class TSInferType extends TypeNode {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 112)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSInferType(typeParam?: TSTypeParameter): TSInferType {
|
|
@@ -37,7 +37,7 @@ import { Expression } from "./Expression"
|
|
|
37
37
|
|
|
38
38
|
export class TSInterfaceBody extends Expression {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 134)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSInterfaceBody(body: readonly AstNode[]): TSInterfaceBody {
|
|
@@ -36,6 +36,7 @@ import { AnnotationUsage } from "./AnnotationUsage"
|
|
|
36
36
|
import { ClassDeclaration } from "./ClassDeclaration"
|
|
37
37
|
import { Decorator } from "./Decorator"
|
|
38
38
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
39
|
+
import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
39
40
|
import { Identifier } from "./Identifier"
|
|
40
41
|
import { TSInterfaceBody } from "./TSInterfaceBody"
|
|
41
42
|
import { TSInterfaceHeritage } from "./TSInterfaceHeritage"
|
|
@@ -44,16 +45,24 @@ import { TypedStatement } from "./TypedStatement"
|
|
|
44
45
|
|
|
45
46
|
export class TSInterfaceDeclaration extends TypedStatement {
|
|
46
47
|
constructor(pointer: KNativePointer) {
|
|
47
|
-
assertValidPeer(pointer,
|
|
48
|
+
assertValidPeer(pointer, 133)
|
|
48
49
|
super(pointer)
|
|
49
50
|
}
|
|
50
|
-
static createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration {
|
|
51
|
+
static createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean, modifierFlags?: Es2pandaModifierFlags): TSInterfaceDeclaration {
|
|
51
52
|
const result: TSInterfaceDeclaration = new TSInterfaceDeclaration(global.generatedEs2panda._CreateTSInterfaceDeclaration(global.context, passNodeArray(_extends), _extends.length, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal))
|
|
53
|
+
if (modifierFlags)
|
|
54
|
+
{
|
|
55
|
+
result.modifierFlags = modifierFlags
|
|
56
|
+
}
|
|
52
57
|
result.setChildrenParentPtr()
|
|
53
58
|
return result
|
|
54
59
|
}
|
|
55
|
-
static updateTSInterfaceDeclaration(original: TSInterfaceDeclaration | undefined, _extends: readonly TSInterfaceHeritage[], id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration {
|
|
60
|
+
static updateTSInterfaceDeclaration(original: TSInterfaceDeclaration | undefined, _extends: readonly TSInterfaceHeritage[], id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean, modifierFlags?: Es2pandaModifierFlags): TSInterfaceDeclaration {
|
|
56
61
|
const result: TSInterfaceDeclaration = new TSInterfaceDeclaration(global.generatedEs2panda._UpdateTSInterfaceDeclaration(global.context, passNode(original), passNodeArray(_extends), _extends.length, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal))
|
|
62
|
+
if (modifierFlags)
|
|
63
|
+
{
|
|
64
|
+
result.modifierFlags = modifierFlags
|
|
65
|
+
}
|
|
57
66
|
result.setChildrenParentPtr()
|
|
58
67
|
return result
|
|
59
68
|
}
|
|
@@ -38,7 +38,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
38
38
|
|
|
39
39
|
export class TSInterfaceHeritage extends Expression {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 135)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSInterfaceHeritage(expr?: TypeNode): TSInterfaceHeritage {
|
|
@@ -38,7 +38,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
38
38
|
|
|
39
39
|
export class TSIntersectionType extends TypeNode {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 115)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSIntersectionType(types: readonly Expression[]): TSIntersectionType {
|
|
@@ -38,7 +38,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
38
38
|
|
|
39
39
|
export class TSLiteralType extends TypeNode {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 111)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSLiteralType(literal?: Expression): TSLiteralType {
|
|
@@ -39,7 +39,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
39
39
|
|
|
40
40
|
export class TSMappedType extends TypeNode {
|
|
41
41
|
constructor(pointer: KNativePointer) {
|
|
42
|
-
assertValidPeer(pointer,
|
|
42
|
+
assertValidPeer(pointer, 116)
|
|
43
43
|
super(pointer)
|
|
44
44
|
}
|
|
45
45
|
static createTSMappedType(typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType {
|
|
@@ -40,7 +40,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
40
40
|
|
|
41
41
|
export class TSMethodSignature extends AstNode {
|
|
42
42
|
constructor(pointer: KNativePointer) {
|
|
43
|
-
assertValidPeer(pointer,
|
|
43
|
+
assertValidPeer(pointer, 108)
|
|
44
44
|
super(pointer)
|
|
45
45
|
}
|
|
46
46
|
static createTSMethodSignature(key: Expression | undefined, signature: FunctionSignature | undefined, computed: boolean, optional_arg: boolean): TSMethodSignature {
|
|
@@ -37,7 +37,7 @@ import { Statement } from "./Statement"
|
|
|
37
37
|
|
|
38
38
|
export class TSModuleBlock extends Statement {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 117)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSModuleBlock(statements: readonly Statement[]): TSModuleBlock {
|
|
@@ -38,7 +38,7 @@ import { Statement } from "./Statement"
|
|
|
38
38
|
|
|
39
39
|
export class TSModuleDeclaration extends Statement {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 125)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSModuleDeclaration(name: Expression | undefined, body: Statement | undefined, declare: boolean, _global: boolean): TSModuleDeclaration {
|
|
@@ -38,7 +38,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
38
38
|
|
|
39
39
|
export class TSNamedTupleMember extends TypeNode {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 137)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSNamedTupleMember(label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSNeverKeyword extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 101)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSNeverKeyword(): TSNeverKeyword {
|
|
@@ -37,7 +37,7 @@ import { Expression } from "./Expression"
|
|
|
37
37
|
|
|
38
38
|
export class TSNonNullExpression extends Expression {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 102)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSNonNullExpression(expr?: Expression): TSNonNullExpression {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSNullKeyword extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 103)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSNullKeyword(): TSNullKeyword {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSNumberKeyword extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 92)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSNumberKeyword(): TSNumberKeyword {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSObjectKeyword extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 99)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSObjectKeyword(): TSObjectKeyword {
|
|
@@ -38,7 +38,7 @@ import { Expression } from "./Expression"
|
|
|
38
38
|
|
|
39
39
|
export class TSParameterProperty extends Expression {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 124)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty {
|
|
@@ -38,7 +38,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
38
38
|
|
|
39
39
|
export class TSParenthesizedType extends TypeNode {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 110)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSParenthesizedType(type?: TypeNode): TSParenthesizedType {
|
|
@@ -39,7 +39,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
39
39
|
|
|
40
40
|
export class TSPropertySignature extends AnnotatedAstNode {
|
|
41
41
|
constructor(pointer: KNativePointer) {
|
|
42
|
-
assertValidPeer(pointer,
|
|
42
|
+
assertValidPeer(pointer, 107)
|
|
43
43
|
super(pointer)
|
|
44
44
|
}
|
|
45
45
|
static createTSPropertySignature(key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature {
|
|
@@ -38,7 +38,7 @@ import { Identifier } from "./Identifier"
|
|
|
38
38
|
|
|
39
39
|
export class TSQualifiedName extends Expression {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 131)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSQualifiedName(left?: Expression, right?: Identifier): TSQualifiedName {
|
|
@@ -42,7 +42,7 @@ import { TypedAstNode } from "./TypedAstNode"
|
|
|
42
42
|
|
|
43
43
|
export class TSSignatureDeclaration extends TypedAstNode {
|
|
44
44
|
constructor(pointer: KNativePointer) {
|
|
45
|
-
assertValidPeer(pointer,
|
|
45
|
+
assertValidPeer(pointer, 109)
|
|
46
46
|
super(pointer)
|
|
47
47
|
}
|
|
48
48
|
static createTSSignatureDeclaration(kind: Es2pandaTSSignatureDeclarationKind, signature?: FunctionSignature): TSSignatureDeclaration {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSStringKeyword extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 94)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSStringKeyword(): TSStringKeyword {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSThisType extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 118)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSThisType(): TSThisType {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSTupleType extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 136)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSTupleType(elementTypes: readonly TypeNode[]): TSTupleType {
|
|
@@ -36,27 +36,52 @@ import { AnnotatedStatement } from "./AnnotatedStatement"
|
|
|
36
36
|
import { AnnotationUsage } from "./AnnotationUsage"
|
|
37
37
|
import { Decorator } from "./Decorator"
|
|
38
38
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
39
|
+
import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
39
40
|
import { Identifier } from "./Identifier"
|
|
40
41
|
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
41
42
|
import { TypeNode } from "./TypeNode"
|
|
42
43
|
|
|
43
44
|
export class TSTypeAliasDeclaration extends AnnotatedStatement {
|
|
44
45
|
constructor(pointer: KNativePointer) {
|
|
45
|
-
assertValidPeer(pointer,
|
|
46
|
+
assertValidPeer(pointer, 129)
|
|
46
47
|
super(pointer)
|
|
47
48
|
}
|
|
48
|
-
static createTSTypeAliasDeclaration(id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration {
|
|
49
|
+
static createTSTypeAliasDeclaration(id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode, annotations?: readonly AnnotationUsage[], modifierFlags?: Es2pandaModifierFlags): TSTypeAliasDeclaration {
|
|
49
50
|
const result: TSTypeAliasDeclaration = new TSTypeAliasDeclaration(global.generatedEs2panda._CreateTSTypeAliasDeclaration(global.context, passNode(id), passNode(typeParams), passNode(typeAnnotation)))
|
|
51
|
+
if (annotations)
|
|
52
|
+
{
|
|
53
|
+
result.setAnnotations(annotations)
|
|
54
|
+
}
|
|
55
|
+
if (modifierFlags)
|
|
56
|
+
{
|
|
57
|
+
result.modifierFlags = modifierFlags
|
|
58
|
+
}
|
|
50
59
|
result.setChildrenParentPtr()
|
|
51
60
|
return result
|
|
52
61
|
}
|
|
53
|
-
static updateTSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration {
|
|
62
|
+
static updateTSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode, annotations?: readonly AnnotationUsage[], modifierFlags?: Es2pandaModifierFlags): TSTypeAliasDeclaration {
|
|
54
63
|
const result: TSTypeAliasDeclaration = new TSTypeAliasDeclaration(global.generatedEs2panda._UpdateTSTypeAliasDeclaration(global.context, passNode(original), passNode(id), passNode(typeParams), passNode(typeAnnotation)))
|
|
64
|
+
if (annotations)
|
|
65
|
+
{
|
|
66
|
+
result.setAnnotations(annotations)
|
|
67
|
+
}
|
|
68
|
+
if (modifierFlags)
|
|
69
|
+
{
|
|
70
|
+
result.modifierFlags = modifierFlags
|
|
71
|
+
}
|
|
55
72
|
result.setChildrenParentPtr()
|
|
56
73
|
return result
|
|
57
74
|
}
|
|
58
|
-
static update1TSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier): TSTypeAliasDeclaration {
|
|
75
|
+
static update1TSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier, annotations?: readonly AnnotationUsage[], modifierFlags?: Es2pandaModifierFlags): TSTypeAliasDeclaration {
|
|
59
76
|
const result: TSTypeAliasDeclaration = new TSTypeAliasDeclaration(global.generatedEs2panda._UpdateTSTypeAliasDeclaration1(global.context, passNode(original), passNode(id)))
|
|
77
|
+
if (annotations)
|
|
78
|
+
{
|
|
79
|
+
result.setAnnotations(annotations)
|
|
80
|
+
}
|
|
81
|
+
if (modifierFlags)
|
|
82
|
+
{
|
|
83
|
+
result.modifierFlags = modifierFlags
|
|
84
|
+
}
|
|
60
85
|
result.setChildrenParentPtr()
|
|
61
86
|
return result
|
|
62
87
|
}
|
|
@@ -39,7 +39,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
39
39
|
|
|
40
40
|
export class TSTypeAssertion extends AnnotatedExpression {
|
|
41
41
|
constructor(pointer: KNativePointer) {
|
|
42
|
-
assertValidPeer(pointer,
|
|
42
|
+
assertValidPeer(pointer, 142)
|
|
43
43
|
super(pointer)
|
|
44
44
|
}
|
|
45
45
|
static createTSTypeAssertion(typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion {
|
|
@@ -37,7 +37,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
37
37
|
|
|
38
38
|
export class TSTypeLiteral extends TypeNode {
|
|
39
39
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 106)
|
|
41
41
|
super(pointer)
|
|
42
42
|
}
|
|
43
43
|
static createTSTypeLiteral(members: readonly AstNode[]): TSTypeLiteral {
|
|
@@ -38,7 +38,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
38
38
|
|
|
39
39
|
export class TSTypeOperator extends TypeNode {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 119)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createTSTypeOperator(type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator {
|
|
@@ -41,7 +41,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
41
41
|
|
|
42
42
|
export class TSTypeParameter extends Expression {
|
|
43
43
|
constructor(pointer: KNativePointer) {
|
|
44
|
-
assertValidPeer(pointer,
|
|
44
|
+
assertValidPeer(pointer, 120)
|
|
45
45
|
super(pointer)
|
|
46
46
|
}
|
|
47
47
|
static create1TSTypeParameter(name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter {
|