@idlizer/arktscgen 2.1.10-arktscgen-4 → 2.1.10-arktscgen-6
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 +24 -47
- package/build/libarkts-copy/native/meson.build +26 -10
- package/build/libarkts-copy/native/meson_options.txt +9 -3
- package/build/libarkts-copy/native/mingw.cross +2 -0
- package/build/libarkts-copy/native/src/bridges.cc +55 -159
- package/build/libarkts-copy/native/src/common.cc +316 -97
- package/build/libarkts-copy/native/src/common.h +22 -22
- package/build/libarkts-copy/native/src/memoryTracker.cc +5 -5
- package/build/libarkts-copy/native/src/memoryTracker.h +5 -5
- package/build/libarkts-copy/package.json +31 -25
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +139 -116
- package/build/libarkts-copy/src/InteropNativeModule.ts +18 -15
- package/build/libarkts-copy/src/arkts-api/AbstractVisitor.ts +24 -19
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +30 -31
- package/build/libarkts-copy/src/arkts-api/ProgramProvider.ts +30 -18
- package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +30 -12
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +38 -29
- package/build/libarkts-copy/src/arkts-api/index.ts +23 -24
- package/build/libarkts-copy/src/arkts-api/node-cache.ts +22 -13
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArkTsConfig.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArrayExpression.ts +9 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/AssignmentExpression.ts +12 -14
- package/build/libarkts-copy/src/arkts-api/node-utilities/BlockStatement.ts +5 -5
- package/build/libarkts-copy/src/arkts-api/node-utilities/CallExpression.ts +26 -24
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDefinition.ts +62 -32
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassProperty.ts +14 -13
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSFunctionType.ts +24 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSImportDeclaration.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSModule.ts +14 -18
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSParameterExpression.ts +15 -16
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSStructDeclaration.ts +5 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSTuple.ts +6 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/MemberExpression.ts +12 -11
- package/build/libarkts-copy/src/arkts-api/node-utilities/MethodDefinition.ts +14 -33
- package/build/libarkts-copy/src/arkts-api/node-utilities/NumberLiteral.ts +12 -23
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +17 -21
- package/build/libarkts-copy/src/arkts-api/node-utilities/OpaqueTypeNode.ts +9 -8
- package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +21 -16
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +52 -53
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +22 -32
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeParameter.ts +12 -14
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeReferencePart.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/node-utilities/TryStatement.ts +10 -9
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclarator.ts +10 -12
- package/build/libarkts-copy/src/arkts-api/peers/ArktsObject.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +53 -65
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +18 -25
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +35 -42
- package/build/libarkts-copy/src/arkts-api/peers/ExternalSource.ts +9 -9
- package/build/libarkts-copy/src/arkts-api/peers/ImportPathManager.ts +6 -8
- package/build/libarkts-copy/src/arkts-api/peers/Options.ts +8 -8
- package/build/libarkts-copy/src/arkts-api/plugins.ts +205 -32
- package/build/libarkts-copy/src/arkts-api/static/global.ts +35 -36
- package/build/libarkts-copy/src/arkts-api/static/globalUtils.ts +5 -5
- package/build/libarkts-copy/src/arkts-api/static/profiler.ts +107 -91
- package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +54 -37
- package/build/libarkts-copy/src/arkts-api/utilities/nativePtrDecoder.ts +86 -69
- package/build/libarkts-copy/src/arkts-api/utilities/performance.ts +41 -24
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +69 -62
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +254 -175
- package/build/libarkts-copy/src/arkts-api/visitor.ts +599 -756
- package/build/libarkts-copy/src/arkts-api/wrapper-compat.ts +8 -8
- package/build/libarkts-copy/src/checkSdk.ts +15 -18
- package/build/libarkts-copy/src/index.ts +29 -29
- package/build/libarkts-copy/src/memo-node-cache.ts +143 -0
- package/build/libarkts-copy/src/plugin-utils.ts +64 -45
- package/build/libarkts-copy/src/reexport-for-generated.ts +13 -10
- package/build/libarkts-copy/src/tracer.ts +76 -70
- package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +134 -274
- package/build/libarkts-copy/src/ts-api/factory/nodeTests.ts +23 -23
- package/build/libarkts-copy/src/ts-api/index.ts +27 -35
- package/build/libarkts-copy/src/ts-api/static/enums.ts +3 -3
- package/build/libarkts-copy/src/ts-api/types.ts +535 -395
- package/build/libarkts-copy/src/ts-api/utilities/private.ts +116 -113
- package/build/libarkts-copy/src/ts-api/utilities/public.ts +18 -18
- package/build/libarkts-copy/src/ts-api/visitor/visitor.ts +33 -49
- package/build/libarkts-copy/src/utils.ts +103 -80
- package/build/libarkts-copy/tsconfig.json +3 -2
- package/lib/index.js +2713 -7729
- package/package.json +53 -52
- package/templates/Es2pandaNativeModule.ts +1 -0
- package/templates/peer.ts +1 -0
- package/build/libarkts-copy/native/src/generated/bridges.cc +0 -16375
- package/build/libarkts-copy/src/arkts-api/peers/DiagnosticKind.ts +0 -24
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +0 -1344
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +0 -5192
- package/build/libarkts-copy/src/generated/factory.ts +0 -1285
- package/build/libarkts-copy/src/generated/index.ts +0 -222
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +0 -54
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +0 -165
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +0 -109
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +0 -119
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +0 -111
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +0 -49
- package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +0 -110
- package/build/libarkts-copy/src/generated/peers/BindingProps.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +0 -129
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +0 -365
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +0 -137
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/CodeGen.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +0 -82
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/Declaration.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/DiagnosticInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +0 -60
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +0 -102
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +0 -90
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +0 -129
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +0 -59
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +0 -189
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +0 -55
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +0 -59
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +0 -89
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +0 -63
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +0 -82
- package/build/libarkts-copy/src/generated/peers/Expression.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +0 -67
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +0 -67
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +0 -106
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/IRNode.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +0 -162
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +0 -87
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/ImportSource.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/LabelPair.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/Literal.ts +0 -53
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +0 -53
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +0 -115
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +0 -152
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +0 -78
- package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +0 -94
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +0 -101
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/Program.ts +0 -206
- package/build/libarkts-copy/src/generated/peers/Property.ts +0 -92
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +0 -65
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +0 -310
- package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +0 -48
- package/build/libarkts-copy/src/generated/peers/SourceRange.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +0 -83
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +0 -120
- package/build/libarkts-copy/src/generated/peers/Statement.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/SuggestionInfo.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +0 -84
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +0 -112
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +0 -76
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +0 -73
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +0 -64
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +0 -160
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +0 -72
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +0 -66
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +0 -74
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +0 -80
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +0 -151
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +0 -121
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +0 -75
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +0 -69
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +0 -62
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +0 -89
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +0 -81
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +0 -44
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +0 -45
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +0 -61
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +0 -70
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +0 -58
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +0 -68
- package/build/libarkts-copy/src/generated/peers/VReg.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +0 -50
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +0 -113
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +0 -79
- package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +0 -40
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +0 -71
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +0 -64
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
global,
|
|
22
|
-
passNode,
|
|
23
|
-
passNodeArray,
|
|
24
|
-
unpackNonNullableNode,
|
|
25
|
-
unpackNode,
|
|
26
|
-
unpackNodeArray,
|
|
27
|
-
AstNode,
|
|
28
|
-
KNativePointer,
|
|
29
|
-
nodeByType,
|
|
30
|
-
ArktsObject,
|
|
31
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
|
-
import { Es2pandaPropertyKind } from "./../Es2pandaEnums"
|
|
36
|
-
import { Expression } from "./Expression"
|
|
37
|
-
import { ValidationInfo } from "./ValidationInfo"
|
|
38
|
-
|
|
39
|
-
export class Property extends Expression {
|
|
40
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
41
|
-
super(pointer, astNodeType)
|
|
42
|
-
}
|
|
43
|
-
static create1Property(kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property {
|
|
44
|
-
const result: Property = new Property(global.generatedEs2panda._CreateProperty1(global.context, kind, passNode(key), passNode(value), isMethod, isComputed), Es2pandaAstNodeType.AST_NODE_TYPE_PROPERTY)
|
|
45
|
-
result.setChildrenParentPtr()
|
|
46
|
-
return result
|
|
47
|
-
}
|
|
48
|
-
static updateProperty(original?: Property, key?: Expression, value?: Expression): Property {
|
|
49
|
-
const result: Property = new Property(global.generatedEs2panda._UpdateProperty(global.context, passNode(original), passNode(key), passNode(value)), Es2pandaAstNodeType.AST_NODE_TYPE_PROPERTY)
|
|
50
|
-
result.setChildrenParentPtr()
|
|
51
|
-
return result
|
|
52
|
-
}
|
|
53
|
-
static update1Property(original: Property | undefined, kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property {
|
|
54
|
-
const result: Property = new Property(global.generatedEs2panda._UpdateProperty1(global.context, passNode(original), kind, passNode(key), passNode(value), isMethod, isComputed), Es2pandaAstNodeType.AST_NODE_TYPE_PROPERTY)
|
|
55
|
-
result.setChildrenParentPtr()
|
|
56
|
-
return result
|
|
57
|
-
}
|
|
58
|
-
get key(): Expression | undefined {
|
|
59
|
-
return unpackNode(global.generatedEs2panda._PropertyKey(global.context, this.peer))
|
|
60
|
-
}
|
|
61
|
-
get value(): Expression | undefined {
|
|
62
|
-
return unpackNode(global.generatedEs2panda._PropertyValue(global.context, this.peer))
|
|
63
|
-
}
|
|
64
|
-
get kind(): Es2pandaPropertyKind {
|
|
65
|
-
return global.generatedEs2panda._PropertyKindConst(global.context, this.peer)
|
|
66
|
-
}
|
|
67
|
-
get isMethod(): boolean {
|
|
68
|
-
return global.generatedEs2panda._PropertyIsMethodConst(global.context, this.peer)
|
|
69
|
-
}
|
|
70
|
-
get isShorthand(): boolean {
|
|
71
|
-
return global.generatedEs2panda._PropertyIsShorthandConst(global.context, this.peer)
|
|
72
|
-
}
|
|
73
|
-
get isComputed(): boolean {
|
|
74
|
-
return global.generatedEs2panda._PropertyIsComputedConst(global.context, this.peer)
|
|
75
|
-
}
|
|
76
|
-
get isAccessor(): boolean {
|
|
77
|
-
return global.generatedEs2panda._PropertyIsAccessorConst(global.context, this.peer)
|
|
78
|
-
}
|
|
79
|
-
get convertibleToPatternProperty(): boolean {
|
|
80
|
-
return global.generatedEs2panda._PropertyConvertibleToPatternProperty(global.context, this.peer)
|
|
81
|
-
}
|
|
82
|
-
get validateExpression(): ValidationInfo | undefined {
|
|
83
|
-
return new ValidationInfo(global.generatedEs2panda._PropertyValidateExpression(global.context, this.peer))
|
|
84
|
-
}
|
|
85
|
-
protected readonly brandProperty: undefined
|
|
86
|
-
}
|
|
87
|
-
export function isProperty(node: object | undefined): node is Property {
|
|
88
|
-
return node instanceof Property
|
|
89
|
-
}
|
|
90
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_PROPERTY)) {
|
|
91
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_PROPERTY, (peer: KNativePointer) => new Property(peer, Es2pandaAstNodeType.AST_NODE_TYPE_PROPERTY))
|
|
92
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
global,
|
|
22
|
-
passNode,
|
|
23
|
-
passNodeArray,
|
|
24
|
-
unpackNonNullableNode,
|
|
25
|
-
unpackNode,
|
|
26
|
-
unpackNodeArray,
|
|
27
|
-
AstNode,
|
|
28
|
-
KNativePointer,
|
|
29
|
-
nodeByType,
|
|
30
|
-
ArktsObject,
|
|
31
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
|
-
import { Es2pandaRegExpFlags } from "./../Es2pandaEnums"
|
|
36
|
-
import { Literal } from "./Literal"
|
|
37
|
-
|
|
38
|
-
export class RegExpLiteral extends Literal {
|
|
39
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
-
super(pointer, astNodeType)
|
|
41
|
-
}
|
|
42
|
-
static createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral {
|
|
43
|
-
const result: RegExpLiteral = new RegExpLiteral(global.generatedEs2panda._CreateRegExpLiteral(global.context, pattern, flags, flagsStr), Es2pandaAstNodeType.AST_NODE_TYPE_REGEXP_LITERAL)
|
|
44
|
-
result.setChildrenParentPtr()
|
|
45
|
-
return result
|
|
46
|
-
}
|
|
47
|
-
static updateRegExpLiteral(original: RegExpLiteral | undefined, pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral {
|
|
48
|
-
const result: RegExpLiteral = new RegExpLiteral(global.generatedEs2panda._UpdateRegExpLiteral(global.context, passNode(original), pattern, flags, flagsStr), Es2pandaAstNodeType.AST_NODE_TYPE_REGEXP_LITERAL)
|
|
49
|
-
result.setChildrenParentPtr()
|
|
50
|
-
return result
|
|
51
|
-
}
|
|
52
|
-
get pattern(): string {
|
|
53
|
-
return unpackString(global.generatedEs2panda._RegExpLiteralPatternConst(global.context, this.peer))
|
|
54
|
-
}
|
|
55
|
-
get flags(): Es2pandaRegExpFlags {
|
|
56
|
-
return global.generatedEs2panda._RegExpLiteralFlagsConst(global.context, this.peer)
|
|
57
|
-
}
|
|
58
|
-
protected readonly brandRegExpLiteral: undefined
|
|
59
|
-
}
|
|
60
|
-
export function isRegExpLiteral(node: object | undefined): node is RegExpLiteral {
|
|
61
|
-
return node instanceof RegExpLiteral
|
|
62
|
-
}
|
|
63
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_REGEXP_LITERAL)) {
|
|
64
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_REGEXP_LITERAL, (peer: KNativePointer) => new RegExpLiteral(peer, Es2pandaAstNodeType.AST_NODE_TYPE_REGEXP_LITERAL))
|
|
65
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
global,
|
|
22
|
-
passNode,
|
|
23
|
-
passNodeArray,
|
|
24
|
-
unpackNonNullableNode,
|
|
25
|
-
unpackNode,
|
|
26
|
-
unpackNodeArray,
|
|
27
|
-
AstNode,
|
|
28
|
-
KNativePointer,
|
|
29
|
-
nodeByType,
|
|
30
|
-
ArktsObject,
|
|
31
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
|
-
import { Expression } from "./Expression"
|
|
36
|
-
import { Statement } from "./Statement"
|
|
37
|
-
|
|
38
|
-
export class ReturnStatement extends Statement {
|
|
39
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
|
-
super(pointer, astNodeType)
|
|
41
|
-
}
|
|
42
|
-
static create1ReturnStatement(argument?: Expression): ReturnStatement {
|
|
43
|
-
const result: ReturnStatement = new ReturnStatement(global.generatedEs2panda._CreateReturnStatement1(global.context, passNode(argument)), Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT)
|
|
44
|
-
result.setChildrenParentPtr()
|
|
45
|
-
return result
|
|
46
|
-
}
|
|
47
|
-
static updateReturnStatement(original?: ReturnStatement): ReturnStatement {
|
|
48
|
-
const result: ReturnStatement = new ReturnStatement(global.generatedEs2panda._UpdateReturnStatement(global.context, passNode(original)), Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT)
|
|
49
|
-
result.setChildrenParentPtr()
|
|
50
|
-
return result
|
|
51
|
-
}
|
|
52
|
-
static update1ReturnStatement(original?: ReturnStatement, argument?: Expression): ReturnStatement {
|
|
53
|
-
const result: ReturnStatement = new ReturnStatement(global.generatedEs2panda._UpdateReturnStatement1(global.context, passNode(original), passNode(argument)), Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT)
|
|
54
|
-
result.setChildrenParentPtr()
|
|
55
|
-
return result
|
|
56
|
-
}
|
|
57
|
-
get argument(): Expression | undefined {
|
|
58
|
-
return unpackNode(global.generatedEs2panda._ReturnStatementArgument(global.context, this.peer))
|
|
59
|
-
}
|
|
60
|
-
/** @deprecated */
|
|
61
|
-
setArgument(arg?: Expression): this {
|
|
62
|
-
global.generatedEs2panda._ReturnStatementSetArgument(global.context, this.peer, passNode(arg))
|
|
63
|
-
return this
|
|
64
|
-
}
|
|
65
|
-
get isAsyncImplReturn(): boolean {
|
|
66
|
-
return global.generatedEs2panda._ReturnStatementIsAsyncImplReturnConst(global.context, this.peer)
|
|
67
|
-
}
|
|
68
|
-
protected readonly brandReturnStatement: undefined
|
|
69
|
-
}
|
|
70
|
-
export function isReturnStatement(node: object | undefined): node is ReturnStatement {
|
|
71
|
-
return node instanceof ReturnStatement
|
|
72
|
-
}
|
|
73
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT)) {
|
|
74
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT, (peer: KNativePointer) => new ReturnStatement(peer, Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT))
|
|
75
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
global,
|
|
22
|
-
passNode,
|
|
23
|
-
passNodeArray,
|
|
24
|
-
unpackNonNullableNode,
|
|
25
|
-
unpackNode,
|
|
26
|
-
unpackNodeArray,
|
|
27
|
-
AstNode,
|
|
28
|
-
KNativePointer,
|
|
29
|
-
nodeByType,
|
|
30
|
-
ArktsObject,
|
|
31
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export class ScopeFindResult extends ArktsObject {
|
|
36
|
-
constructor(pointer: KNativePointer) {
|
|
37
|
-
super(pointer)
|
|
38
|
-
}
|
|
39
|
-
protected readonly brandScopeFindResult: undefined
|
|
40
|
-
}
|
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
global,
|
|
22
|
-
passNode,
|
|
23
|
-
passNodeArray,
|
|
24
|
-
unpackNonNullableNode,
|
|
25
|
-
unpackNode,
|
|
26
|
-
unpackNodeArray,
|
|
27
|
-
AstNode,
|
|
28
|
-
KNativePointer,
|
|
29
|
-
nodeByType,
|
|
30
|
-
ArktsObject,
|
|
31
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
import { AnnotationUsage } from "./AnnotationUsage"
|
|
35
|
-
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
36
|
-
import { Es2pandaScriptFunctionFlags } from "./../Es2pandaEnums"
|
|
37
|
-
import { Expression } from "./Expression"
|
|
38
|
-
import { FunctionSignature } from "./FunctionSignature"
|
|
39
|
-
import { Identifier } from "./Identifier"
|
|
40
|
-
import { ReturnStatement } from "./ReturnStatement"
|
|
41
|
-
import { SrcDumper } from "./SrcDumper"
|
|
42
|
-
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
43
|
-
import { TypeNode } from "./TypeNode"
|
|
44
|
-
import { extension_ScriptFunctionGetParamsCasted } from "./../../reexport-for-generated"
|
|
45
|
-
import { extension_ScriptFunctionGetPreferredReturnTypePointer } from "./../../reexport-for-generated"
|
|
46
|
-
import { extension_ScriptFunctionGetSignaturePointer } from "./../../reexport-for-generated"
|
|
47
|
-
import { extension_ScriptFunctionSetPreferredReturnTypePointer } from "./../../reexport-for-generated"
|
|
48
|
-
import { extension_ScriptFunctionSetSignaturePointer } from "./../../reexport-for-generated"
|
|
49
|
-
|
|
50
|
-
export class ScriptFunction extends AstNode {
|
|
51
|
-
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
52
|
-
super(pointer, astNodeType)
|
|
53
|
-
}
|
|
54
|
-
static createScriptFunction(databody: AstNode | undefined, datasignature: FunctionSignature | undefined, datafuncFlags: number, dataflags: number, ident?: Identifier, annotations?: readonly AnnotationUsage[]): ScriptFunction {
|
|
55
|
-
const result: ScriptFunction = new ScriptFunction(global.generatedEs2panda._CreateScriptFunction(global.context, passNode(databody), passNode(datasignature), datafuncFlags, dataflags), Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION)
|
|
56
|
-
if (ident)
|
|
57
|
-
{
|
|
58
|
-
result.setIdent(ident)
|
|
59
|
-
}
|
|
60
|
-
if (annotations)
|
|
61
|
-
{
|
|
62
|
-
result.setAnnotations(annotations)
|
|
63
|
-
}
|
|
64
|
-
result.setChildrenParentPtr()
|
|
65
|
-
return result
|
|
66
|
-
}
|
|
67
|
-
static updateScriptFunction(original: ScriptFunction | undefined, databody: AstNode | undefined, datasignature: FunctionSignature | undefined, datafuncFlags: number, dataflags: number, ident?: Identifier, annotations?: readonly AnnotationUsage[]): ScriptFunction {
|
|
68
|
-
const result: ScriptFunction = new ScriptFunction(global.generatedEs2panda._UpdateScriptFunction(global.context, passNode(original), passNode(databody), passNode(datasignature), datafuncFlags, dataflags), Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION)
|
|
69
|
-
if (ident)
|
|
70
|
-
{
|
|
71
|
-
result.setIdent(ident)
|
|
72
|
-
}
|
|
73
|
-
if (annotations)
|
|
74
|
-
{
|
|
75
|
-
result.setAnnotations(annotations)
|
|
76
|
-
}
|
|
77
|
-
result.setChildrenParentPtr()
|
|
78
|
-
return result
|
|
79
|
-
}
|
|
80
|
-
get id(): Identifier | undefined {
|
|
81
|
-
return unpackNode(global.generatedEs2panda._ScriptFunctionId(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
|
|
82
|
-
}
|
|
83
|
-
get params(): readonly Expression[] {
|
|
84
|
-
return unpackNodeArray(global.generatedEs2panda._ScriptFunctionParams(global.context, this.peer))
|
|
85
|
-
}
|
|
86
|
-
get returnStatements(): readonly ReturnStatement[] {
|
|
87
|
-
return unpackNodeArray(global.generatedEs2panda._ScriptFunctionReturnStatements(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT)
|
|
88
|
-
}
|
|
89
|
-
get returnStatementsForUpdate(): readonly ReturnStatement[] {
|
|
90
|
-
return unpackNodeArray(global.generatedEs2panda._ScriptFunctionReturnStatementsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT)
|
|
91
|
-
}
|
|
92
|
-
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
93
|
-
return unpackNode(global.generatedEs2panda._ScriptFunctionTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
|
|
94
|
-
}
|
|
95
|
-
get body(): AstNode | undefined {
|
|
96
|
-
return unpackNode(global.generatedEs2panda._ScriptFunctionBody(global.context, this.peer))
|
|
97
|
-
}
|
|
98
|
-
/** @deprecated */
|
|
99
|
-
addReturnStatement(returnStatement?: ReturnStatement): this {
|
|
100
|
-
global.generatedEs2panda._ScriptFunctionAddReturnStatement(global.context, this.peer, passNode(returnStatement))
|
|
101
|
-
return this
|
|
102
|
-
}
|
|
103
|
-
/** @deprecated */
|
|
104
|
-
setBody(body?: AstNode): this {
|
|
105
|
-
global.generatedEs2panda._ScriptFunctionSetBody(global.context, this.peer, passNode(body))
|
|
106
|
-
return this
|
|
107
|
-
}
|
|
108
|
-
get returnTypeAnnotation(): TypeNode | undefined {
|
|
109
|
-
return unpackNode(global.generatedEs2panda._ScriptFunctionReturnTypeAnnotation(global.context, this.peer))
|
|
110
|
-
}
|
|
111
|
-
/** @deprecated */
|
|
112
|
-
setReturnTypeAnnotation(node?: TypeNode): this {
|
|
113
|
-
global.generatedEs2panda._ScriptFunctionSetReturnTypeAnnotation(global.context, this.peer, passNode(node))
|
|
114
|
-
return this
|
|
115
|
-
}
|
|
116
|
-
get isEntryPoint(): boolean {
|
|
117
|
-
return global.generatedEs2panda._ScriptFunctionIsEntryPointConst(global.context, this.peer)
|
|
118
|
-
}
|
|
119
|
-
get isGenerator(): boolean {
|
|
120
|
-
return global.generatedEs2panda._ScriptFunctionIsGeneratorConst(global.context, this.peer)
|
|
121
|
-
}
|
|
122
|
-
get isAsyncFunc(): boolean {
|
|
123
|
-
return global.generatedEs2panda._ScriptFunctionIsAsyncFuncConst(global.context, this.peer)
|
|
124
|
-
}
|
|
125
|
-
get isAsyncImplFunc(): boolean {
|
|
126
|
-
return global.generatedEs2panda._ScriptFunctionIsAsyncImplFuncConst(global.context, this.peer)
|
|
127
|
-
}
|
|
128
|
-
get isArrow(): boolean {
|
|
129
|
-
return global.generatedEs2panda._ScriptFunctionIsArrowConst(global.context, this.peer)
|
|
130
|
-
}
|
|
131
|
-
get isOverload(): boolean {
|
|
132
|
-
return global.generatedEs2panda._ScriptFunctionIsOverloadConst(global.context, this.peer)
|
|
133
|
-
}
|
|
134
|
-
get isExternalOverload(): boolean {
|
|
135
|
-
return global.generatedEs2panda._ScriptFunctionIsExternalOverloadConst(global.context, this.peer)
|
|
136
|
-
}
|
|
137
|
-
get isConstructor(): boolean {
|
|
138
|
-
return global.generatedEs2panda._ScriptFunctionIsConstructorConst(global.context, this.peer)
|
|
139
|
-
}
|
|
140
|
-
get isGetter(): boolean {
|
|
141
|
-
return global.generatedEs2panda._ScriptFunctionIsGetterConst(global.context, this.peer)
|
|
142
|
-
}
|
|
143
|
-
get isSetter(): boolean {
|
|
144
|
-
return global.generatedEs2panda._ScriptFunctionIsSetterConst(global.context, this.peer)
|
|
145
|
-
}
|
|
146
|
-
get isExtensionAccessor(): boolean {
|
|
147
|
-
return global.generatedEs2panda._ScriptFunctionIsExtensionAccessorConst(global.context, this.peer)
|
|
148
|
-
}
|
|
149
|
-
get isMethod(): boolean {
|
|
150
|
-
return global.generatedEs2panda._ScriptFunctionIsMethodConst(global.context, this.peer)
|
|
151
|
-
}
|
|
152
|
-
get isProxy(): boolean {
|
|
153
|
-
return global.generatedEs2panda._ScriptFunctionIsProxyConst(global.context, this.peer)
|
|
154
|
-
}
|
|
155
|
-
get isStaticBlock(): boolean {
|
|
156
|
-
return global.generatedEs2panda._ScriptFunctionIsStaticBlockConst(global.context, this.peer)
|
|
157
|
-
}
|
|
158
|
-
get isEnum(): boolean {
|
|
159
|
-
return global.generatedEs2panda._ScriptFunctionIsEnumConst(global.context, this.peer)
|
|
160
|
-
}
|
|
161
|
-
get isHidden(): boolean {
|
|
162
|
-
return global.generatedEs2panda._ScriptFunctionIsHiddenConst(global.context, this.peer)
|
|
163
|
-
}
|
|
164
|
-
get isExternal(): boolean {
|
|
165
|
-
return global.generatedEs2panda._ScriptFunctionIsExternalConst(global.context, this.peer)
|
|
166
|
-
}
|
|
167
|
-
get isImplicitSuperCallNeeded(): boolean {
|
|
168
|
-
return global.generatedEs2panda._ScriptFunctionIsImplicitSuperCallNeededConst(global.context, this.peer)
|
|
169
|
-
}
|
|
170
|
-
get hasBody(): boolean {
|
|
171
|
-
return global.generatedEs2panda._ScriptFunctionHasBodyConst(global.context, this.peer)
|
|
172
|
-
}
|
|
173
|
-
get hasRestParameter(): boolean {
|
|
174
|
-
return global.generatedEs2panda._ScriptFunctionHasRestParameterConst(global.context, this.peer)
|
|
175
|
-
}
|
|
176
|
-
get hasReturnStatement(): boolean {
|
|
177
|
-
return global.generatedEs2panda._ScriptFunctionHasReturnStatementConst(global.context, this.peer)
|
|
178
|
-
}
|
|
179
|
-
get hasThrowStatement(): boolean {
|
|
180
|
-
return global.generatedEs2panda._ScriptFunctionHasThrowStatementConst(global.context, this.peer)
|
|
181
|
-
}
|
|
182
|
-
get isTrailingLambda(): boolean {
|
|
183
|
-
return global.generatedEs2panda._ScriptFunctionIsTrailingLambdaConst(global.context, this.peer)
|
|
184
|
-
}
|
|
185
|
-
get isSynthetic(): boolean {
|
|
186
|
-
return global.generatedEs2panda._ScriptFunctionIsSyntheticConst(global.context, this.peer)
|
|
187
|
-
}
|
|
188
|
-
get isDynamic(): boolean {
|
|
189
|
-
return global.generatedEs2panda._ScriptFunctionIsDynamicConst(global.context, this.peer)
|
|
190
|
-
}
|
|
191
|
-
get isExtensionMethod(): boolean {
|
|
192
|
-
return global.generatedEs2panda._ScriptFunctionIsExtensionMethodConst(global.context, this.peer)
|
|
193
|
-
}
|
|
194
|
-
get flags(): Es2pandaScriptFunctionFlags {
|
|
195
|
-
return global.generatedEs2panda._ScriptFunctionFlagsConst(global.context, this.peer)
|
|
196
|
-
}
|
|
197
|
-
get hasReceiver(): boolean {
|
|
198
|
-
return global.generatedEs2panda._ScriptFunctionHasReceiverConst(global.context, this.peer)
|
|
199
|
-
}
|
|
200
|
-
/** @deprecated */
|
|
201
|
-
setIdent(id: Identifier): this {
|
|
202
|
-
global.generatedEs2panda._ScriptFunctionSetIdent(global.context, this.peer, passNode(id))
|
|
203
|
-
return this
|
|
204
|
-
}
|
|
205
|
-
/** @deprecated */
|
|
206
|
-
addFlag(flags: Es2pandaScriptFunctionFlags): this {
|
|
207
|
-
global.generatedEs2panda._ScriptFunctionAddFlag(global.context, this.peer, flags)
|
|
208
|
-
return this
|
|
209
|
-
}
|
|
210
|
-
/** @deprecated */
|
|
211
|
-
clearFlag(flags: Es2pandaScriptFunctionFlags): this {
|
|
212
|
-
global.generatedEs2panda._ScriptFunctionClearFlag(global.context, this.peer, flags)
|
|
213
|
-
return this
|
|
214
|
-
}
|
|
215
|
-
get formalParamsLength(): number {
|
|
216
|
-
return global.generatedEs2panda._ScriptFunctionFormalParamsLengthConst(global.context, this.peer)
|
|
217
|
-
}
|
|
218
|
-
/** @deprecated */
|
|
219
|
-
setAsyncPairMethod(asyncPairFunction?: ScriptFunction): this {
|
|
220
|
-
global.generatedEs2panda._ScriptFunctionSetAsyncPairMethod(global.context, this.peer, passNode(asyncPairFunction))
|
|
221
|
-
return this
|
|
222
|
-
}
|
|
223
|
-
get asyncPairMethod(): ScriptFunction | undefined {
|
|
224
|
-
return unpackNode(global.generatedEs2panda._ScriptFunctionAsyncPairMethod(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION)
|
|
225
|
-
}
|
|
226
|
-
/** @deprecated */
|
|
227
|
-
emplaceReturnStatements(returnStatements?: ReturnStatement): this {
|
|
228
|
-
global.generatedEs2panda._ScriptFunctionEmplaceReturnStatements(global.context, this.peer, passNode(returnStatements))
|
|
229
|
-
return this
|
|
230
|
-
}
|
|
231
|
-
/** @deprecated */
|
|
232
|
-
clearReturnStatements(): this {
|
|
233
|
-
global.generatedEs2panda._ScriptFunctionClearReturnStatements(global.context, this.peer)
|
|
234
|
-
return this
|
|
235
|
-
}
|
|
236
|
-
/** @deprecated */
|
|
237
|
-
setValueReturnStatements(returnStatements: ReturnStatement | undefined, index: number): this {
|
|
238
|
-
global.generatedEs2panda._ScriptFunctionSetValueReturnStatements(global.context, this.peer, passNode(returnStatements), index)
|
|
239
|
-
return this
|
|
240
|
-
}
|
|
241
|
-
/** @deprecated */
|
|
242
|
-
emplaceParams(params?: Expression): this {
|
|
243
|
-
global.generatedEs2panda._ScriptFunctionEmplaceParams(global.context, this.peer, passNode(params))
|
|
244
|
-
return this
|
|
245
|
-
}
|
|
246
|
-
/** @deprecated */
|
|
247
|
-
setParams(paramsList: readonly Expression[]): this {
|
|
248
|
-
global.generatedEs2panda._ScriptFunctionSetParams(global.context, this.peer, passNodeArray(paramsList), paramsList.length)
|
|
249
|
-
return this
|
|
250
|
-
}
|
|
251
|
-
/** @deprecated */
|
|
252
|
-
clearParams(): this {
|
|
253
|
-
global.generatedEs2panda._ScriptFunctionClearParams(global.context, this.peer)
|
|
254
|
-
return this
|
|
255
|
-
}
|
|
256
|
-
/** @deprecated */
|
|
257
|
-
setValueParams(params: Expression | undefined, index: number): this {
|
|
258
|
-
global.generatedEs2panda._ScriptFunctionSetValueParams(global.context, this.peer, passNode(params), index)
|
|
259
|
-
return this
|
|
260
|
-
}
|
|
261
|
-
get paramsForUpdate(): readonly Expression[] {
|
|
262
|
-
return unpackNodeArray(global.generatedEs2panda._ScriptFunctionParamsForUpdate(global.context, this.peer))
|
|
263
|
-
}
|
|
264
|
-
get hasAnnotations(): boolean {
|
|
265
|
-
return global.generatedEs2panda._ScriptFunctionHasAnnotationsConst(global.context, this.peer)
|
|
266
|
-
}
|
|
267
|
-
/** @deprecated */
|
|
268
|
-
emplaceAnnotation(source?: AnnotationUsage): this {
|
|
269
|
-
global.generatedEs2panda._ScriptFunctionEmplaceAnnotation(global.context, this.peer, passNode(source))
|
|
270
|
-
return this
|
|
271
|
-
}
|
|
272
|
-
/** @deprecated */
|
|
273
|
-
clearAnnotations(): this {
|
|
274
|
-
global.generatedEs2panda._ScriptFunctionClearAnnotations(global.context, this.peer)
|
|
275
|
-
return this
|
|
276
|
-
}
|
|
277
|
-
/** @deprecated */
|
|
278
|
-
dumpAnnotations(dumper?: SrcDumper): this {
|
|
279
|
-
global.generatedEs2panda._ScriptFunctionDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
|
|
280
|
-
return this
|
|
281
|
-
}
|
|
282
|
-
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
283
|
-
return unpackNodeArray(global.generatedEs2panda._ScriptFunctionAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
284
|
-
}
|
|
285
|
-
get annotations(): readonly AnnotationUsage[] {
|
|
286
|
-
return unpackNodeArray(global.generatedEs2panda._ScriptFunctionAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
|
|
287
|
-
}
|
|
288
|
-
/** @deprecated */
|
|
289
|
-
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
290
|
-
global.generatedEs2panda._ScriptFunctionSetAnnotations(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
291
|
-
return this
|
|
292
|
-
}
|
|
293
|
-
/** @deprecated */
|
|
294
|
-
setAnnotations1(annotationList: readonly AnnotationUsage[]): this {
|
|
295
|
-
global.generatedEs2panda._ScriptFunctionSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
296
|
-
return this
|
|
297
|
-
}
|
|
298
|
-
getSignaturePointer = extension_ScriptFunctionGetSignaturePointer
|
|
299
|
-
setSignaturePointer = extension_ScriptFunctionSetSignaturePointer
|
|
300
|
-
getParamsCasted = extension_ScriptFunctionGetParamsCasted
|
|
301
|
-
getPreferredReturnTypePointer = extension_ScriptFunctionGetPreferredReturnTypePointer
|
|
302
|
-
setPreferredReturnTypePointer = extension_ScriptFunctionSetPreferredReturnTypePointer
|
|
303
|
-
protected readonly brandScriptFunction: undefined
|
|
304
|
-
}
|
|
305
|
-
export function isScriptFunction(node: object | undefined): node is ScriptFunction {
|
|
306
|
-
return node instanceof ScriptFunction
|
|
307
|
-
}
|
|
308
|
-
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION)) {
|
|
309
|
-
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION, (peer: KNativePointer) => new ScriptFunction(peer, Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION))
|
|
310
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
global,
|
|
22
|
-
passNode,
|
|
23
|
-
passNodeArray,
|
|
24
|
-
unpackNonNullableNode,
|
|
25
|
-
unpackNode,
|
|
26
|
-
unpackNodeArray,
|
|
27
|
-
AstNode,
|
|
28
|
-
KNativePointer,
|
|
29
|
-
nodeByType,
|
|
30
|
-
ArktsObject,
|
|
31
|
-
unpackString
|
|
32
|
-
} from "../../reexport-for-generated"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export class ScriptFunctionData extends ArktsObject {
|
|
36
|
-
constructor(pointer: KNativePointer) {
|
|
37
|
-
super(pointer)
|
|
38
|
-
}
|
|
39
|
-
protected readonly brandScriptFunctionData: undefined
|
|
40
|
-
}
|