@idlizer/arktscgen 2.1.5 → 2.1.9-arktscgen-4
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 +34 -0
- package/build/libarkts-copy/native/meson.build +128 -62
- package/build/libarkts-copy/native/meson_options.txt +19 -0
- package/build/libarkts-copy/native/src/bridges.cc +278 -15
- package/build/libarkts-copy/native/src/common.cc +212 -43
- package/build/libarkts-copy/native/src/common.h +95 -2
- package/build/libarkts-copy/native/src/generated/bridges.cc +2801 -466
- package/build/libarkts-copy/package.json +82 -62
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +97 -3
- package/build/libarkts-copy/src/InteropNativeModule.ts +3 -1
- package/build/libarkts-copy/src/arkts-api/AbstractVisitor.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/ChainExpressionFilter.ts +78 -0
- package/build/libarkts-copy/src/arkts-api/CheckedBackFilter.ts +131 -0
- package/build/libarkts-copy/src/arkts-api/CompileWithCache.ts +193 -0
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +78 -0
- package/build/libarkts-copy/src/arkts-api/InferVoidReturnType.ts +89 -0
- package/build/libarkts-copy/src/arkts-api/ProgramProvider.ts +50 -0
- package/build/libarkts-copy/src/arkts-api/SetBaseOverloads.ts +44 -0
- package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +2 -3
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +93 -10
- package/build/libarkts-copy/src/arkts-api/index.ts +13 -1
- package/build/libarkts-copy/src/arkts-api/node-cache.ts +8 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/AnnotationDeclaration.ts +32 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/AnnotationUsage.ts +37 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArkTsConfig.ts +26 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ArrayExpression.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/BinaryExpression.ts +37 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/BlockExpression.ts +27 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/BlockStatement.ts +29 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/CallExpression.ts +2 -2
- package/build/libarkts-copy/src/arkts-api/node-utilities/ChainExpression.ts +27 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDeclaration.ts +54 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDefinition.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/ClassProperty.ts +27 -4
- package/build/libarkts-copy/src/arkts-api/node-utilities/ConditionalExpression.ts +36 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSFunctionType.ts +2 -2
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSImportDeclaration.ts +3 -27
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSNewClassInstanceExpression.ts +34 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSParameterExpression.ts +3 -9
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSPrimitiveType.ts +28 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSStructDeclaration.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSTuple.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSTypeReference.ts +27 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSTypeReferencePart.ts +36 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSUndefinedType.ts +24 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ETSUnionType.ts +27 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/Identifier.ts +27 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ImportSpecifier.ts +31 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/MemberExpression.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/MethodDefinition.ts +2 -2
- package/build/libarkts-copy/src/arkts-api/node-utilities/NullLiteral.ts +24 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/NumberLiteral.ts +2 -2
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +40 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ReturnStatement.ts +27 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/StringLiteral.ts +27 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/SuperExpression.ts +24 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSAsExpression.ts +36 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSClassImplements.ts +31 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceBody.ts +28 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +30 -10
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSNonNullExpression.ts +27 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +10 -2
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeParameter.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeParameterDeclaration.ts +31 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeParameterInstantiation.ts +30 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeReferencePart.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/TemplateLiteral.ts +35 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ThisExpression.ts +24 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/UndefinedLiteral.ts +24 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclaration.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclarator.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/peers/ArktsObject.ts +3 -1
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +78 -15
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +8 -1
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +72 -6
- package/build/libarkts-copy/src/arkts-api/peers/{Program.ts → ExternalSource.ts} +3 -21
- package/build/libarkts-copy/src/arkts-api/peers/Options.ts +34 -0
- package/build/libarkts-copy/src/arkts-api/plugins.ts +62 -0
- package/build/libarkts-copy/src/arkts-api/static/global.ts +9 -5
- package/build/libarkts-copy/src/arkts-api/static/profiler.ts +195 -23
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +36 -10
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +68 -20
- package/build/libarkts-copy/src/arkts-api/visitor.ts +162 -18
- package/build/libarkts-copy/src/arkts-api/wrapper-compat.ts +32 -0
- package/build/libarkts-copy/src/checkSdk.ts +25 -0
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +448 -436
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +775 -60
- package/build/libarkts-copy/src/generated/factory.ts +12 -15
- package/build/libarkts-copy/src/generated/index.ts +10 -3
- package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +58 -6
- package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +75 -0
- package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +40 -6
- package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/AstDumper.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/BindingProps.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +26 -7
- package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/CallExpression.ts +20 -3
- package/build/libarkts-copy/src/generated/peers/CatchClause.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +33 -4
- package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +128 -42
- package/build/libarkts-copy/src/generated/peers/ClassElement.ts +28 -4
- package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +39 -5
- package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/CodeGen.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/Declaration.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/Decorator.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/{OverloadInfo.ts → DiagnosticInfo.ts} +8 -2
- package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +16 -5
- package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSModule.ts +59 -4
- package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +46 -12
- package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +14 -8
- package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +15 -4
- package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +16 -4
- package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +18 -7
- package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +26 -3
- package/build/libarkts-copy/src/generated/peers/Expression.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +8 -2
- package/build/libarkts-copy/src/generated/peers/FunctionDecl.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +44 -6
- package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/IRNode.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/Identifier.ts +16 -5
- package/build/libarkts-copy/src/generated/peers/IfStatement.ts +14 -3
- package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +28 -4
- package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ImportSource.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/InterfaceDecl.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/LabelPair.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/Literal.ts +15 -1
- package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +26 -10
- package/build/libarkts-copy/src/generated/peers/NamedType.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/NewExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +12 -6
- package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/Program.ts +194 -0
- package/build/libarkts-copy/src/generated/peers/Property.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +77 -10
- package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/SourceRange.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +46 -9
- package/build/libarkts-copy/src/generated/peers/Statement.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/{ETSDynamicFunctionType.ts → SuggestionInfo.ts} +7 -5
- package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +48 -6
- package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSImportType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSInferType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +78 -8
- package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSThisType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +53 -6
- package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +41 -7
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +15 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/TryStatement.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/TypeNode.ts +37 -3
- package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +15 -4
- package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +9 -3
- package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +10 -4
- package/build/libarkts-copy/src/generated/peers/VReg.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +48 -8
- package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +11 -5
- package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +7 -1
- package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +15 -4
- package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +10 -4
- package/build/libarkts-copy/src/index.ts +31 -1
- package/build/libarkts-copy/src/plugin-utils.ts +117 -0
- package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +15 -0
- package/build/libarkts-copy/src/ts-api/factory/nodeTests.ts +15 -0
- package/build/libarkts-copy/src/ts-api/types.ts +15 -0
- package/build/libarkts-copy/src/utils.ts +24 -41
- package/build/libarkts-copy/src/wrapper-compat/README.md +16 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/class-by-peer.ts +46 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/factory/nodeFactory.ts +454 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/factory/nodeTests.ts +99 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/index.ts +88 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrayExpression.ts +38 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrowFunctionExpression.ts +35 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/AssignmentExpression.ts +38 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/BlockStatement.ts +27 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/CallExpression.ts +45 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDeclaration.ts +27 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDefinition.ts +73 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassProperty.ts +51 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSFunctionType.ts +42 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSImportDeclaration.ts +39 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSParameterExpression.ts +43 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ExpressionStatement.ts +28 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionDeclaration.ts +37 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionExpression.ts +28 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/IfStatement.ts +37 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MemberExpression.ts +42 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MethodDefinition.ts +46 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/NumberLiteral.ts +30 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ObjectExpression.ts +37 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/Property.ts +27 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ScriptFunction.ts +46 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/StructDeclaration.ts +28 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSInterfaceDeclaration.ts +47 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +40 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeParameter.ts +36 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TryStatement.ts +41 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclaration.ts +42 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclarator.ts +39 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/ArktsObject.ts +45 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/AstNode.ts +26 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Config.ts +53 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Context.ts +60 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Diagnostic.ts +39 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticInfo.ts +33 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticKind.ts +33 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/ImportPathManager.ts +34 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Program.ts +105 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourcePosition.ts +38 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourceRange.ts +38 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SuggestionInfo.ts +33 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/static/global.ts +16 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/static/globalUtils.ts +27 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/to-be-generated/MemberExpression.ts +108 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/types.ts +907 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/nativePtrDecoder.ts +69 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/performance.ts +190 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/private.ts +198 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/public.ts +325 -0
- package/build/libarkts-copy/src/wrapper-compat/arkts-api/visitor.ts +421 -0
- package/build/libarkts-copy/src/wrapper-compat/index.ts +20 -0
- package/build/libarkts-copy/tsconfig.json +2 -1
- package/lib/index.js +1704 -273
- package/package.json +2 -2
- package/templates/Es2pandaEnums.ts +4 -0
- package/templates/Es2pandaNativeModule.ts +5 -1
- package/templates/factory.ts +5 -1
- package/templates/index.ts +5 -1
- package/templates/node-map.ts +5 -1
- package/templates/peer.ts +5 -1
- package/build/libarkts-copy/README.md +0 -36
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -31,24 +35,26 @@ import {
|
|
|
31
35
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
36
|
import { Expression } from "./Expression"
|
|
33
37
|
import { Statement } from "./Statement"
|
|
38
|
+
|
|
34
39
|
export class Decorator extends Statement {
|
|
35
40
|
constructor(pointer: KNativePointer) {
|
|
36
41
|
assertValidPeer(pointer, 22)
|
|
37
42
|
super(pointer)
|
|
38
43
|
}
|
|
39
44
|
static createDecorator(expr?: Expression): Decorator {
|
|
40
|
-
return new Decorator(global.generatedEs2panda._CreateDecorator(global.context, passNode(expr)))
|
|
45
|
+
return new Decorator(global.generatedEs2panda._CreateDecorator(global.context, passNode(expr))).updateChildren()
|
|
41
46
|
}
|
|
42
47
|
static updateDecorator(original?: Decorator, expr?: Expression): Decorator {
|
|
43
|
-
return new Decorator(global.generatedEs2panda._UpdateDecorator(global.context, passNode(original), passNode(expr)))
|
|
48
|
+
return new Decorator(global.generatedEs2panda._UpdateDecorator(global.context, passNode(original), passNode(expr))).updateChildren()
|
|
44
49
|
}
|
|
45
50
|
get expr(): Expression | undefined {
|
|
46
51
|
return unpackNode(global.generatedEs2panda._DecoratorExprConst(global.context, this.peer))
|
|
47
52
|
}
|
|
53
|
+
protected readonly brandDecorator: undefined
|
|
48
54
|
}
|
|
49
55
|
export function isDecorator(node: object | undefined): node is Decorator {
|
|
50
56
|
return node instanceof Decorator
|
|
51
57
|
}
|
|
52
58
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_DECORATOR)) {
|
|
53
59
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_DECORATOR, (peer: KNativePointer) => new Decorator(peer))
|
|
54
|
-
}
|
|
60
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -28,8 +32,10 @@ import {
|
|
|
28
32
|
unpackString
|
|
29
33
|
} from "../../reexport-for-generated"
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
|
|
36
|
+
export class DiagnosticInfo extends ArktsObject {
|
|
32
37
|
constructor(pointer: KNativePointer) {
|
|
33
38
|
super(pointer)
|
|
34
39
|
}
|
|
35
|
-
|
|
40
|
+
protected readonly brandDiagnosticInfo: undefined
|
|
41
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -32,21 +36,23 @@ import { CallExpression } from "./CallExpression"
|
|
|
32
36
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
33
37
|
import { Expression } from "./Expression"
|
|
34
38
|
import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation"
|
|
39
|
+
|
|
35
40
|
export class DirectEvalExpression extends CallExpression {
|
|
36
41
|
constructor(pointer: KNativePointer) {
|
|
37
42
|
assertValidPeer(pointer, 23)
|
|
38
43
|
super(pointer)
|
|
39
44
|
}
|
|
40
45
|
static createDirectEvalExpression(callee: Expression | undefined, _arguments: readonly Expression[], typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression {
|
|
41
|
-
return new DirectEvalExpression(global.generatedEs2panda._CreateDirectEvalExpression(global.context, passNode(callee), passNodeArray(_arguments), _arguments.length, passNode(typeParams), optional_arg, parserStatus))
|
|
46
|
+
return new DirectEvalExpression(global.generatedEs2panda._CreateDirectEvalExpression(global.context, passNode(callee), passNodeArray(_arguments), _arguments.length, passNode(typeParams), optional_arg, parserStatus)).updateChildren()
|
|
42
47
|
}
|
|
43
48
|
static updateDirectEvalExpression(original: DirectEvalExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression {
|
|
44
|
-
return new DirectEvalExpression(global.generatedEs2panda._UpdateDirectEvalExpression(global.context, passNode(original), passNode(callee), passNodeArray(_arguments), _arguments.length, passNode(typeParams), optional_arg, parserStatus))
|
|
49
|
+
return new DirectEvalExpression(global.generatedEs2panda._UpdateDirectEvalExpression(global.context, passNode(original), passNode(callee), passNodeArray(_arguments), _arguments.length, passNode(typeParams), optional_arg, parserStatus)).updateChildren()
|
|
45
50
|
}
|
|
51
|
+
protected readonly brandDirectEvalExpression: undefined
|
|
46
52
|
}
|
|
47
53
|
export function isDirectEvalExpression(node: object | undefined): node is DirectEvalExpression {
|
|
48
54
|
return node instanceof DirectEvalExpression
|
|
49
55
|
}
|
|
50
56
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_DIRECT_EVAL)) {
|
|
51
57
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_DIRECT_EVAL, (peer: KNativePointer) => new DirectEvalExpression(peer))
|
|
52
|
-
}
|
|
58
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -32,16 +36,17 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
|
32
36
|
import { Expression } from "./Expression"
|
|
33
37
|
import { LoopStatement } from "./LoopStatement"
|
|
34
38
|
import { Statement } from "./Statement"
|
|
39
|
+
|
|
35
40
|
export class DoWhileStatement extends LoopStatement {
|
|
36
41
|
constructor(pointer: KNativePointer) {
|
|
37
42
|
assertValidPeer(pointer, 24)
|
|
38
43
|
super(pointer)
|
|
39
44
|
}
|
|
40
45
|
static createDoWhileStatement(body?: Statement, test?: Expression): DoWhileStatement {
|
|
41
|
-
return new DoWhileStatement(global.generatedEs2panda._CreateDoWhileStatement(global.context, passNode(body), passNode(test)))
|
|
46
|
+
return new DoWhileStatement(global.generatedEs2panda._CreateDoWhileStatement(global.context, passNode(body), passNode(test))).updateChildren()
|
|
42
47
|
}
|
|
43
48
|
static updateDoWhileStatement(original?: DoWhileStatement, body?: Statement, test?: Expression): DoWhileStatement {
|
|
44
|
-
return new DoWhileStatement(global.generatedEs2panda._UpdateDoWhileStatement(global.context, passNode(original), passNode(body), passNode(test)))
|
|
49
|
+
return new DoWhileStatement(global.generatedEs2panda._UpdateDoWhileStatement(global.context, passNode(original), passNode(body), passNode(test))).updateChildren()
|
|
45
50
|
}
|
|
46
51
|
get body(): Statement | undefined {
|
|
47
52
|
return unpackNode(global.generatedEs2panda._DoWhileStatementBody(global.context, this.peer))
|
|
@@ -49,10 +54,11 @@ export class DoWhileStatement extends LoopStatement {
|
|
|
49
54
|
get test(): Expression | undefined {
|
|
50
55
|
return unpackNode(global.generatedEs2panda._DoWhileStatementTest(global.context, this.peer))
|
|
51
56
|
}
|
|
57
|
+
protected readonly brandDoWhileStatement: undefined
|
|
52
58
|
}
|
|
53
59
|
export function isDoWhileStatement(node: object | undefined): node is DoWhileStatement {
|
|
54
60
|
return node instanceof DoWhileStatement
|
|
55
61
|
}
|
|
56
62
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_DO_WHILE_STATEMENT)) {
|
|
57
63
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_DO_WHILE_STATEMENT, (peer: KNativePointer) => new DoWhileStatement(peer))
|
|
58
|
-
}
|
|
64
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -28,8 +32,10 @@ import {
|
|
|
28
32
|
unpackString
|
|
29
33
|
} from "../../reexport-for-generated"
|
|
30
34
|
|
|
35
|
+
|
|
31
36
|
export class DynamicImportData extends ArktsObject {
|
|
32
37
|
constructor(pointer: KNativePointer) {
|
|
33
38
|
super(pointer)
|
|
34
39
|
}
|
|
35
|
-
|
|
40
|
+
protected readonly brandDynamicImportData: undefined
|
|
41
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -31,24 +35,26 @@ import {
|
|
|
31
35
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
36
|
import { Expression } from "./Expression"
|
|
33
37
|
import { TypeNode } from "./TypeNode"
|
|
38
|
+
|
|
34
39
|
export class ETSClassLiteral extends Expression {
|
|
35
40
|
constructor(pointer: KNativePointer) {
|
|
36
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 71)
|
|
37
42
|
super(pointer)
|
|
38
43
|
}
|
|
39
44
|
static createETSClassLiteral(expr?: TypeNode): ETSClassLiteral {
|
|
40
|
-
return new ETSClassLiteral(global.generatedEs2panda._CreateETSClassLiteral(global.context, passNode(expr)))
|
|
45
|
+
return new ETSClassLiteral(global.generatedEs2panda._CreateETSClassLiteral(global.context, passNode(expr))).updateChildren()
|
|
41
46
|
}
|
|
42
47
|
static updateETSClassLiteral(original?: ETSClassLiteral, expr?: TypeNode): ETSClassLiteral {
|
|
43
|
-
return new ETSClassLiteral(global.generatedEs2panda._UpdateETSClassLiteral(global.context, passNode(original), passNode(expr)))
|
|
48
|
+
return new ETSClassLiteral(global.generatedEs2panda._UpdateETSClassLiteral(global.context, passNode(original), passNode(expr))).updateChildren()
|
|
44
49
|
}
|
|
45
50
|
get expr(): TypeNode | undefined {
|
|
46
51
|
return unpackNode(global.generatedEs2panda._ETSClassLiteralExprConst(global.context, this.peer))
|
|
47
52
|
}
|
|
53
|
+
protected readonly brandETSClassLiteral: undefined
|
|
48
54
|
}
|
|
49
55
|
export function isETSClassLiteral(node: object | undefined): node is ETSClassLiteral {
|
|
50
56
|
return node instanceof ETSClassLiteral
|
|
51
57
|
}
|
|
52
58
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_CLASS_LITERAL)) {
|
|
53
59
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_CLASS_LITERAL, (peer: KNativePointer) => new ETSClassLiteral(peer))
|
|
54
|
-
}
|
|
60
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -35,16 +39,17 @@ import { FunctionSignature } from "./FunctionSignature"
|
|
|
35
39
|
import { TSInterfaceDeclaration } from "./TSInterfaceDeclaration"
|
|
36
40
|
import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
|
|
37
41
|
import { TypeNode } from "./TypeNode"
|
|
42
|
+
|
|
38
43
|
export class ETSFunctionType extends TypeNode {
|
|
39
44
|
constructor(pointer: KNativePointer) {
|
|
40
|
-
assertValidPeer(pointer,
|
|
45
|
+
assertValidPeer(pointer, 67)
|
|
41
46
|
super(pointer)
|
|
42
47
|
}
|
|
43
48
|
static createETSFunctionType(signature: FunctionSignature | undefined, funcFlags: Es2pandaScriptFunctionFlags): ETSFunctionType {
|
|
44
|
-
return new ETSFunctionType(global.generatedEs2panda._CreateETSFunctionType(global.context, passNode(signature), funcFlags))
|
|
49
|
+
return new ETSFunctionType(global.generatedEs2panda._CreateETSFunctionType(global.context, passNode(signature), funcFlags)).updateChildren()
|
|
45
50
|
}
|
|
46
51
|
static updateETSFunctionType(original: ETSFunctionType | undefined, signature: FunctionSignature | undefined, funcFlags: Es2pandaScriptFunctionFlags): ETSFunctionType {
|
|
47
|
-
return new ETSFunctionType(global.generatedEs2panda._UpdateETSFunctionType(global.context, passNode(original), passNode(signature), funcFlags))
|
|
52
|
+
return new ETSFunctionType(global.generatedEs2panda._UpdateETSFunctionType(global.context, passNode(original), passNode(signature), funcFlags)).updateChildren()
|
|
48
53
|
}
|
|
49
54
|
get typeParams(): TSTypeParameterDeclaration | undefined {
|
|
50
55
|
return unpackNode(global.generatedEs2panda._ETSFunctionTypeTypeParams(global.context, this.peer))
|
|
@@ -75,10 +80,11 @@ export class ETSFunctionType extends TypeNode {
|
|
|
75
80
|
get isExtensionFunction(): boolean {
|
|
76
81
|
return global.generatedEs2panda._ETSFunctionTypeIsExtensionFunctionConst(global.context, this.peer)
|
|
77
82
|
}
|
|
83
|
+
protected readonly brandETSFunctionType: undefined
|
|
78
84
|
}
|
|
79
85
|
export function isETSFunctionType(node: object | undefined): node is ETSFunctionType {
|
|
80
86
|
return node instanceof ETSFunctionType
|
|
81
87
|
}
|
|
82
88
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_FUNCTION_TYPE)) {
|
|
83
89
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_FUNCTION_TYPE, (peer: KNativePointer) => new ETSFunctionType(peer))
|
|
84
|
-
}
|
|
90
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -34,16 +38,17 @@ import { Es2pandaImportFlags } from "./../Es2pandaEnums"
|
|
|
34
38
|
import { Es2pandaImportKinds } from "./../Es2pandaEnums"
|
|
35
39
|
import { ImportDeclaration } from "./ImportDeclaration"
|
|
36
40
|
import { StringLiteral } from "./StringLiteral"
|
|
41
|
+
|
|
37
42
|
export class ETSImportDeclaration extends ImportDeclaration {
|
|
38
43
|
constructor(pointer: KNativePointer) {
|
|
39
|
-
assertValidPeer(pointer,
|
|
44
|
+
assertValidPeer(pointer, 79)
|
|
40
45
|
super(pointer)
|
|
41
46
|
}
|
|
42
47
|
static createETSImportDeclaration(importPath: StringLiteral | undefined, specifiers: readonly AstNode[], importKinds: Es2pandaImportKinds): ETSImportDeclaration {
|
|
43
|
-
return new ETSImportDeclaration(global.generatedEs2panda._CreateETSImportDeclaration(global.context, passNode(importPath), passNodeArray(specifiers), specifiers.length, importKinds))
|
|
48
|
+
return new ETSImportDeclaration(global.generatedEs2panda._CreateETSImportDeclaration(global.context, passNode(importPath), passNodeArray(specifiers), specifiers.length, importKinds)).updateChildren()
|
|
44
49
|
}
|
|
45
50
|
static updateETSImportDeclaration(original: ETSImportDeclaration | undefined, importPath: StringLiteral | undefined, specifiers: readonly AstNode[], importKinds: Es2pandaImportKinds): ETSImportDeclaration {
|
|
46
|
-
return new ETSImportDeclaration(global.generatedEs2panda._UpdateETSImportDeclaration(global.context, passNode(original), passNode(importPath), passNodeArray(specifiers), specifiers.length, importKinds))
|
|
51
|
+
return new ETSImportDeclaration(global.generatedEs2panda._UpdateETSImportDeclaration(global.context, passNode(original), passNode(importPath), passNodeArray(specifiers), specifiers.length, importKinds)).updateChildren()
|
|
47
52
|
}
|
|
48
53
|
/** @deprecated */
|
|
49
54
|
setImportMetadata(importFlags: Es2pandaImportFlags, lang: Es2pandaId, resolvedSource: string, declPath: string, ohmUrl: string): this {
|
|
@@ -62,16 +67,22 @@ export class ETSImportDeclaration extends ImportDeclaration {
|
|
|
62
67
|
get isPureDynamic(): boolean {
|
|
63
68
|
return global.generatedEs2panda._ETSImportDeclarationIsPureDynamicConst(global.context, this.peer)
|
|
64
69
|
}
|
|
70
|
+
/** @deprecated */
|
|
71
|
+
setAssemblerName(assemblerName: string): this {
|
|
72
|
+
global.generatedEs2panda._ETSImportDeclarationSetAssemblerName(global.context, this.peer, assemblerName)
|
|
73
|
+
return this
|
|
74
|
+
}
|
|
65
75
|
get assemblerName(): string {
|
|
66
|
-
return unpackString(global.generatedEs2panda.
|
|
76
|
+
return unpackString(global.generatedEs2panda._ETSImportDeclarationAssemblerNameConst(global.context, this.peer))
|
|
67
77
|
}
|
|
68
78
|
get resolvedSource(): string {
|
|
69
79
|
return unpackString(global.generatedEs2panda._ETSImportDeclarationResolvedSourceConst(global.context, this.peer))
|
|
70
80
|
}
|
|
81
|
+
protected readonly brandETSImportDeclaration: undefined
|
|
71
82
|
}
|
|
72
83
|
export function isETSImportDeclaration(node: object | undefined): node is ETSImportDeclaration {
|
|
73
84
|
return node instanceof ETSImportDeclaration
|
|
74
85
|
}
|
|
75
86
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION)) {
|
|
76
87
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION, (peer: KNativePointer) => new ETSImportDeclaration(peer))
|
|
77
|
-
}
|
|
88
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -30,24 +34,26 @@ import {
|
|
|
30
34
|
|
|
31
35
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
36
|
import { TypeNode } from "./TypeNode"
|
|
37
|
+
|
|
33
38
|
export class ETSKeyofType extends TypeNode {
|
|
34
39
|
constructor(pointer: KNativePointer) {
|
|
35
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 75)
|
|
36
41
|
super(pointer)
|
|
37
42
|
}
|
|
38
43
|
static createETSKeyofType(type?: TypeNode): ETSKeyofType {
|
|
39
|
-
return new ETSKeyofType(global.generatedEs2panda._CreateETSKeyofType(global.context, passNode(type)))
|
|
44
|
+
return new ETSKeyofType(global.generatedEs2panda._CreateETSKeyofType(global.context, passNode(type))).updateChildren()
|
|
40
45
|
}
|
|
41
46
|
static updateETSKeyofType(original?: ETSKeyofType, type?: TypeNode): ETSKeyofType {
|
|
42
|
-
return new ETSKeyofType(global.generatedEs2panda._UpdateETSKeyofType(global.context, passNode(original), passNode(type)))
|
|
47
|
+
return new ETSKeyofType(global.generatedEs2panda._UpdateETSKeyofType(global.context, passNode(original), passNode(type))).updateChildren()
|
|
43
48
|
}
|
|
44
49
|
get typeRef(): TypeNode | undefined {
|
|
45
50
|
return unpackNode(global.generatedEs2panda._ETSKeyofTypeGetTypeRefConst(global.context, this.peer))
|
|
46
51
|
}
|
|
52
|
+
protected readonly brandETSKeyofType: undefined
|
|
47
53
|
}
|
|
48
54
|
export function isETSKeyofType(node: object | undefined): node is ETSKeyofType {
|
|
49
55
|
return node instanceof ETSKeyofType
|
|
50
56
|
}
|
|
51
57
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_KEYOF_TYPE)) {
|
|
52
58
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_KEYOF_TYPE, (peer: KNativePointer) => new ETSKeyofType(peer))
|
|
53
|
-
}
|
|
59
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -30,16 +34,38 @@ import {
|
|
|
30
34
|
|
|
31
35
|
import { AnnotationUsage } from "./AnnotationUsage"
|
|
32
36
|
import { BlockStatement } from "./BlockStatement"
|
|
37
|
+
import { ClassDefinition } from "./ClassDefinition"
|
|
33
38
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
39
|
+
import { Es2pandaModuleFlag } from "./../Es2pandaEnums"
|
|
34
40
|
import { Identifier } from "./Identifier"
|
|
41
|
+
import { Program } from "./Program"
|
|
42
|
+
import { Statement } from "./Statement"
|
|
43
|
+
|
|
35
44
|
export class ETSModule extends BlockStatement {
|
|
36
45
|
constructor(pointer: KNativePointer) {
|
|
37
|
-
assertValidPeer(pointer,
|
|
46
|
+
assertValidPeer(pointer, 82)
|
|
38
47
|
super(pointer)
|
|
39
48
|
}
|
|
49
|
+
static createETSModule(statementList: readonly Statement[], ident: Identifier | undefined, flag: Es2pandaModuleFlag, program?: Program): ETSModule {
|
|
50
|
+
return new ETSModule(global.generatedEs2panda._CreateETSModule(global.context, passNodeArray(statementList), statementList.length, passNode(ident), flag, passNode(program))).updateChildren()
|
|
51
|
+
}
|
|
52
|
+
static updateETSModule(original: ETSModule | undefined, statementList: readonly Statement[], ident: Identifier | undefined, flag: Es2pandaModuleFlag, program?: Program): ETSModule {
|
|
53
|
+
return new ETSModule(global.generatedEs2panda._UpdateETSModule(global.context, passNode(original), passNodeArray(statementList), statementList.length, passNode(ident), flag, passNode(program))).updateChildren()
|
|
54
|
+
}
|
|
40
55
|
get ident(): Identifier | undefined {
|
|
41
56
|
return unpackNode(global.generatedEs2panda._ETSModuleIdent(global.context, this.peer))
|
|
42
57
|
}
|
|
58
|
+
get program(): Program | undefined {
|
|
59
|
+
return new Program(global.generatedEs2panda._ETSModuleProgram(global.context, this.peer))
|
|
60
|
+
}
|
|
61
|
+
get globalClass(): ClassDefinition | undefined {
|
|
62
|
+
return unpackNode(global.generatedEs2panda._ETSModuleGlobalClass(global.context, this.peer))
|
|
63
|
+
}
|
|
64
|
+
/** @deprecated */
|
|
65
|
+
setGlobalClass(globalClass?: ClassDefinition): this {
|
|
66
|
+
global.generatedEs2panda._ETSModuleSetGlobalClass(global.context, this.peer, passNode(globalClass))
|
|
67
|
+
return this
|
|
68
|
+
}
|
|
43
69
|
get isETSScript(): boolean {
|
|
44
70
|
return global.generatedEs2panda._ETSModuleIsETSScriptConst(global.context, this.peer)
|
|
45
71
|
}
|
|
@@ -54,18 +80,47 @@ export class ETSModule extends BlockStatement {
|
|
|
54
80
|
global.generatedEs2panda._ETSModuleSetNamespaceChainLastNode(global.context, this.peer)
|
|
55
81
|
return this
|
|
56
82
|
}
|
|
83
|
+
/** @deprecated */
|
|
84
|
+
emplaceAnnotations(source?: AnnotationUsage): this {
|
|
85
|
+
global.generatedEs2panda._ETSModuleEmplaceAnnotations(global.context, this.peer, passNode(source))
|
|
86
|
+
return this
|
|
87
|
+
}
|
|
88
|
+
/** @deprecated */
|
|
89
|
+
clearAnnotations(): this {
|
|
90
|
+
global.generatedEs2panda._ETSModuleClearAnnotations(global.context, this.peer)
|
|
91
|
+
return this
|
|
92
|
+
}
|
|
93
|
+
/** @deprecated */
|
|
94
|
+
setValueAnnotations(source: AnnotationUsage | undefined, index: number): this {
|
|
95
|
+
global.generatedEs2panda._ETSModuleSetValueAnnotations(global.context, this.peer, passNode(source), index)
|
|
96
|
+
return this
|
|
97
|
+
}
|
|
98
|
+
get annotationsForUpdate(): readonly AnnotationUsage[] {
|
|
99
|
+
return unpackNodeArray(global.generatedEs2panda._ETSModuleAnnotationsForUpdate(global.context, this.peer))
|
|
100
|
+
}
|
|
57
101
|
get annotations(): readonly AnnotationUsage[] {
|
|
58
102
|
return unpackNodeArray(global.generatedEs2panda._ETSModuleAnnotations(global.context, this.peer))
|
|
59
103
|
}
|
|
60
104
|
/** @deprecated */
|
|
61
|
-
setAnnotations(
|
|
62
|
-
global.generatedEs2panda._ETSModuleSetAnnotations(global.context, this.peer, passNodeArray(
|
|
105
|
+
setAnnotations(annotationList: readonly AnnotationUsage[]): this {
|
|
106
|
+
global.generatedEs2panda._ETSModuleSetAnnotations(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
63
107
|
return this
|
|
64
108
|
}
|
|
109
|
+
/** @deprecated */
|
|
110
|
+
setAnnotations1(annotationList: readonly AnnotationUsage[]): this {
|
|
111
|
+
global.generatedEs2panda._ETSModuleSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
|
|
112
|
+
return this
|
|
113
|
+
}
|
|
114
|
+
/** @deprecated */
|
|
115
|
+
addAnnotations(annotations?: AnnotationUsage): this {
|
|
116
|
+
global.generatedEs2panda._ETSModuleAddAnnotations(global.context, this.peer, passNode(annotations))
|
|
117
|
+
return this
|
|
118
|
+
}
|
|
119
|
+
protected readonly brandETSModule: undefined
|
|
65
120
|
}
|
|
66
121
|
export function isETSModule(node: object | undefined): node is ETSModule {
|
|
67
122
|
return node instanceof ETSModule
|
|
68
123
|
}
|
|
69
124
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE)) {
|
|
70
125
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE, (peer: KNativePointer) => new ETSModule(peer))
|
|
71
|
-
}
|
|
126
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -31,16 +35,17 @@ import {
|
|
|
31
35
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
36
|
import { Expression } from "./Expression"
|
|
33
37
|
import { TypeNode } from "./TypeNode"
|
|
38
|
+
|
|
34
39
|
export class ETSNewArrayInstanceExpression extends Expression {
|
|
35
40
|
constructor(pointer: KNativePointer) {
|
|
36
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 76)
|
|
37
42
|
super(pointer)
|
|
38
43
|
}
|
|
39
44
|
static createETSNewArrayInstanceExpression(typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression {
|
|
40
|
-
return new ETSNewArrayInstanceExpression(global.generatedEs2panda._CreateETSNewArrayInstanceExpression(global.context, passNode(typeReference), passNode(dimension)))
|
|
45
|
+
return new ETSNewArrayInstanceExpression(global.generatedEs2panda._CreateETSNewArrayInstanceExpression(global.context, passNode(typeReference), passNode(dimension))).updateChildren()
|
|
41
46
|
}
|
|
42
47
|
static updateETSNewArrayInstanceExpression(original?: ETSNewArrayInstanceExpression, typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression {
|
|
43
|
-
return new ETSNewArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNode(dimension)))
|
|
48
|
+
return new ETSNewArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNode(dimension))).updateChildren()
|
|
44
49
|
}
|
|
45
50
|
get typeReference(): TypeNode | undefined {
|
|
46
51
|
return unpackNode(global.generatedEs2panda._ETSNewArrayInstanceExpressionTypeReference(global.context, this.peer))
|
|
@@ -58,10 +63,11 @@ export class ETSNewArrayInstanceExpression extends Expression {
|
|
|
58
63
|
global.generatedEs2panda._ETSNewArrayInstanceExpressionClearPreferredType(global.context, this.peer)
|
|
59
64
|
return this
|
|
60
65
|
}
|
|
66
|
+
protected readonly brandETSNewArrayInstanceExpression: undefined
|
|
61
67
|
}
|
|
62
68
|
export function isETSNewArrayInstanceExpression(node: object | undefined): node is ETSNewArrayInstanceExpression {
|
|
63
69
|
return node instanceof ETSNewArrayInstanceExpression
|
|
64
70
|
}
|
|
65
71
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_NEW_ARRAY_INSTANCE_EXPRESSION)) {
|
|
66
72
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_NEW_ARRAY_INSTANCE_EXPRESSION, (peer: KNativePointer) => new ETSNewArrayInstanceExpression(peer))
|
|
67
|
-
}
|
|
73
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -30,19 +34,20 @@ import {
|
|
|
30
34
|
|
|
31
35
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
36
|
import { Expression } from "./Expression"
|
|
37
|
+
|
|
33
38
|
export class ETSNewClassInstanceExpression extends Expression {
|
|
34
39
|
constructor(pointer: KNativePointer) {
|
|
35
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 78)
|
|
36
41
|
super(pointer)
|
|
37
42
|
}
|
|
38
43
|
static createETSNewClassInstanceExpression(typeReference: Expression | undefined, _arguments: readonly Expression[]): ETSNewClassInstanceExpression {
|
|
39
|
-
return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression(global.context, passNode(typeReference), passNodeArray(_arguments), _arguments.length))
|
|
44
|
+
return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression(global.context, passNode(typeReference), passNodeArray(_arguments), _arguments.length)).updateChildren()
|
|
40
45
|
}
|
|
41
46
|
static updateETSNewClassInstanceExpression(original: ETSNewClassInstanceExpression | undefined, typeReference: Expression | undefined, _arguments: readonly Expression[]): ETSNewClassInstanceExpression {
|
|
42
|
-
return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression(global.context, passNode(original), passNode(typeReference), passNodeArray(_arguments), _arguments.length))
|
|
47
|
+
return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression(global.context, passNode(original), passNode(typeReference), passNodeArray(_arguments), _arguments.length)).updateChildren()
|
|
43
48
|
}
|
|
44
49
|
static update1ETSNewClassInstanceExpression(original?: ETSNewClassInstanceExpression, other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression {
|
|
45
|
-
return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression1(global.context, passNode(original), passNode(other)))
|
|
50
|
+
return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression1(global.context, passNode(original), passNode(other))).updateChildren()
|
|
46
51
|
}
|
|
47
52
|
get typeRef(): Expression | undefined {
|
|
48
53
|
return unpackNode(global.generatedEs2panda._ETSNewClassInstanceExpressionGetTypeRefConst(global.context, this.peer))
|
|
@@ -60,10 +65,11 @@ export class ETSNewClassInstanceExpression extends Expression {
|
|
|
60
65
|
global.generatedEs2panda._ETSNewClassInstanceExpressionAddToArgumentsFront(global.context, this.peer, passNode(expr))
|
|
61
66
|
return this
|
|
62
67
|
}
|
|
68
|
+
protected readonly brandETSNewClassInstanceExpression: undefined
|
|
63
69
|
}
|
|
64
70
|
export function isETSNewClassInstanceExpression(node: object | undefined): node is ETSNewClassInstanceExpression {
|
|
65
71
|
return node instanceof ETSNewClassInstanceExpression
|
|
66
72
|
}
|
|
67
73
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_NEW_CLASS_INSTANCE_EXPRESSION)) {
|
|
68
74
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_NEW_CLASS_INSTANCE_EXPRESSION, (peer: KNativePointer) => new ETSNewClassInstanceExpression(peer))
|
|
69
|
-
}
|
|
75
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -31,19 +35,20 @@ import {
|
|
|
31
35
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
36
|
import { Expression } from "./Expression"
|
|
33
37
|
import { TypeNode } from "./TypeNode"
|
|
38
|
+
|
|
34
39
|
export class ETSNewMultiDimArrayInstanceExpression extends Expression {
|
|
35
40
|
constructor(pointer: KNativePointer) {
|
|
36
|
-
assertValidPeer(pointer,
|
|
41
|
+
assertValidPeer(pointer, 77)
|
|
37
42
|
super(pointer)
|
|
38
43
|
}
|
|
39
44
|
static createETSNewMultiDimArrayInstanceExpression(typeReference: TypeNode | undefined, dimensions: readonly Expression[]): ETSNewMultiDimArrayInstanceExpression {
|
|
40
|
-
return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression(global.context, passNode(typeReference), passNodeArray(dimensions), dimensions.length))
|
|
45
|
+
return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression(global.context, passNode(typeReference), passNodeArray(dimensions), dimensions.length)).updateChildren()
|
|
41
46
|
}
|
|
42
47
|
static updateETSNewMultiDimArrayInstanceExpression(original: ETSNewMultiDimArrayInstanceExpression | undefined, typeReference: TypeNode | undefined, dimensions: readonly Expression[]): ETSNewMultiDimArrayInstanceExpression {
|
|
43
|
-
return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNodeArray(dimensions), dimensions.length))
|
|
48
|
+
return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNodeArray(dimensions), dimensions.length)).updateChildren()
|
|
44
49
|
}
|
|
45
50
|
static update1ETSNewMultiDimArrayInstanceExpression(original?: ETSNewMultiDimArrayInstanceExpression, other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression {
|
|
46
|
-
return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression1(global.context, passNode(original), passNode(other)))
|
|
51
|
+
return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression1(global.context, passNode(original), passNode(other))).updateChildren()
|
|
47
52
|
}
|
|
48
53
|
get typeReference(): TypeNode | undefined {
|
|
49
54
|
return unpackNode(global.generatedEs2panda._ETSNewMultiDimArrayInstanceExpressionTypeReference(global.context, this.peer))
|
|
@@ -56,10 +61,11 @@ export class ETSNewMultiDimArrayInstanceExpression extends Expression {
|
|
|
56
61
|
global.generatedEs2panda._ETSNewMultiDimArrayInstanceExpressionClearPreferredType(global.context, this.peer)
|
|
57
62
|
return this
|
|
58
63
|
}
|
|
64
|
+
protected readonly brandETSNewMultiDimArrayInstanceExpression: undefined
|
|
59
65
|
}
|
|
60
66
|
export function isETSNewMultiDimArrayInstanceExpression(node: object | undefined): node is ETSNewMultiDimArrayInstanceExpression {
|
|
61
67
|
return node instanceof ETSNewMultiDimArrayInstanceExpression
|
|
62
68
|
}
|
|
63
69
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_NEW_MULTI_DIM_ARRAY_INSTANCE_EXPRESSION)) {
|
|
64
70
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_NEW_MULTI_DIM_ARRAY_INSTANCE_EXPRESSION, (peer: KNativePointer) => new ETSNewMultiDimArrayInstanceExpression(peer))
|
|
65
|
-
}
|
|
71
|
+
}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* THIS FILE IS AUTOGENERATED BY arktscgen. DO NOT EDIT MANUALLY!
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
import {
|
|
17
21
|
global,
|
|
18
22
|
passNode,
|
|
@@ -30,21 +34,23 @@ import {
|
|
|
30
34
|
|
|
31
35
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
32
36
|
import { TypeNode } from "./TypeNode"
|
|
37
|
+
|
|
33
38
|
export class ETSNullType extends TypeNode {
|
|
34
39
|
constructor(pointer: KNativePointer) {
|
|
35
|
-
assertValidPeer(pointer,
|
|
40
|
+
assertValidPeer(pointer, 63)
|
|
36
41
|
super(pointer)
|
|
37
42
|
}
|
|
38
43
|
static createETSNullType(): ETSNullType {
|
|
39
|
-
return new ETSNullType(global.generatedEs2panda._CreateETSNullType(global.context))
|
|
44
|
+
return new ETSNullType(global.generatedEs2panda._CreateETSNullType(global.context)).updateChildren()
|
|
40
45
|
}
|
|
41
46
|
static updateETSNullType(original?: ETSNullType): ETSNullType {
|
|
42
|
-
return new ETSNullType(global.generatedEs2panda._UpdateETSNullType(global.context, passNode(original)))
|
|
47
|
+
return new ETSNullType(global.generatedEs2panda._UpdateETSNullType(global.context, passNode(original))).updateChildren()
|
|
43
48
|
}
|
|
49
|
+
protected readonly brandETSNullType: undefined
|
|
44
50
|
}
|
|
45
51
|
export function isETSNullType(node: object | undefined): node is ETSNullType {
|
|
46
52
|
return node instanceof ETSNullType
|
|
47
53
|
}
|
|
48
54
|
if (!nodeByType.has(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_NULL_TYPE)) {
|
|
49
55
|
nodeByType.set(Es2pandaAstNodeType.AST_NODE_TYPE_ETS_NULL_TYPE, (peer: KNativePointer) => new ETSNullType(peer))
|
|
50
|
-
}
|
|
56
|
+
}
|