@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
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
KLong
|
|
29
29
|
} from "@koalaui/interop"
|
|
30
30
|
|
|
31
|
-
//
|
|
31
|
+
// Improve: this type should be in interop
|
|
32
32
|
export type KNativePointerArray = BigUint64Array
|
|
33
33
|
|
|
34
34
|
export class Es2pandaNativeModule {
|
|
@@ -182,12 +182,6 @@ export class Es2pandaNativeModule {
|
|
|
182
182
|
_ETSFunctionTypeFlagsConst(context: KNativePointer, receiver: KNativePointer): KInt {
|
|
183
183
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
184
184
|
}
|
|
185
|
-
_ETSFunctionTypeIsThrowingConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
186
|
-
throw new Error("This methods was not overloaded by native module initialization")
|
|
187
|
-
}
|
|
188
|
-
_ETSFunctionTypeIsRethrowingConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
189
|
-
throw new Error("This methods was not overloaded by native module initialization")
|
|
190
|
-
}
|
|
191
185
|
_ETSFunctionTypeIsExtensionFunctionConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
192
186
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
193
187
|
}
|
|
@@ -278,9 +272,18 @@ export class Es2pandaNativeModule {
|
|
|
278
272
|
_UpdateTSEnumDeclaration(context: KNativePointer, original: KNativePointer, key: KNativePointer, members: BigUint64Array, membersSequenceLength: KUInt, isConst: KBoolean, isStatic: KBoolean, isDeclare: KBoolean): KNativePointer {
|
|
279
273
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
280
274
|
}
|
|
275
|
+
_CreateTSEnumDeclaration1(context: KNativePointer, key: KNativePointer, members: BigUint64Array, membersSequenceLength: KUInt, isConst: KBoolean, isStatic: KBoolean, isDeclare: KBoolean, typeNode: KNativePointer): KNativePointer {
|
|
276
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
277
|
+
}
|
|
278
|
+
_UpdateTSEnumDeclaration1(context: KNativePointer, original: KNativePointer, key: KNativePointer, members: BigUint64Array, membersSequenceLength: KUInt, isConst: KBoolean, isStatic: KBoolean, isDeclare: KBoolean, typeNode: KNativePointer): KNativePointer {
|
|
279
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
280
|
+
}
|
|
281
281
|
_TSEnumDeclarationKeyConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
282
282
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
283
283
|
}
|
|
284
|
+
_TSEnumDeclarationTypeNodes(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
285
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
286
|
+
}
|
|
284
287
|
_TSEnumDeclarationKey(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
285
288
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
286
289
|
}
|
|
@@ -1310,13 +1313,10 @@ export class Es2pandaNativeModule {
|
|
|
1310
1313
|
_ScriptFunctionHasThrowStatementConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
1311
1314
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
1312
1315
|
}
|
|
1313
|
-
|
|
1314
|
-
throw new Error("This methods was not overloaded by native module initialization")
|
|
1315
|
-
}
|
|
1316
|
-
_ScriptFunctionIsRethrowingConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
1316
|
+
_ScriptFunctionIsTrailingLambdaConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
1317
1317
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
1318
1318
|
}
|
|
1319
|
-
|
|
1319
|
+
_ScriptFunctionIsSyntheticConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
1320
1320
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
1321
1321
|
}
|
|
1322
1322
|
_ScriptFunctionIsDynamicConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
@@ -2144,6 +2144,9 @@ export class Es2pandaNativeModule {
|
|
|
2144
2144
|
_AstNodeGetOrCreateHistoryNodeConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
2145
2145
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
2146
2146
|
}
|
|
2147
|
+
_AstNodeCleanCheckInformation(context: KNativePointer, receiver: KNativePointer): void {
|
|
2148
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2149
|
+
}
|
|
2147
2150
|
_CreateUnaryExpression(context: KNativePointer, argument: KNativePointer, unaryOperator: KInt): KNativePointer {
|
|
2148
2151
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
2149
2152
|
}
|
|
@@ -2651,6 +2654,30 @@ export class Es2pandaNativeModule {
|
|
|
2651
2654
|
_UpdateCharLiteral(context: KNativePointer, original: KNativePointer): KNativePointer {
|
|
2652
2655
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
2653
2656
|
}
|
|
2657
|
+
_CreateETSIntrinsicNode(context: KNativePointer): KNativePointer {
|
|
2658
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2659
|
+
}
|
|
2660
|
+
_UpdateETSIntrinsicNode(context: KNativePointer, original: KNativePointer): KNativePointer {
|
|
2661
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2662
|
+
}
|
|
2663
|
+
_CreateETSIntrinsicNode1(context: KNativePointer, other: KNativePointer): KNativePointer {
|
|
2664
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2665
|
+
}
|
|
2666
|
+
_UpdateETSIntrinsicNode1(context: KNativePointer, original: KNativePointer, other: KNativePointer): KNativePointer {
|
|
2667
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2668
|
+
}
|
|
2669
|
+
_CreateETSIntrinsicNode2(context: KNativePointer, type: KInt, _arguments: BigUint64Array, _argumentsSequenceLength: KUInt): KNativePointer {
|
|
2670
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2671
|
+
}
|
|
2672
|
+
_UpdateETSIntrinsicNode2(context: KNativePointer, original: KNativePointer, type: KInt, _arguments: BigUint64Array, _argumentsSequenceLength: KUInt): KNativePointer {
|
|
2673
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2674
|
+
}
|
|
2675
|
+
_ETSIntrinsicNodeTypeConst(context: KNativePointer, receiver: KNativePointer): KInt {
|
|
2676
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2677
|
+
}
|
|
2678
|
+
_ETSIntrinsicNodeArgumentsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
2679
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
2680
|
+
}
|
|
2654
2681
|
_CreateETSPackageDeclaration(context: KNativePointer, name: KNativePointer): KNativePointer {
|
|
2655
2682
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
2656
2683
|
}
|
|
@@ -3164,6 +3191,15 @@ export class Es2pandaNativeModule {
|
|
|
3164
3191
|
_ETSParameterExpressionSetIdent(context: KNativePointer, receiver: KNativePointer, ident: KNativePointer): void {
|
|
3165
3192
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3166
3193
|
}
|
|
3194
|
+
_ETSParameterExpressionSpread(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
3195
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3196
|
+
}
|
|
3197
|
+
_ETSParameterExpressionSpreadConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
3198
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3199
|
+
}
|
|
3200
|
+
_ETSParameterExpressionSetSpread(context: KNativePointer, receiver: KNativePointer, spread: KNativePointer): void {
|
|
3201
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3202
|
+
}
|
|
3167
3203
|
_ETSParameterExpressionRestParameterConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
3168
3204
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3169
3205
|
}
|
|
@@ -3674,6 +3710,45 @@ export class Es2pandaNativeModule {
|
|
|
3674
3710
|
_MethodDefinitionSetValueOverloads(context: KNativePointer, receiver: KNativePointer, overloads: KNativePointer, index: KUInt): void {
|
|
3675
3711
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3676
3712
|
}
|
|
3713
|
+
_CreateOverloadDeclaration(context: KNativePointer, key: KNativePointer, modifiers: KInt): KNativePointer {
|
|
3714
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3715
|
+
}
|
|
3716
|
+
_UpdateOverloadDeclaration(context: KNativePointer, original: KNativePointer, key: KNativePointer, modifiers: KInt): KNativePointer {
|
|
3717
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3718
|
+
}
|
|
3719
|
+
_OverloadDeclarationFlagConst(context: KNativePointer, receiver: KNativePointer): KInt {
|
|
3720
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3721
|
+
}
|
|
3722
|
+
_OverloadDeclarationOverloadedList(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
3723
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3724
|
+
}
|
|
3725
|
+
_OverloadDeclarationSetOverloadedList(context: KNativePointer, receiver: KNativePointer, overloadedList: BigUint64Array, overloadedListSequenceLength: KUInt): void {
|
|
3726
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3727
|
+
}
|
|
3728
|
+
_OverloadDeclarationPushFront(context: KNativePointer, receiver: KNativePointer, overloadedExpression: KNativePointer): void {
|
|
3729
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3730
|
+
}
|
|
3731
|
+
_OverloadDeclarationAddOverloadDeclFlag(context: KNativePointer, receiver: KNativePointer, overloadFlag: KInt): void {
|
|
3732
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3733
|
+
}
|
|
3734
|
+
_OverloadDeclarationHasOverloadDeclFlagConst(context: KNativePointer, receiver: KNativePointer, overloadFlag: KInt): KBoolean {
|
|
3735
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3736
|
+
}
|
|
3737
|
+
_OverloadDeclarationIsConstructorOverloadDeclaration(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
3738
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3739
|
+
}
|
|
3740
|
+
_OverloadDeclarationIsFunctionOverloadDeclaration(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
3741
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3742
|
+
}
|
|
3743
|
+
_OverloadDeclarationIsClassMethodOverloadDeclaration(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
3744
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3745
|
+
}
|
|
3746
|
+
_OverloadDeclarationIsInterfaceMethodOverloadDeclaration(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
3747
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3748
|
+
}
|
|
3749
|
+
_OverloadDeclarationDumpModifierConst(context: KNativePointer, receiver: KNativePointer, dumper: KNativePointer): void {
|
|
3750
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
3751
|
+
}
|
|
3677
3752
|
_CreateTSNullKeyword(context: KNativePointer): KNativePointer {
|
|
3678
3753
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3679
3754
|
}
|
|
@@ -4562,6 +4637,12 @@ export class Es2pandaNativeModule {
|
|
|
4562
4637
|
_ProgramIsStdLibConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
4563
4638
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
4564
4639
|
}
|
|
4640
|
+
_ProgramIsGenAbcForExternalConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
4641
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
4642
|
+
}
|
|
4643
|
+
_ProgramSetGenAbcForExternalSources(context: KNativePointer, receiver: KNativePointer, genAbc: KBoolean): void {
|
|
4644
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
4645
|
+
}
|
|
4565
4646
|
_ProgramDumpConst(context: KNativePointer, receiver: KNativePointer): KStringPtr {
|
|
4566
4647
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
4567
4648
|
}
|
|
@@ -57,6 +57,7 @@ import { DebuggerStatement } from "./peers/DebuggerStatement"
|
|
|
57
57
|
import { Decorator } from "./peers/Decorator"
|
|
58
58
|
import { DoWhileStatement } from "./peers/DoWhileStatement"
|
|
59
59
|
import { ETSClassLiteral } from "./peers/ETSClassLiteral"
|
|
60
|
+
import { ETSIntrinsicNode } from "./peers/ETSIntrinsicNode"
|
|
60
61
|
import { ETSKeyofType } from "./peers/ETSKeyofType"
|
|
61
62
|
import { ETSNewArrayInstanceExpression } from "./peers/ETSNewArrayInstanceExpression"
|
|
62
63
|
import { ETSNewClassInstanceExpression } from "./peers/ETSNewClassInstanceExpression"
|
|
@@ -68,7 +69,9 @@ import { ETSTypeReferencePart } from "./peers/ETSTypeReferencePart"
|
|
|
68
69
|
import { ETSUndefinedType } from "./peers/ETSUndefinedType"
|
|
69
70
|
import { ETSUnionType } from "./peers/ETSUnionType"
|
|
70
71
|
import { EmptyStatement } from "./peers/EmptyStatement"
|
|
72
|
+
import { Es2pandaIntrinsicNodeType } from "./Es2pandaEnums"
|
|
71
73
|
import { Es2pandaMetaPropertyKind } from "./Es2pandaEnums"
|
|
74
|
+
import { Es2pandaModifierFlags } from "./Es2pandaEnums"
|
|
72
75
|
import { Es2pandaPrimitiveType } from "./Es2pandaEnums"
|
|
73
76
|
import { Es2pandaPropertyKind } from "./Es2pandaEnums"
|
|
74
77
|
import { Es2pandaTokenType } from "./Es2pandaEnums"
|
|
@@ -331,14 +334,14 @@ export const factory = {
|
|
|
331
334
|
return updateNodeByNode(TemplateElement.create1TemplateElement(raw, cooked), original)
|
|
332
335
|
}
|
|
333
336
|
,
|
|
334
|
-
createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[]): VariableDeclaration {
|
|
335
|
-
return VariableDeclaration.createVariableDeclaration(kind, declarators)
|
|
337
|
+
createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], annotations?: readonly AnnotationUsage[]): VariableDeclaration {
|
|
338
|
+
return VariableDeclaration.createVariableDeclaration(kind, declarators, annotations)
|
|
336
339
|
}
|
|
337
340
|
,
|
|
338
|
-
updateVariableDeclaration(original: VariableDeclaration, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[]): VariableDeclaration {
|
|
339
|
-
if (isSameNativeObject(kind, original.kind) && isSameNativeObject(declarators, original.declarators))
|
|
341
|
+
updateVariableDeclaration(original: VariableDeclaration, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], annotations?: readonly AnnotationUsage[]): VariableDeclaration {
|
|
342
|
+
if (isSameNativeObject(kind, original.kind) && isSameNativeObject(declarators, original.declarators) && isSameNativeObject(annotations, original.annotations))
|
|
340
343
|
return original
|
|
341
|
-
return updateNodeByNode(VariableDeclaration.createVariableDeclaration(kind, declarators), original)
|
|
344
|
+
return updateNodeByNode(VariableDeclaration.createVariableDeclaration(kind, declarators, annotations), original)
|
|
342
345
|
}
|
|
343
346
|
,
|
|
344
347
|
createUndefinedLiteral(): UndefinedLiteral {
|
|
@@ -367,14 +370,14 @@ export const factory = {
|
|
|
367
370
|
return updateNodeByNode(TSObjectKeyword.createTSObjectKeyword(), original)
|
|
368
371
|
}
|
|
369
372
|
,
|
|
370
|
-
createETSUnionType(types: readonly TypeNode[]): ETSUnionType {
|
|
371
|
-
return ETSUnionType.createETSUnionType(types)
|
|
373
|
+
createETSUnionType(types: readonly TypeNode[], annotations?: readonly AnnotationUsage[]): ETSUnionType {
|
|
374
|
+
return ETSUnionType.createETSUnionType(types, annotations)
|
|
372
375
|
}
|
|
373
376
|
,
|
|
374
|
-
updateETSUnionType(original: ETSUnionType, types: readonly TypeNode[]): ETSUnionType {
|
|
375
|
-
if (isSameNativeObject(types, original.types))
|
|
377
|
+
updateETSUnionType(original: ETSUnionType, types: readonly TypeNode[], annotations?: readonly AnnotationUsage[]): ETSUnionType {
|
|
378
|
+
if (isSameNativeObject(types, original.types) && isSameNativeObject(annotations, original.annotations))
|
|
376
379
|
return original
|
|
377
|
-
return updateNodeByNode(ETSUnionType.createETSUnionType(types), original)
|
|
380
|
+
return updateNodeByNode(ETSUnionType.createETSUnionType(types, annotations), original)
|
|
378
381
|
}
|
|
379
382
|
,
|
|
380
383
|
createETSKeyofType(typeRef?: TypeNode): ETSKeyofType {
|
|
@@ -407,14 +410,14 @@ export const factory = {
|
|
|
407
410
|
return updateNodeByNode(TSLiteralType.createTSLiteralType(literal), original)
|
|
408
411
|
}
|
|
409
412
|
,
|
|
410
|
-
createTSTypeAliasDeclaration(id: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, typeAnnotation: TypeNode): TSTypeAliasDeclaration {
|
|
411
|
-
return TSTypeAliasDeclaration.createTSTypeAliasDeclaration(id, typeParams, typeAnnotation)
|
|
413
|
+
createTSTypeAliasDeclaration(id: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, typeAnnotation: TypeNode, annotations?: readonly AnnotationUsage[], modifierFlags?: Es2pandaModifierFlags): TSTypeAliasDeclaration {
|
|
414
|
+
return TSTypeAliasDeclaration.createTSTypeAliasDeclaration(id, typeParams, typeAnnotation, annotations, modifierFlags)
|
|
412
415
|
}
|
|
413
416
|
,
|
|
414
|
-
updateTSTypeAliasDeclaration(original: TSTypeAliasDeclaration, id: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, typeAnnotation: TypeNode): TSTypeAliasDeclaration {
|
|
415
|
-
if (isSameNativeObject(id, original.id) && isSameNativeObject(typeParams, original.typeParams) && isSameNativeObject(typeAnnotation, original.typeAnnotation))
|
|
417
|
+
updateTSTypeAliasDeclaration(original: TSTypeAliasDeclaration, id: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, typeAnnotation: TypeNode, annotations?: readonly AnnotationUsage[], modifierFlags?: Es2pandaModifierFlags): TSTypeAliasDeclaration {
|
|
418
|
+
if (isSameNativeObject(id, original.id) && isSameNativeObject(typeParams, original.typeParams) && isSameNativeObject(typeAnnotation, original.typeAnnotation) && isSameNativeObject(annotations, original.annotations) && isSameNativeObject(modifierFlags, original.modifierFlags))
|
|
416
419
|
return original
|
|
417
|
-
return updateNodeByNode(TSTypeAliasDeclaration.createTSTypeAliasDeclaration(id, typeParams, typeAnnotation), original)
|
|
420
|
+
return updateNodeByNode(TSTypeAliasDeclaration.createTSTypeAliasDeclaration(id, typeParams, typeAnnotation, annotations, modifierFlags), original)
|
|
418
421
|
}
|
|
419
422
|
,
|
|
420
423
|
createDebuggerStatement(): DebuggerStatement {
|
|
@@ -673,6 +676,16 @@ export const factory = {
|
|
|
673
676
|
return updateNodeByNode(CharLiteral.createCharLiteral(), original)
|
|
674
677
|
}
|
|
675
678
|
,
|
|
679
|
+
createETSIntrinsicNode(type: Es2pandaIntrinsicNodeType, _arguments: readonly Expression[]): ETSIntrinsicNode {
|
|
680
|
+
return ETSIntrinsicNode.create2ETSIntrinsicNode(type, _arguments)
|
|
681
|
+
}
|
|
682
|
+
,
|
|
683
|
+
updateETSIntrinsicNode(original: ETSIntrinsicNode, type: Es2pandaIntrinsicNodeType, _arguments: readonly Expression[]): ETSIntrinsicNode {
|
|
684
|
+
if (isSameNativeObject(type, original.type) && isSameNativeObject(_arguments, original.arguments))
|
|
685
|
+
return original
|
|
686
|
+
return updateNodeByNode(ETSIntrinsicNode.create2ETSIntrinsicNode(type, _arguments), original)
|
|
687
|
+
}
|
|
688
|
+
,
|
|
676
689
|
createTSModuleBlock(statements: readonly Statement[]): TSModuleBlock {
|
|
677
690
|
return TSModuleBlock.createTSModuleBlock(statements)
|
|
678
691
|
}
|
|
@@ -1039,14 +1052,14 @@ export const factory = {
|
|
|
1039
1052
|
return updateNodeByNode(TSAnyKeyword.createTSAnyKeyword(), original)
|
|
1040
1053
|
}
|
|
1041
1054
|
,
|
|
1042
|
-
createClassDeclaration(definition?: ClassDefinition): ClassDeclaration {
|
|
1043
|
-
return ClassDeclaration.createClassDeclaration(definition)
|
|
1055
|
+
createClassDeclaration(definition?: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
1056
|
+
return ClassDeclaration.createClassDeclaration(definition, modifierFlags)
|
|
1044
1057
|
}
|
|
1045
1058
|
,
|
|
1046
|
-
updateClassDeclaration(original: ClassDeclaration, definition?: ClassDefinition): ClassDeclaration {
|
|
1047
|
-
if (isSameNativeObject(definition, original.definition))
|
|
1059
|
+
updateClassDeclaration(original: ClassDeclaration, definition?: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
1060
|
+
if (isSameNativeObject(definition, original.definition) && isSameNativeObject(modifierFlags, original.modifierFlags))
|
|
1048
1061
|
return original
|
|
1049
|
-
return updateNodeByNode(ClassDeclaration.createClassDeclaration(definition), original)
|
|
1062
|
+
return updateNodeByNode(ClassDeclaration.createClassDeclaration(definition, modifierFlags), original)
|
|
1050
1063
|
}
|
|
1051
1064
|
,
|
|
1052
1065
|
createTSIndexedAccessType(objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType {
|
|
@@ -1195,14 +1208,14 @@ export const factory = {
|
|
|
1195
1208
|
return updateNodeByNode(SequenceExpression.createSequenceExpression(sequence), original)
|
|
1196
1209
|
}
|
|
1197
1210
|
,
|
|
1198
|
-
createArrowFunctionExpression(_function?: ScriptFunction): ArrowFunctionExpression {
|
|
1199
|
-
return ArrowFunctionExpression.createArrowFunctionExpression(_function)
|
|
1211
|
+
createArrowFunctionExpression(_function?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
1212
|
+
return ArrowFunctionExpression.createArrowFunctionExpression(_function, annotations)
|
|
1200
1213
|
}
|
|
1201
1214
|
,
|
|
1202
|
-
updateArrowFunctionExpression(original: ArrowFunctionExpression, _function?: ScriptFunction): ArrowFunctionExpression {
|
|
1203
|
-
if (isSameNativeObject(_function, original.function))
|
|
1215
|
+
updateArrowFunctionExpression(original: ArrowFunctionExpression, _function?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
1216
|
+
if (isSameNativeObject(_function, original.function) && isSameNativeObject(annotations, original.annotations))
|
|
1204
1217
|
return original
|
|
1205
|
-
return updateNodeByNode(ArrowFunctionExpression.createArrowFunctionExpression(_function), original)
|
|
1218
|
+
return updateNodeByNode(ArrowFunctionExpression.createArrowFunctionExpression(_function, annotations), original)
|
|
1206
1219
|
}
|
|
1207
1220
|
,
|
|
1208
1221
|
createOmittedExpression(): OmittedExpression {
|
|
@@ -125,6 +125,7 @@ export * from "./peers/ImportDeclaration"
|
|
|
125
125
|
export * from "./peers/TSParenthesizedType"
|
|
126
126
|
export * from "./peers/Literal"
|
|
127
127
|
export * from "./peers/CharLiteral"
|
|
128
|
+
export * from "./peers/ETSIntrinsicNode"
|
|
128
129
|
export * from "./peers/ETSPackageDeclaration"
|
|
129
130
|
export * from "./peers/ETSImportDeclaration"
|
|
130
131
|
export * from "./peers/ETSStructDeclaration"
|
|
@@ -171,6 +172,7 @@ export * from "./peers/Statement"
|
|
|
171
172
|
export * from "./peers/DirectEvalExpression"
|
|
172
173
|
export * from "./peers/TSTypeParameterDeclaration"
|
|
173
174
|
export * from "./peers/MethodDefinition"
|
|
175
|
+
export * from "./peers/OverloadDeclaration"
|
|
174
176
|
export * from "./peers/TSNullKeyword"
|
|
175
177
|
export * from "./peers/TSInterfaceHeritage"
|
|
176
178
|
export * from "./peers/Expression"
|
|
@@ -41,7 +41,7 @@ import { ValidationInfo } from "./ValidationInfo"
|
|
|
41
41
|
|
|
42
42
|
export class ArrayExpression extends AnnotatedExpression {
|
|
43
43
|
constructor(pointer: KNativePointer) {
|
|
44
|
-
assertValidPeer(pointer,
|
|
44
|
+
assertValidPeer(pointer, 159)
|
|
45
45
|
super(pointer)
|
|
46
46
|
}
|
|
47
47
|
static create1ArrayExpression(nodeType: Es2pandaAstNodeType, elements: readonly Expression[], trailingComma: boolean): ArrayExpression {
|
|
@@ -43,18 +43,30 @@ export class ArrowFunctionExpression extends Expression {
|
|
|
43
43
|
assertValidPeer(pointer, 0)
|
|
44
44
|
super(pointer)
|
|
45
45
|
}
|
|
46
|
-
static createArrowFunctionExpression(func?: ScriptFunction): ArrowFunctionExpression {
|
|
46
|
+
static createArrowFunctionExpression(func?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
47
47
|
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression(global.context, passNode(func)))
|
|
48
|
+
if (annotations)
|
|
49
|
+
{
|
|
50
|
+
result.setAnnotations(annotations)
|
|
51
|
+
}
|
|
48
52
|
result.setChildrenParentPtr()
|
|
49
53
|
return result
|
|
50
54
|
}
|
|
51
|
-
static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction): ArrowFunctionExpression {
|
|
55
|
+
static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
52
56
|
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression(global.context, passNode(original), passNode(func)))
|
|
57
|
+
if (annotations)
|
|
58
|
+
{
|
|
59
|
+
result.setAnnotations(annotations)
|
|
60
|
+
}
|
|
53
61
|
result.setChildrenParentPtr()
|
|
54
62
|
return result
|
|
55
63
|
}
|
|
56
|
-
static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression): ArrowFunctionExpression {
|
|
64
|
+
static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
|
|
57
65
|
const result: ArrowFunctionExpression = new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression1(global.context, passNode(original), passNode(other)))
|
|
66
|
+
if (annotations)
|
|
67
|
+
{
|
|
68
|
+
result.setAnnotations(annotations)
|
|
69
|
+
}
|
|
58
70
|
result.setChildrenParentPtr()
|
|
59
71
|
return result
|
|
60
72
|
}
|
|
@@ -39,7 +39,7 @@ import { Expression } from "./Expression"
|
|
|
39
39
|
|
|
40
40
|
export class AssignmentExpression extends Expression {
|
|
41
41
|
constructor(pointer: KNativePointer) {
|
|
42
|
-
assertValidPeer(pointer,
|
|
42
|
+
assertValidPeer(pointer, 161)
|
|
43
43
|
super(pointer)
|
|
44
44
|
}
|
|
45
45
|
static create1AssignmentExpression(type: Es2pandaAstNodeType, left: Expression | undefined, right: Expression | undefined, assignmentOperator: Es2pandaTokenType): AssignmentExpression {
|
|
@@ -38,7 +38,7 @@ import { Statement } from "./Statement"
|
|
|
38
38
|
|
|
39
39
|
export class BlockExpression extends Expression {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 157)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createBlockExpression(statements: readonly Statement[]): BlockExpression {
|
|
@@ -43,13 +43,21 @@ export class CallExpression extends MaybeOptionalExpression {
|
|
|
43
43
|
assertValidPeer(pointer, 10)
|
|
44
44
|
super(pointer)
|
|
45
45
|
}
|
|
46
|
-
static createCallExpression(callee: Expression | undefined, _arguments: readonly Expression[], typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, trailingComma: boolean): CallExpression {
|
|
46
|
+
static createCallExpression(callee: Expression | undefined, _arguments: readonly Expression[], typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, trailingComma: boolean, trailingBlock?: BlockStatement): CallExpression {
|
|
47
47
|
const result: CallExpression = new CallExpression(global.generatedEs2panda._CreateCallExpression(global.context, passNode(callee), passNodeArray(_arguments), _arguments.length, passNode(typeParams), optional_arg, trailingComma))
|
|
48
|
+
if (trailingBlock)
|
|
49
|
+
{
|
|
50
|
+
result.setTrailingBlock(trailingBlock)
|
|
51
|
+
}
|
|
48
52
|
result.setChildrenParentPtr()
|
|
49
53
|
return result
|
|
50
54
|
}
|
|
51
|
-
static update1CallExpression(original?: CallExpression, other?: CallExpression): CallExpression {
|
|
55
|
+
static update1CallExpression(original?: CallExpression, other?: CallExpression, trailingBlock?: BlockStatement): CallExpression {
|
|
52
56
|
const result: CallExpression = new CallExpression(global.generatedEs2panda._UpdateCallExpression1(global.context, passNode(original), passNode(other)))
|
|
57
|
+
if (trailingBlock)
|
|
58
|
+
{
|
|
59
|
+
result.setTrailingBlock(trailingBlock)
|
|
60
|
+
}
|
|
53
61
|
result.setChildrenParentPtr()
|
|
54
62
|
return result
|
|
55
63
|
}
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
import { ClassDefinition } from "./ClassDefinition"
|
|
36
36
|
import { Decorator } from "./Decorator"
|
|
37
37
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
38
|
+
import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
|
|
38
39
|
import { Statement } from "./Statement"
|
|
39
40
|
|
|
40
41
|
export class ClassDeclaration extends Statement {
|
|
@@ -42,13 +43,21 @@ export class ClassDeclaration extends Statement {
|
|
|
42
43
|
assertValidPeer(pointer, 15)
|
|
43
44
|
super(pointer)
|
|
44
45
|
}
|
|
45
|
-
static createClassDeclaration(def?: ClassDefinition): ClassDeclaration {
|
|
46
|
+
static createClassDeclaration(def?: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
46
47
|
const result: ClassDeclaration = new ClassDeclaration(global.generatedEs2panda._CreateClassDeclaration(global.context, passNode(def)))
|
|
48
|
+
if (modifierFlags)
|
|
49
|
+
{
|
|
50
|
+
result.modifierFlags = modifierFlags
|
|
51
|
+
}
|
|
47
52
|
result.setChildrenParentPtr()
|
|
48
53
|
return result
|
|
49
54
|
}
|
|
50
|
-
static updateClassDeclaration(original?: ClassDeclaration, def?: ClassDefinition): ClassDeclaration {
|
|
55
|
+
static updateClassDeclaration(original?: ClassDeclaration, def?: ClassDefinition, modifierFlags?: Es2pandaModifierFlags): ClassDeclaration {
|
|
51
56
|
const result: ClassDeclaration = new ClassDeclaration(global.generatedEs2panda._UpdateClassDeclaration(global.context, passNode(original), passNode(def)))
|
|
57
|
+
if (modifierFlags)
|
|
58
|
+
{
|
|
59
|
+
result.modifierFlags = modifierFlags
|
|
60
|
+
}
|
|
52
61
|
result.setChildrenParentPtr()
|
|
53
62
|
return result
|
|
54
63
|
}
|
|
@@ -51,23 +51,39 @@ export class ClassDefinition extends TypedAstNode {
|
|
|
51
51
|
assertValidPeer(pointer, 14)
|
|
52
52
|
super(pointer)
|
|
53
53
|
}
|
|
54
|
-
static createClassDefinition(ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition {
|
|
54
|
+
static createClassDefinition(ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
55
55
|
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._CreateClassDefinition(global.context, passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), _implements.length, passNode(ctor), passNode(superClass), passNodeArray(body), body.length, modifiers, flags))
|
|
56
|
+
if (annotations)
|
|
57
|
+
{
|
|
58
|
+
result.setAnnotations(annotations)
|
|
59
|
+
}
|
|
56
60
|
result.setChildrenParentPtr()
|
|
57
61
|
return result
|
|
58
62
|
}
|
|
59
|
-
static updateClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition {
|
|
63
|
+
static updateClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
60
64
|
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition(global.context, passNode(original), passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), _implements.length, passNode(ctor), passNode(superClass), passNodeArray(body), body.length, modifiers, flags))
|
|
65
|
+
if (annotations)
|
|
66
|
+
{
|
|
67
|
+
result.setAnnotations(annotations)
|
|
68
|
+
}
|
|
61
69
|
result.setChildrenParentPtr()
|
|
62
70
|
return result
|
|
63
71
|
}
|
|
64
|
-
static update1ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition {
|
|
72
|
+
static update1ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, body: readonly AstNode[], modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
65
73
|
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition1(global.context, passNode(original), passNode(ident), passNodeArray(body), body.length, modifiers, flags))
|
|
74
|
+
if (annotations)
|
|
75
|
+
{
|
|
76
|
+
result.setAnnotations(annotations)
|
|
77
|
+
}
|
|
66
78
|
result.setChildrenParentPtr()
|
|
67
79
|
return result
|
|
68
80
|
}
|
|
69
|
-
static update2ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition {
|
|
81
|
+
static update2ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags, annotations?: readonly AnnotationUsage[]): ClassDefinition {
|
|
70
82
|
const result: ClassDefinition = new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition2(global.context, passNode(original), passNode(ident), modifiers, flags))
|
|
83
|
+
if (annotations)
|
|
84
|
+
{
|
|
85
|
+
result.setAnnotations(annotations)
|
|
86
|
+
}
|
|
71
87
|
result.setChildrenParentPtr()
|
|
72
88
|
return result
|
|
73
89
|
}
|
|
@@ -44,13 +44,21 @@ export class ClassProperty extends ClassElement {
|
|
|
44
44
|
assertValidPeer(pointer, 17)
|
|
45
45
|
super(pointer)
|
|
46
46
|
}
|
|
47
|
-
static createClassProperty(key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty {
|
|
47
|
+
static createClassProperty(key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean, annotations?: readonly AnnotationUsage[]): ClassProperty {
|
|
48
48
|
const result: ClassProperty = new ClassProperty(global.generatedEs2panda._CreateClassProperty(global.context, passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed))
|
|
49
|
+
if (annotations)
|
|
50
|
+
{
|
|
51
|
+
result.setAnnotations(annotations)
|
|
52
|
+
}
|
|
49
53
|
result.setChildrenParentPtr()
|
|
50
54
|
return result
|
|
51
55
|
}
|
|
52
|
-
static updateClassProperty(original: ClassProperty | undefined, key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty {
|
|
56
|
+
static updateClassProperty(original: ClassProperty | undefined, key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean, annotations?: readonly AnnotationUsage[]): ClassProperty {
|
|
53
57
|
const result: ClassProperty = new ClassProperty(global.generatedEs2panda._UpdateClassProperty(global.context, passNode(original), passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed))
|
|
58
|
+
if (annotations)
|
|
59
|
+
{
|
|
60
|
+
result.setAnnotations(annotations)
|
|
61
|
+
}
|
|
54
62
|
result.setChildrenParentPtr()
|
|
55
63
|
return result
|
|
56
64
|
}
|
|
@@ -38,7 +38,7 @@ import { TypeNode } from "./TypeNode"
|
|
|
38
38
|
|
|
39
39
|
export class ETSClassLiteral extends Expression {
|
|
40
40
|
constructor(pointer: KNativePointer) {
|
|
41
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 73)
|
|
42
42
|
super(pointer)
|
|
43
43
|
}
|
|
44
44
|
static createETSClassLiteral(expr?: TypeNode): ETSClassLiteral {
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
unpackString
|
|
33
33
|
} from "../../reexport-for-generated"
|
|
34
34
|
|
|
35
|
+
import { AnnotationUsage } from "./AnnotationUsage"
|
|
35
36
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
36
37
|
import { Es2pandaScriptFunctionFlags } from "./../Es2pandaEnums"
|
|
37
38
|
import { Expression } from "./Expression"
|
|
@@ -42,16 +43,24 @@ import { TypeNode } from "./TypeNode"
|
|
|
42
43
|
|
|
43
44
|
export class ETSFunctionType extends TypeNode {
|
|
44
45
|
constructor(pointer: KNativePointer) {
|
|
45
|
-
assertValidPeer(pointer,
|
|
46
|
+
assertValidPeer(pointer, 69)
|
|
46
47
|
super(pointer)
|
|
47
48
|
}
|
|
48
|
-
static createETSFunctionType(signature: FunctionSignature | undefined, funcFlags: Es2pandaScriptFunctionFlags): ETSFunctionType {
|
|
49
|
+
static createETSFunctionType(signature: FunctionSignature | undefined, funcFlags: Es2pandaScriptFunctionFlags, annotations?: readonly AnnotationUsage[]): ETSFunctionType {
|
|
49
50
|
const result: ETSFunctionType = new ETSFunctionType(global.generatedEs2panda._CreateETSFunctionType(global.context, passNode(signature), funcFlags))
|
|
51
|
+
if (annotations)
|
|
52
|
+
{
|
|
53
|
+
result.setAnnotations(annotations)
|
|
54
|
+
}
|
|
50
55
|
result.setChildrenParentPtr()
|
|
51
56
|
return result
|
|
52
57
|
}
|
|
53
|
-
static updateETSFunctionType(original: ETSFunctionType | undefined, signature: FunctionSignature | undefined, funcFlags: Es2pandaScriptFunctionFlags): ETSFunctionType {
|
|
58
|
+
static updateETSFunctionType(original: ETSFunctionType | undefined, signature: FunctionSignature | undefined, funcFlags: Es2pandaScriptFunctionFlags, annotations?: readonly AnnotationUsage[]): ETSFunctionType {
|
|
54
59
|
const result: ETSFunctionType = new ETSFunctionType(global.generatedEs2panda._UpdateETSFunctionType(global.context, passNode(original), passNode(signature), funcFlags))
|
|
60
|
+
if (annotations)
|
|
61
|
+
{
|
|
62
|
+
result.setAnnotations(annotations)
|
|
63
|
+
}
|
|
55
64
|
result.setChildrenParentPtr()
|
|
56
65
|
return result
|
|
57
66
|
}
|
|
@@ -75,12 +84,6 @@ export class ETSFunctionType extends TypeNode {
|
|
|
75
84
|
get flags(): Es2pandaScriptFunctionFlags {
|
|
76
85
|
return global.generatedEs2panda._ETSFunctionTypeFlags(global.context, this.peer)
|
|
77
86
|
}
|
|
78
|
-
get isThrowing(): boolean {
|
|
79
|
-
return global.generatedEs2panda._ETSFunctionTypeIsThrowingConst(global.context, this.peer)
|
|
80
|
-
}
|
|
81
|
-
get isRethrowing(): boolean {
|
|
82
|
-
return global.generatedEs2panda._ETSFunctionTypeIsRethrowingConst(global.context, this.peer)
|
|
83
|
-
}
|
|
84
87
|
get isExtensionFunction(): boolean {
|
|
85
88
|
return global.generatedEs2panda._ETSFunctionTypeIsExtensionFunctionConst(global.context, this.peer)
|
|
86
89
|
}
|
|
@@ -41,7 +41,7 @@ import { StringLiteral } from "./StringLiteral"
|
|
|
41
41
|
|
|
42
42
|
export class ETSImportDeclaration extends ImportDeclaration {
|
|
43
43
|
constructor(pointer: KNativePointer) {
|
|
44
|
-
assertValidPeer(pointer,
|
|
44
|
+
assertValidPeer(pointer, 81)
|
|
45
45
|
super(pointer)
|
|
46
46
|
}
|
|
47
47
|
static createETSImportDeclaration(importPath: StringLiteral | undefined, specifiers: readonly AstNode[], importKinds: Es2pandaImportKinds): ETSImportDeclaration {
|