From 87f395ae3801938c58e1286ead8ae394bf80559d Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 18 Feb 2025 15:38:44 +0300 Subject: [PATCH 01/12] rearrange code to remove cyclic dep Signed-off-by: naumovdmitrii --- .../libarkts/src/arkts-api/peers/AstNode.ts | 14 ++------- .../libarkts/src/arkts-api/peers/Context.ts | 3 -- arkoala-arkts/libarkts/src/arkts-api/types.ts | 29 ++++++------------- .../src/arkts-api/utilities/private.ts | 22 +++++++++----- .../src/arkts-api/utilities/public.ts | 4 +-- arkoala-arkts/libarkts/src/utils.ts | 9 +++--- 6 files changed, 33 insertions(+), 48 deletions(-) diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts index 5fc86f1882..5b0ae55cfe 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts @@ -13,29 +13,22 @@ * limitations under the License. */ -import { KNativePointer } from "@koalaui/interop" +import { isNullPtr, KInt, KNativePointer, nullptr } from "@koalaui/interop" import { global } from "../static/global" -import { Es2pandaAstNodeType } from "../../Es2pandaEnums" -import { unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private" +import { allFlags, unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private" import { throwError } from "../../utils" import { Es2pandaModifierFlags } from "../../generated/Es2pandaEnums" -import { allFlags } from "../types" -import { KInt } from "@koalaui/interop" -import { isNullPtr, nullptr } from "@koalaui/interop" import { ArktsObject } from "./ArktsObject" export abstract class AstNode extends ArktsObject { protected constructor(peer: KNativePointer) { if (isNullPtr(peer)) { - throw new Error('trying to create new Node on NULLPTR') + throwError('trying to create new Node on NULLPTR') } super(peer) - this.type = global.generatedEs2panda._AstNodeTypeConst(global.context, this.peer) this.updateChildren() } - readonly type: Es2pandaAstNodeType - public get originalPeer(): KNativePointer { return global.generatedEs2panda._AstNodeOriginalNodeConst(global.context, this.peer) } @@ -75,7 +68,6 @@ export abstract class AstNode extends ArktsObject { .map((it) => it.dump(indentation + 1)) const msg = `${indentation}_` - + Es2pandaAstNodeType[this.type] + ` ` + this.dumpMessage() return "> " + " ".repeat(4 * indentation) + msg + "\n" + children.join("") diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts index 07fede2a8f..e6ee16f0b1 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts @@ -24,9 +24,6 @@ export class Context extends ArktsObject { super(peer) } - // TODO: - // static create - static createFromString( source: string ): Context { diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index a3168d27ba..37bf647dd0 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -17,7 +17,6 @@ import { global } from "./static/global" import { throwError } from "../utils" import { KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/interop" import { - Es2pandaClassDefinitionModifiers, Es2pandaContextState, Es2pandaExpressionParseFlags, Es2pandaIdentifierFlags, @@ -31,10 +30,12 @@ import { Es2pandaVariableDeclaratorFlag, } from "../generated/Es2pandaEnums" import { + allFlags, + arrayOfNullptr, + nodeType, passNode, passNodeArray, passString, - resolveSource, unpackNode, unpackNodeArray, unpackNonNullableNode, @@ -47,17 +48,7 @@ import { AstNode } from "./peers/AstNode" import { ArktsObject } from "./peers/ArktsObject" import { Config } from "./peers/Config" import { Context } from "./peers/Context" -import { factory } from "@koalaui/ets-tsc" - -export const arrayOfNullptr = new BigUint64Array([nullptr]) - -export const allFlags: KInt = - Object.values(Es2pandaModifierFlags).filter( - (value: any) => { return (typeof value) === 'number' } - ).reduce( - (prev: KInt, next: KInt): KInt => (prev | next), - 0 as KInt - ) +import * as path from "node:path" export function assertValidPeer(peer: KPtr, expectedKind: Es2pandaAstNodeType): void { if (peer === nullptr) { @@ -72,7 +63,7 @@ export function assertValidPeer(peer: KPtr, expectedKind: Es2pandaAstNodeType): export class UnsupportedNode extends AstNode { constructor(peer: KPtr) { super(peer) - console.log(`WARNING: UNSUPPORTED NODE (arkts): ${Es2pandaAstNodeType[this.type]}`) + console.warn(`Warning: unsupported node ${Es2pandaAstNodeType[nodeType(this)]}`) } } @@ -255,10 +246,6 @@ export class ETSPrimitiveType extends AstNode { ) } - protected override dumpMessage(): string { - return ` ` - } - readonly primitiveType: Es2pandaPrimitiveType } @@ -607,7 +594,7 @@ export class ScriptFunction extends AstNode { // TODO: goes through whole subtree, optimizable (unnecessary now) this.body.getSubtree().forEach( (node: AstNode) => { - hasReturn = hasReturn || (node.type === Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT) + hasReturn = hasReturn || nodeType(node) === Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT } ) return hasReturn @@ -1192,7 +1179,9 @@ export class ImportSource extends ArktsObject { global.es2panda._CreateImportSource( global.context, source.peer, - resolveSource(source).peer, + StringLiteral.create( + path.resolve(source.str).toString() + ).peer, hasDecl ) ) diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts index c6ec7acdc9..348af93bbf 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts @@ -17,13 +17,11 @@ import { global } from "../static/global" import { throwError } from "../../utils" import { KInt, KNativePointer, nullptr, withString, withStringArray, withStringResult } from "@koalaui/interop" import { NativePtrDecoder } from "./nativePtrDecoder" -import * as path from "node:path" -import { allFlags, StringLiteral } from "../types" -import { Es2pandaScriptFunctionFlags } from "../../generated/Es2pandaEnums" -import { factory } from "../factory/nodeFactory" +import { Es2pandaModifierFlags, Es2pandaScriptFunctionFlags } from "../../generated/Es2pandaEnums" import { classByPeer } from "../class-by-peer" import { AstNode } from "../peers/AstNode" import { ArktsObject } from "../peers/ArktsObject" +import { Es2pandaAstNodeType } from "../../Es2pandaEnums" export function unpackNonNullableNode(peer: KNativePointer): T { if (peer === nullptr) { @@ -130,8 +128,16 @@ export function updateNodeByNode(node: T, original: AstNode): return node } -export function resolveSource(source: StringLiteral): StringLiteral { - return factory.createStringLiteral( - path.resolve(source.str).toString() - ) +export function nodeType(node: AstNode): Es2pandaAstNodeType { + return global.generatedEs2panda._AstNodeTypeConst(global.context, passNode(node)) } + +export const arrayOfNullptr = new BigUint64Array([nullptr]) + +export const allFlags: KInt = + Object.values(Es2pandaModifierFlags).filter( + (value: any) => { return (typeof value) === 'number' } + ).reduce( + (prev: KInt, next: KInt): KInt => (prev | next), + 0 as KInt + ) \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts index 7231cc0f59..97b89a6fb6 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -15,12 +15,12 @@ import { global } from "../static/global" import { throwError } from "../../utils" -import { KNativePointer, nullptr, withStringResult } from "@koalaui/interop" +import { nullptr, withStringResult } from "@koalaui/interop" +import { AnnotationUsageIr } from "../types" import { passNode, unpackNodeArray, unpackNonNullableNode } from "./private" import { isClassDefinition, isFunctionDeclaration, isScriptFunction } from "../factory/nodeTests" import { Es2pandaContextState } from "../../generated/Es2pandaEnums" import { AstNode } from "../peers/AstNode" -import { AnnotationUsageIr } from "../types" export function proceedToState(state: Es2pandaContextState): void { if (state <= global.es2panda._ContextState(global.context)) { diff --git a/arkoala-arkts/libarkts/src/utils.ts b/arkoala-arkts/libarkts/src/utils.ts index c30d3b0f57..15cc29473c 100644 --- a/arkoala-arkts/libarkts/src/utils.ts +++ b/arkoala-arkts/libarkts/src/utils.ts @@ -26,10 +26,11 @@ export function isNumber(value: any): value is number { return typeof value === `number` } -// TODO: the lowerings insert %% and other special symbols -// into names of temporary variables. -// Until we keep feeding ast dumps back to the parser -// this function is needed. +/* + TODO: + The lowerings insert %% and other special symbols into names of temporary variables. + Until we keep feeding ast dumps back to the parser this function is needed. + */ export function filterSource(text: string): string { return text .replaceAll(/%/g, "_") -- Gitee From c7207cd081923c8a3527c82d39e55310b42cc1ff Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 18 Feb 2025 16:44:32 +0300 Subject: [PATCH 02/12] fix cyclic Signed-off-by: naumovdmitrii --- arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts index 348af93bbf..4c8868a40a 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts @@ -19,7 +19,7 @@ import { KInt, KNativePointer, nullptr, withString, withStringArray, withStringR import { NativePtrDecoder } from "./nativePtrDecoder" import { Es2pandaModifierFlags, Es2pandaScriptFunctionFlags } from "../../generated/Es2pandaEnums" import { classByPeer } from "../class-by-peer" -import { AstNode } from "../peers/AstNode" +import type { AstNode } from "../peers/AstNode" import { ArktsObject } from "../peers/ArktsObject" import { Es2pandaAstNodeType } from "../../Es2pandaEnums" -- Gitee From e2469e864357f14e1db8fdf0a94ac59fd5cf5161 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 18 Feb 2025 16:49:21 +0300 Subject: [PATCH 03/12] wip: fails cyclic, added AnnotationUsage Signed-off-by: naumovdmitrii --- .../plugins/src/builder-lambda-transformer.ts | 43 +++++++++---------- .../libarkts/src/arkts-api/class-by-peer.ts | 4 +- .../src/arkts-api/factory/nodeTests.ts | 4 ++ arkoala-arkts/libarkts/src/arkts-api/index.ts | 1 + arkoala-arkts/libarkts/src/arkts-api/types.ts | 26 +++++------ .../src/arkts-api/utilities/private.ts | 20 ++++----- .../src/arkts-api/utilities/public.ts | 4 +- 7 files changed, 53 insertions(+), 49 deletions(-) diff --git a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts index e65728dba2..0da11a7ea9 100644 --- a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts @@ -66,22 +66,22 @@ function getLambdaArg(lambdaBody: arkts.AstNode, typeName: string|undefined): ar ) } -function isBuilderLambdaAnnotation(annotation: arkts.AnnotationUsageIr): boolean { +function isBuilderLambdaAnnotation(annotation: arkts.AnnotationUsage): boolean { if (!arkts.isIdentifier(annotation.expr)) { return false } return annotation.expr.name !== "BuilderLambda" } -function builderLambdaArgumentName(annotation: arkts.AnnotationUsageIr): string | undefined { +function builderLambdaArgumentName(annotation: arkts.AnnotationUsage): string | undefined { if (!isBuilderLambdaAnnotation(annotation)) return undefined + const property = annotation.properties[0] + if (property === undefined) return undefined + if (!arkts.isClassProperty(property)) return undefined + if (property.value === undefined) return undefined + if (!arkts.isStringLiteral(property.value)) return undefined - if (!annotation.properties[0].value || - !arkts.isStringLiteral(annotation.properties[0].value) - ) { - return undefined - } - return annotation.properties[0].value.str + return property.value.str } /* function builderLambdaTypeName(annotation: arkts.AnnotationUsageIr): string | undefined { @@ -95,8 +95,7 @@ function builderLambdaTypeName(annotation: arkts.AnnotationUsageIr): string | un return annotation.properties[1].value.str } */ -function findBuilderLambdaAnnotation(node: arkts.CallExpression): arkts.AnnotationUsageIr|undefined { - +function findBuilderLambdaAnnotation(node: arkts.CallExpression): arkts.AnnotationUsage | undefined { let decl: arkts.AstNode|undefined = undefined if (arkts.isIdentifier(node.expression)) { decl = arkts.getDecl(node.expression) @@ -172,20 +171,20 @@ function builderLambdaReplace(leaf: arkts.CallExpression): arkts.Identifier|arkt } if (arkts.isIdentifier(node)) { - return arkts.factory.createIdentifier( - funcName - ) + return arkts.factory.createIdentifier( + funcName + ) } if (arkts.isMemberExpression(node)) { - return arkts.factory.createMemberExpression( - node.object, - arkts.factory.createIdentifier( - funcName - ), - arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, - false, - false - ) + return arkts.factory.createMemberExpression( + node.object, + arkts.factory.createIdentifier( + funcName + ), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, + false, + false + ) } return undefined } diff --git a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts index 212f6a30c5..8dbd1110f7 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts @@ -14,7 +14,6 @@ */ import { - AnnotationUsageIr, ArrowFunctionExpression, AssignmentExpression, BinaryExpression, @@ -60,6 +59,7 @@ import { global } from "./static/global" import { KNativePointer, nullptr } from "@koalaui/interop" import { AstNode } from "./peers/AstNode" import { nodes as generatedNodes } from "../generated/node-map" +import { AnnotationUsage } from "../generated" export function classByPeer(peer: KNativePointer): AstNode { const nodes = new Map([ @@ -100,7 +100,7 @@ export function classByPeer(peer: KNativePointer): AstNode { [Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION, SuperExpression], [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION, EtsImportDeclaration], [Es2pandaAstNodeType.AST_NODE_TYPE_IMPORT_SPECIFIER, ImportSpecifier], - [Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, AnnotationUsageIr], + [Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, AnnotationUsage], ]) if (peer === nullptr) { diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts index 70089c6693..5079f16685 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts @@ -107,3 +107,7 @@ export function isStringLiteral(node: AstNode): node is StringLiteral { export function isClassDefinition(node: AstNode): node is ClassDefinition { return node instanceof ClassDefinition } + +export function isClassProperty(node: AstNode): node is ClassProperty { + return node instanceof ClassProperty +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/index.ts b/arkoala-arkts/libarkts/src/arkts-api/index.ts index 8e444fc04a..1b08693dfc 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/index.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/index.ts @@ -15,6 +15,7 @@ export * from "../Es2pandaEnums" export * from "../generated/Es2pandaEnums" +export * from "../generated/peers/AnnotationUsage" export * from "./types" export * from "./utilities/private" diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 37bf647dd0..2490bd7484 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -391,7 +391,7 @@ export class Identifier extends AstNode { if (isAnnotation) { return new Identifier( global.es2panda._ETSParserCreateExpression( - global.context, + global.context, passString(name), Es2pandaExpressionParseFlags.EXPRESSION_PARSE_FLAGS_ACCEPT_COMMA ) @@ -613,16 +613,16 @@ export class ScriptFunction extends AstNode { get annotations(): AnnotationUsageIr[] { return unpackNodeArray(global.es2panda._ScriptFunctionAnnotations( - global.context, - this.peer, + global.context, + this.peer, nullptr )) as AnnotationUsageIr[]; } set annotations(newAnnotations: AnnotationUsageIr[]) { global.es2panda._ScriptFunctionSetAnnotations( - global.context, - this.peer, + global.context, + this.peer, passNodeArray(newAnnotations), newAnnotations.length ); @@ -755,16 +755,16 @@ export class ETSParameterExpression extends AstNode { get annotations(): AnnotationUsageIr[] { return unpackNodeArray(global.es2panda._ETSParameterExpressionAnnotations( - global.context, - this.peer, + global.context, + this.peer, nullptr )) as AnnotationUsageIr[]; } set annotations(newAnnotations: AnnotationUsageIr[]) { global.es2panda._ETSParameterExpressionSetAnnotations( - global.context, - this.peer, + global.context, + this.peer, passNodeArray(newAnnotations), newAnnotations.length ); @@ -1068,16 +1068,16 @@ export class ClassProperty extends ClassElement { get annotations(): AnnotationUsageIr[] { return unpackNodeArray(global.es2panda._ScriptFunctionAnnotations( - global.context, - this.peer, + global.context, + this.peer, nullptr )) as AnnotationUsageIr[]; } set annotations(newAnnotations: AnnotationUsageIr[]) { global.es2panda._ScriptFunctionSetAnnotations( - global.context, - this.peer, + global.context, + this.peer, passNodeArray(newAnnotations), newAnnotations.length ); diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts index 4c8868a40a..60d76e7c5f 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts @@ -23,6 +23,16 @@ import type { AstNode } from "../peers/AstNode" import { ArktsObject } from "../peers/ArktsObject" import { Es2pandaAstNodeType } from "../../Es2pandaEnums" +export const arrayOfNullptr = new BigUint64Array([nullptr]) + +export const allFlags: KInt = + Object.values(Es2pandaModifierFlags).filter( + (value: any) => { return typeof value === 'number' } + ).reduce( + (prev: KInt, next: KInt): KInt => (prev | next), + 0 as KInt + ) + export function unpackNonNullableNode(peer: KNativePointer): T { if (peer === nullptr) { throwError('peer is NULLPTR (maybe you should use unpackNode)') @@ -131,13 +141,3 @@ export function updateNodeByNode(node: T, original: AstNode): export function nodeType(node: AstNode): Es2pandaAstNodeType { return global.generatedEs2panda._AstNodeTypeConst(global.context, passNode(node)) } - -export const arrayOfNullptr = new BigUint64Array([nullptr]) - -export const allFlags: KInt = - Object.values(Es2pandaModifierFlags).filter( - (value: any) => { return (typeof value) === 'number' } - ).reduce( - (prev: KInt, next: KInt): KInt => (prev | next), - 0 as KInt - ) \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts index 97b89a6fb6..93b6727928 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -16,11 +16,11 @@ import { global } from "../static/global" import { throwError } from "../../utils" import { nullptr, withStringResult } from "@koalaui/interop" -import { AnnotationUsageIr } from "../types" import { passNode, unpackNodeArray, unpackNonNullableNode } from "./private" import { isClassDefinition, isFunctionDeclaration, isScriptFunction } from "../factory/nodeTests" import { Es2pandaContextState } from "../../generated/Es2pandaEnums" import { AstNode } from "../peers/AstNode" +import { AnnotationUsage } from "../../generated" export function proceedToState(state: Es2pandaContextState): void { if (state <= global.es2panda._ContextState(global.context)) { @@ -61,7 +61,7 @@ export function getDecl(node: AstNode): AstNode | undefined { return unpackNonNullableNode(decl) } -export function getAnnotations(node: AstNode): readonly AnnotationUsageIr[] { +export function getAnnotations(node: AstNode): readonly AnnotationUsage[] { if (!isFunctionDeclaration(node) && !isScriptFunction(node) && !isClassDefinition(node)) { throwError('for now annotations allowed only for: functionDeclaration, scriptFunction, classDefinition') } -- Gitee From 8353f694c288a18eeab452fd8b15c7af4da28726 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 18 Feb 2025 17:51:59 +0300 Subject: [PATCH 04/12] some rearranges, some renamings Signed-off-by: naumovdmitrii --- .../plugins/src/builder-lambda-transformer.ts | 3 ++ .../libarkts/src/arkts-api/class-by-peer.ts | 6 +-- .../src/arkts-api/factory/nodeTests.ts | 2 +- .../libarkts/src/arkts-api/peers/AstNode.ts | 12 +++--- .../to-be-generated/MemberExpression.ts | 3 +- arkoala-arkts/libarkts/src/arkts-api/types.ts | 12 +----- .../src/arkts-api/utilities/private.ts | 37 ++++++++++++++----- .../src/arkts-api/utilities/public.ts | 14 +++++-- .../libarkts/src/reexport-for-generated.ts | 6 +-- 9 files changed, 55 insertions(+), 40 deletions(-) diff --git a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts index 0da11a7ea9..ab1fc833e1 100644 --- a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts @@ -67,6 +67,9 @@ function getLambdaArg(lambdaBody: arkts.AstNode, typeName: string|undefined): ar } function isBuilderLambdaAnnotation(annotation: arkts.AnnotationUsage): boolean { + if (annotation.expr === undefined) { + return false + } if (!arkts.isIdentifier(annotation.expr)) { return false } diff --git a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts index 8dbd1110f7..fdbe6afdff 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts @@ -57,11 +57,10 @@ import { MemberExpression } from "./to-be-generated/MemberExpression" import { throwError } from "../utils" import { global } from "./static/global" import { KNativePointer, nullptr } from "@koalaui/interop" -import { AstNode } from "./peers/AstNode" +import type { AstNode } from "./peers/AstNode" import { nodes as generatedNodes } from "../generated/node-map" -import { AnnotationUsage } from "../generated" -export function classByPeer(peer: KNativePointer): AstNode { +export function classByPeer(peer: KNativePointer): T | UnsupportedNode { const nodes = new Map([ [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE, EtsScript], [Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER, Identifier], @@ -100,7 +99,6 @@ export function classByPeer(peer: KNativePointer): AstNode { [Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION, SuperExpression], [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION, EtsImportDeclaration], [Es2pandaAstNodeType.AST_NODE_TYPE_IMPORT_SPECIFIER, ImportSpecifier], - [Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, AnnotationUsage], ]) if (peer === nullptr) { diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts index 5079f16685..898fb4e732 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts @@ -22,7 +22,7 @@ import { ClassProperty } from "../types" import { MemberExpression } from "../to-be-generated/MemberExpression" -import { AstNode } from "../peers/AstNode" +import type { AstNode } from "../peers/AstNode" export function isClassProperty(node: AstNode): node is ClassProperty { return global.es2panda._IsClassProperty(node.peer); diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts index 5b0ae55cfe..d615edcca2 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts @@ -23,7 +23,7 @@ import { ArktsObject } from "./ArktsObject" export abstract class AstNode extends ArktsObject { protected constructor(peer: KNativePointer) { if (isNullPtr(peer)) { - throwError('trying to create new Node on NULLPTR') + throwError(`attempted to create AstNode from nullptr`) } super(peer) this.updateChildren() @@ -43,7 +43,7 @@ export abstract class AstNode extends ArktsObject { public getSubtree(): readonly AstNode[] { return this.getChildren().reduce( - (prev: readonly AstNode[], curr: AstNode): readonly AstNode[] => { + (prev: readonly AstNode[], curr) => { return prev.concat(curr.getSubtree()) }, [this] @@ -90,11 +90,11 @@ export abstract class AstNode extends ArktsObject { } public get parent(): AstNode { - const _parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer) - if (_parent === nullptr) { - throwError('BAD ACCESS: PARENT IS NULLPTR') + const parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer) + if (parent === nullptr) { + throwError(`no parent`) } - return unpackNonNullableNode(_parent) + return unpackNonNullableNode(parent) } public set parent(node: AstNode) { diff --git a/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts b/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts index f760db27aa..0ee0ac83a4 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts @@ -14,9 +14,8 @@ */ import { global } from "../static/global" -import { assertValidPeer } from "../types" import { Es2pandaMemberExpressionKind } from "../../generated/Es2pandaEnums" -import { passNode, unpackNonNullableNode } from "../utilities/private" +import { assertValidPeer, passNode, unpackNonNullableNode } from "../utilities/private" import { KNativePointer } from "@koalaui/interop" import { Es2pandaAstNodeType } from "../../Es2pandaEnums" import { AstNode } from "../peers/AstNode" diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 2490bd7484..d026564270 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -14,7 +14,6 @@ */ import { global } from "./static/global" -import { throwError } from "../utils" import { KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/interop" import { Es2pandaContextState, @@ -32,6 +31,7 @@ import { import { allFlags, arrayOfNullptr, + assertValidPeer, nodeType, passNode, passNodeArray, @@ -50,16 +50,6 @@ import { Config } from "./peers/Config" import { Context } from "./peers/Context" import * as path from "node:path" -export function assertValidPeer(peer: KPtr, expectedKind: Es2pandaAstNodeType): void { - if (peer === nullptr) { - throwError(`invalid peer: NULLPTR`) - } - const peerType = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) - if (peerType !== expectedKind) { - throwError(`actual type of peer: ${peerType} expected: ${expectedKind}`) - } -} - export class UnsupportedNode extends AstNode { constructor(peer: KPtr) { super(peer) diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts index 60d76e7c5f..9f5d10457c 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts @@ -14,8 +14,16 @@ */ import { global } from "../static/global" -import { throwError } from "../../utils" -import { KInt, KNativePointer, nullptr, withString, withStringArray, withStringResult } from "@koalaui/interop" +import { isNumber, throwError } from "../../utils" +import { + KInt, + KNativePointer as KPtr, + KNativePointer, + nullptr, + withString, + withStringArray, + withStringResult +} from "@koalaui/interop" import { NativePtrDecoder } from "./nativePtrDecoder" import { Es2pandaModifierFlags, Es2pandaScriptFunctionFlags } from "../../generated/Es2pandaEnums" import { classByPeer } from "../class-by-peer" @@ -25,13 +33,24 @@ import { Es2pandaAstNodeType } from "../../Es2pandaEnums" export const arrayOfNullptr = new BigUint64Array([nullptr]) -export const allFlags: KInt = - Object.values(Es2pandaModifierFlags).filter( - (value: any) => { return typeof value === 'number' } - ).reduce( - (prev: KInt, next: KInt): KInt => (prev | next), - 0 as KInt - ) +export const allFlags = + Object.values(Es2pandaModifierFlags) + .filter(isNumber) + .reduce( + (prev, next) => (prev | next), + 0 + + ) + +export function assertValidPeer(peer: KPtr, expectedKind: Es2pandaAstNodeType): void { + if (peer === nullptr) { + throwError(`invalid peer`) + } + const peerType = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) + if (peerType !== expectedKind) { + throwError(`expected: ${Es2pandaAstNodeType[expectedKind]}, got: ${Es2pandaAstNodeType[peerType]}`) + } +} export function unpackNonNullableNode(peer: KNativePointer): T { if (peer === nullptr) { diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts index 93b6727928..de723054ee 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -19,8 +19,8 @@ import { nullptr, withStringResult } from "@koalaui/interop" import { passNode, unpackNodeArray, unpackNonNullableNode } from "./private" import { isClassDefinition, isFunctionDeclaration, isScriptFunction } from "../factory/nodeTests" import { Es2pandaContextState } from "../../generated/Es2pandaEnums" -import { AstNode } from "../peers/AstNode" -import { AnnotationUsage } from "../../generated" +import type { AstNode } from "../peers/AstNode" +import type { AnnotationUsage } from "../../generated" export function proceedToState(state: Es2pandaContextState): void { if (state <= global.es2panda._ContextState(global.context)) { @@ -31,9 +31,15 @@ export function proceedToState(state: Es2pandaContextState): void { if (global.es2panda._ContextState(global.context) === Es2pandaContextState.ES2PANDA_STATE_ERROR) { const errorMessage = withStringResult(global.es2panda._ContextErrorMessage(global.context)) if (errorMessage === undefined) { - throwError(`COULDN'T GET ContextErrorMessage`) + throwError(`Could not get ContextErrorMessage`) } - throwError("FAILED PROCEED TO: " + Es2pandaContextState[state] + "\n" + errorMessage) + throwError( + [ + `Failed to proceed to ${Es2pandaContextState[state]}`, + errorMessage + ] + .join(`\n`) + ) } } catch (e) { global.es2panda._DestroyContext(global.context) diff --git a/arkoala-arkts/libarkts/src/reexport-for-generated.ts b/arkoala-arkts/libarkts/src/reexport-for-generated.ts index 4fc36e3275..c318a164b0 100644 --- a/arkoala-arkts/libarkts/src/reexport-for-generated.ts +++ b/arkoala-arkts/libarkts/src/reexport-for-generated.ts @@ -14,8 +14,8 @@ */ export { KNativePointer } from "@koalaui/interop" +export { AstNode } from "./arkts-api/peers/AstNode" export { Es2pandaAstNodeType } from "./Es2pandaEnums" -export { assertValidPeer } from "./arkts-api//types" export { passNode, unpackNonNullableNode, @@ -24,8 +24,8 @@ export { unpackNode, unpackNonNullableObject, unpackString, - unpackObject + unpackObject, + assertValidPeer } from "./arkts-api/utilities/private" export { global } from "./arkts-api/static/global" export { Es2pandaMemberExpressionKind } from "./generated/Es2pandaEnums" -export { AstNode } from "./arkts-api/peers/AstNode" -- Gitee From 460db781fbdb34a7701e2df2da0b35744fdd82ce Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 18 Feb 2025 18:33:20 +0300 Subject: [PATCH 05/12] fix imports Signed-off-by: naumovdmitrii --- .../to-be-generated/MemberExpression.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts b/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts index 0ee0ac83a4..ac82136802 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts @@ -13,12 +13,17 @@ * limitations under the License. */ -import { global } from "../static/global" -import { Es2pandaMemberExpressionKind } from "../../generated/Es2pandaEnums" -import { assertValidPeer, passNode, unpackNonNullableNode } from "../utilities/private" -import { KNativePointer } from "@koalaui/interop" -import { Es2pandaAstNodeType } from "../../Es2pandaEnums" -import { AstNode } from "../peers/AstNode" + +import { + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + Es2pandaMemberExpressionKind, + KNativePointer, + passNode, + unpackNonNullableNode, + global +} from "../../reexport-for-generated" export class MemberExpression extends AstNode { constructor(peer: KNativePointer) { -- Gitee From a4dcbe1556df3b8a97c16812140b9a8f13f477ec Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 19 Feb 2025 11:52:10 +0300 Subject: [PATCH 06/12] fix cyclic Signed-off-by: naumovdmitrii --- .../libarkts/src/arkts-api/class-by-peer.ts | 90 +------------------ arkoala-arkts/libarkts/src/arkts-api/index.ts | 3 +- arkoala-arkts/libarkts/src/arkts-api/types.ts | 46 +++++++++- .../src/generated/peers/AnnotatedAstNode.ts | 3 +- .../generated/peers/AnnotatedExpression.ts | 3 +- .../src/generated/peers/AnnotatedStatement.ts | 3 +- .../generated/peers/AnnotationDeclaration.ts | 6 +- .../src/generated/peers/AnnotationUsage.ts | 6 +- .../src/generated/peers/ArrayExpression.ts | 3 +- .../peers/ArrowFunctionExpression.ts | 6 +- .../src/generated/peers/AssertStatement.ts | 6 +- .../generated/peers/AssignmentExpression.ts | 3 +- .../src/generated/peers/AwaitExpression.ts | 6 +- .../src/generated/peers/BigIntLiteral.ts | 6 +- .../src/generated/peers/BinaryExpression.ts | 6 +- .../src/generated/peers/BlockExpression.ts | 6 +- .../src/generated/peers/BlockStatement.ts | 6 +- .../src/generated/peers/BooleanLiteral.ts | 6 +- .../src/generated/peers/BreakStatement.ts | 6 +- .../src/generated/peers/CallExpression.ts | 6 +- .../src/generated/peers/CatchClause.ts | 6 +- .../src/generated/peers/ChainExpression.ts | 6 +- .../src/generated/peers/CharLiteral.ts | 6 +- .../src/generated/peers/ClassDeclaration.ts | 6 +- .../src/generated/peers/ClassDefinition.ts | 6 +- .../src/generated/peers/ClassElement.ts | 3 +- .../src/generated/peers/ClassExpression.ts | 6 +- .../src/generated/peers/ClassProperty.ts | 6 +- .../src/generated/peers/ClassStaticBlock.ts | 6 +- .../generated/peers/ConditionalExpression.ts | 6 +- .../src/generated/peers/ContinueStatement.ts | 6 +- .../src/generated/peers/DebuggerStatement.ts | 6 +- .../libarkts/src/generated/peers/Decorator.ts | 6 +- .../generated/peers/DirectEvalExpression.ts | 6 +- .../src/generated/peers/DoWhileStatement.ts | 6 +- .../src/generated/peers/ETSClassLiteral.ts | 6 +- .../generated/peers/ETSDynamicFunctionType.ts | 3 +- .../src/generated/peers/ETSFunctionType.ts | 6 +- .../generated/peers/ETSImportDeclaration.ts | 6 +- .../generated/peers/ETSLaunchExpression.ts | 6 +- .../libarkts/src/generated/peers/ETSModule.ts | 6 +- .../peers/ETSNewArrayInstanceExpression.ts | 6 +- .../peers/ETSNewClassInstanceExpression.ts | 6 +- .../ETSNewMultiDimArrayInstanceExpression.ts | 6 +- .../src/generated/peers/ETSNullType.ts | 6 +- .../generated/peers/ETSPackageDeclaration.ts | 6 +- .../generated/peers/ETSParameterExpression.ts | 6 +- .../src/generated/peers/ETSPrimitiveType.ts | 6 +- .../generated/peers/ETSReExportDeclaration.ts | 6 +- .../generated/peers/ETSStructDeclaration.ts | 6 +- .../libarkts/src/generated/peers/ETSTuple.ts | 6 +- .../src/generated/peers/ETSTypeReference.ts | 6 +- .../generated/peers/ETSTypeReferencePart.ts | 6 +- .../src/generated/peers/ETSUndefinedType.ts | 6 +- .../src/generated/peers/ETSUnionType.ts | 6 +- .../src/generated/peers/ETSWildcardType.ts | 6 +- .../src/generated/peers/EmptyStatement.ts | 6 +- .../generated/peers/ExportAllDeclaration.ts | 6 +- .../peers/ExportDefaultDeclaration.ts | 6 +- .../generated/peers/ExportNamedDeclaration.ts | 6 +- .../src/generated/peers/ExportSpecifier.ts | 6 +- .../src/generated/peers/Expression.ts | 3 +- .../generated/peers/ExpressionStatement.ts | 6 +- .../src/generated/peers/ForInStatement.ts | 6 +- .../src/generated/peers/ForOfStatement.ts | 6 +- .../src/generated/peers/ForUpdateStatement.ts | 6 +- .../src/generated/peers/FunctionDecl.ts | 3 +- .../generated/peers/FunctionDeclaration.ts | 6 +- .../src/generated/peers/FunctionExpression.ts | 6 +- .../src/generated/peers/Identifier.ts | 6 +- .../src/generated/peers/IfStatement.ts | 6 +- .../src/generated/peers/ImportDeclaration.ts | 6 +- .../generated/peers/ImportDefaultSpecifier.ts | 6 +- .../src/generated/peers/ImportExpression.ts | 6 +- .../peers/ImportNamespaceSpecifier.ts | 6 +- .../src/generated/peers/ImportSpecifier.ts | 6 +- .../src/generated/peers/InterfaceDecl.ts | 3 +- .../src/generated/peers/LabelledStatement.ts | 6 +- .../libarkts/src/generated/peers/Literal.ts | 3 +- .../src/generated/peers/LoopStatement.ts | 3 +- .../peers/MaybeOptionalExpression.ts | 3 +- .../src/generated/peers/MemberExpression.ts | 6 +- .../src/generated/peers/MetaProperty.ts | 6 +- .../src/generated/peers/MethodDefinition.ts | 6 +- .../libarkts/src/generated/peers/NamedType.ts | 6 +- .../src/generated/peers/NewExpression.ts | 6 +- .../src/generated/peers/NullLiteral.ts | 6 +- .../src/generated/peers/NumberLiteral.ts | 6 +- .../src/generated/peers/ObjectExpression.ts | 3 +- .../src/generated/peers/OmittedExpression.ts | 6 +- .../src/generated/peers/OpaqueTypeNode.ts | 6 +- .../peers/PrefixAssertionExpression.ts | 6 +- .../libarkts/src/generated/peers/Property.ts | 6 +- .../src/generated/peers/RegExpLiteral.ts | 6 +- .../src/generated/peers/ReturnStatement.ts | 6 +- .../src/generated/peers/ScriptFunction.ts | 6 +- .../src/generated/peers/SequenceExpression.ts | 6 +- .../src/generated/peers/SpreadElement.ts | 3 +- .../libarkts/src/generated/peers/Statement.ts | 3 +- .../src/generated/peers/StringLiteral.ts | 6 +- .../src/generated/peers/SuperExpression.ts | 6 +- .../generated/peers/SwitchCaseStatement.ts | 6 +- .../src/generated/peers/SwitchStatement.ts | 6 +- .../src/generated/peers/TSAnyKeyword.ts | 6 +- .../src/generated/peers/TSArrayType.ts | 6 +- .../src/generated/peers/TSAsExpression.ts | 6 +- .../src/generated/peers/TSBigintKeyword.ts | 6 +- .../src/generated/peers/TSBooleanKeyword.ts | 6 +- .../src/generated/peers/TSClassImplements.ts | 6 +- .../src/generated/peers/TSConditionalType.ts | 6 +- .../src/generated/peers/TSConstructorType.ts | 6 +- .../src/generated/peers/TSEnumDeclaration.ts | 6 +- .../src/generated/peers/TSEnumMember.ts | 6 +- .../peers/TSExternalModuleReference.ts | 6 +- .../src/generated/peers/TSFunctionType.ts | 6 +- .../peers/TSImportEqualsDeclaration.ts | 6 +- .../src/generated/peers/TSImportType.ts | 6 +- .../src/generated/peers/TSIndexSignature.ts | 6 +- .../generated/peers/TSIndexedAccessType.ts | 6 +- .../src/generated/peers/TSInferType.ts | 6 +- .../src/generated/peers/TSInterfaceBody.ts | 6 +- .../generated/peers/TSInterfaceDeclaration.ts | 6 +- .../generated/peers/TSInterfaceHeritage.ts | 6 +- .../src/generated/peers/TSIntersectionType.ts | 6 +- .../src/generated/peers/TSLiteralType.ts | 6 +- .../src/generated/peers/TSMappedType.ts | 6 +- .../src/generated/peers/TSMethodSignature.ts | 6 +- .../src/generated/peers/TSModuleBlock.ts | 6 +- .../generated/peers/TSModuleDeclaration.ts | 6 +- .../src/generated/peers/TSNamedTupleMember.ts | 6 +- .../src/generated/peers/TSNeverKeyword.ts | 6 +- .../generated/peers/TSNonNullExpression.ts | 6 +- .../src/generated/peers/TSNullKeyword.ts | 6 +- .../src/generated/peers/TSNumberKeyword.ts | 6 +- .../src/generated/peers/TSObjectKeyword.ts | 6 +- .../generated/peers/TSParameterProperty.ts | 6 +- .../generated/peers/TSParenthesizedType.ts | 6 +- .../generated/peers/TSPropertySignature.ts | 6 +- .../src/generated/peers/TSQualifiedName.ts | 6 +- .../generated/peers/TSSignatureDeclaration.ts | 6 +- .../src/generated/peers/TSStringKeyword.ts | 6 +- .../src/generated/peers/TSThisType.ts | 6 +- .../src/generated/peers/TSTupleType.ts | 6 +- .../generated/peers/TSTypeAliasDeclaration.ts | 6 +- .../src/generated/peers/TSTypeAssertion.ts | 6 +- .../src/generated/peers/TSTypeLiteral.ts | 6 +- .../src/generated/peers/TSTypeOperator.ts | 6 +- .../src/generated/peers/TSTypeParameter.ts | 6 +- .../peers/TSTypeParameterDeclaration.ts | 6 +- .../peers/TSTypeParameterInstantiation.ts | 6 +- .../src/generated/peers/TSTypePredicate.ts | 6 +- .../src/generated/peers/TSTypeQuery.ts | 6 +- .../src/generated/peers/TSTypeReference.ts | 6 +- .../src/generated/peers/TSUndefinedKeyword.ts | 6 +- .../src/generated/peers/TSUnionType.ts | 6 +- .../src/generated/peers/TSUnknownKeyword.ts | 6 +- .../src/generated/peers/TSVoidKeyword.ts | 6 +- .../peers/TaggedTemplateExpression.ts | 6 +- .../src/generated/peers/TemplateElement.ts | 6 +- .../src/generated/peers/TemplateLiteral.ts | 6 +- .../src/generated/peers/ThisExpression.ts | 6 +- .../src/generated/peers/ThrowStatement.ts | 6 +- .../src/generated/peers/TryStatement.ts | 6 +- .../libarkts/src/generated/peers/TypeNode.ts | 3 +- .../src/generated/peers/TypedAstNode.ts | 3 +- .../src/generated/peers/TypedStatement.ts | 3 +- .../src/generated/peers/TypeofExpression.ts | 6 +- .../src/generated/peers/UnaryExpression.ts | 6 +- .../src/generated/peers/UndefinedLiteral.ts | 6 +- .../src/generated/peers/UpdateExpression.ts | 6 +- .../generated/peers/VariableDeclaration.ts | 6 +- .../src/generated/peers/VariableDeclarator.ts | 6 +- .../src/generated/peers/WhileStatement.ts | 6 +- .../src/generated/peers/YieldExpression.ts | 6 +- .../libarkts/src/reexport-for-generated.ts | 2 +- 175 files changed, 849 insertions(+), 261 deletions(-) diff --git a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts index fdbe6afdff..6d3f507995 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts @@ -13,101 +13,19 @@ * limitations under the License. */ -import { - ArrowFunctionExpression, - AssignmentExpression, - BinaryExpression, - BlockStatement, - CallExpression, - ClassDeclaration, - ClassDefinition, - ClassProperty, - ClassStaticBlock, - ETSFunctionType, - EtsImportDeclaration, - ETSParameterExpression, - ETSPrimitiveType, - EtsScript, - ETSTypeReference, - ETSTypeReferencePart, - ETSUndefinedType, - ETSUnionType, - ExpressionStatement, - FunctionDeclaration, - FunctionExpression, - Identifier, - IfStatement, - ImportSpecifier, - MethodDefinition, - NumberLiteral, - ReturnStatement, - ScriptFunction, - StringLiteral, - StructDeclaration, - SuperExpression, - TSTypeParameter, - TSTypeParameterDeclaration, - UndefinedLiteral, - UnsupportedNode, - VariableDeclaration, - VariableDeclarator -} from "./types" import { Es2pandaAstNodeType } from "../Es2pandaEnums" -import { MemberExpression } from "./to-be-generated/MemberExpression" import { throwError } from "../utils" import { global } from "./static/global" import { KNativePointer, nullptr } from "@koalaui/interop" import type { AstNode } from "./peers/AstNode" -import { nodes as generatedNodes } from "../generated/node-map" -export function classByPeer(peer: KNativePointer): T | UnsupportedNode { - const nodes = new Map([ - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE, EtsScript], - [Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER, Identifier], - [Es2pandaAstNodeType.AST_NODE_TYPE_STRING_LITERAL, StringLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL, NumberLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_EXPRESSION_STATEMENT, ExpressionStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION, FunctionDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION, ScriptFunction], - [Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT, BlockStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT, ReturnStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PARAMETER_EXPRESSION, ETSParameterExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE, ETSTypeReference], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE_PART, ETSTypeReferencePart], - [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION, TSTypeParameterDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PRIMITIVE_TYPE, ETSPrimitiveType], - [Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION, CallExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION, MemberExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER, TSTypeParameter], - [Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT, IfStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION, BinaryExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNION_TYPE, ETSUnionType], - [Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION, ArrowFunctionExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_STRUCT_DECLARATION, StructDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION, ClassDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION, ClassDefinition], - [Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION, MethodDefinition], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY, ClassProperty], - [Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, AssignmentExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATION, VariableDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATOR, VariableDeclarator], - [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION, FunctionExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_FUNCTION_TYPE, ETSFunctionType], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK, ClassStaticBlock], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNDEFINED_TYPE, ETSUndefinedType], - [Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL, UndefinedLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION, SuperExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION, EtsImportDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_IMPORT_SPECIFIER, ImportSpecifier], - ]) +export const nodeByType = new Map([]) +export function classByPeer(peer: KNativePointer): T { if (peer === nullptr) { throwError('classByPeer: peer is NULLPTR') } const type = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) - const node = nodes.get(type) ?? generatedNodes.get(type) - if (node === undefined) { - return new UnsupportedNode(peer) - } - return new node(peer) + const node = nodeByType.get(type) ?? throwError(Es2pandaAstNodeType[type]) + return new node(peer) as T } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/index.ts b/arkoala-arkts/libarkts/src/arkts-api/index.ts index 1b08693dfc..b6926ba0fe 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/index.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/index.ts @@ -23,7 +23,8 @@ export * from "./utilities/public" export * from "./factory/nodeFactory" export * from "./factory/nodeTests" export * from "./visitor" -export * from "./peers/AstNode" +export type { AstNode } from "./peers/AstNode" +import "../generated" export * from "./peers/Config" export * from "./peers/Context" export * from "./to-be-generated/MemberExpression" diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index d026564270..9645586982 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -12,9 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - import { global } from "./static/global" -import { KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/interop" +import { KBoolean, KInt, KNativePointer, KNativePointer as KPtr, nullptr } from "@koalaui/interop" import { Es2pandaContextState, Es2pandaExpressionParseFlags, @@ -49,6 +48,8 @@ import { ArktsObject } from "./peers/ArktsObject" import { Config } from "./peers/Config" import { Context } from "./peers/Context" import * as path from "node:path" +import { nodeByType } from "./class-by-peer" +import { MemberExpression } from "./to-be-generated/MemberExpression" export class UnsupportedNode extends AstNode { constructor(peer: KPtr) { @@ -1337,3 +1338,44 @@ export class AnnotationDeclaration extends AstNode { ) } } + +const pairs: [Es2pandaAstNodeType, { new(peer: KNativePointer): AstNode }][] = [ + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE, EtsScript], + [Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER, Identifier], + [Es2pandaAstNodeType.AST_NODE_TYPE_STRING_LITERAL, StringLiteral], + [Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL, NumberLiteral], + [Es2pandaAstNodeType.AST_NODE_TYPE_EXPRESSION_STATEMENT, ExpressionStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION, FunctionDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION, ScriptFunction], + [Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT, BlockStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT, ReturnStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PARAMETER_EXPRESSION, ETSParameterExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE, ETSTypeReference], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE_PART, ETSTypeReferencePart], + [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION, TSTypeParameterDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PRIMITIVE_TYPE, ETSPrimitiveType], + [Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION, CallExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION, MemberExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER, TSTypeParameter], + [Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT, IfStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION, BinaryExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNION_TYPE, ETSUnionType], + [Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION, ArrowFunctionExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_STRUCT_DECLARATION, StructDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION, ClassDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION, ClassDefinition], + [Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION, MethodDefinition], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY, ClassProperty], + [Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, AssignmentExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATION, VariableDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATOR, VariableDeclarator], + [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION, FunctionExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_FUNCTION_TYPE, ETSFunctionType], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK, ClassStaticBlock], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNDEFINED_TYPE, ETSUndefinedType], + [Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL, UndefinedLiteral], + [Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION, SuperExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION, EtsImportDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_IMPORT_SPECIFIER, ImportSpecifier], +] +pairs.forEach(([tp, cctor]) => nodeByType.set(tp, cctor)) \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts index 07b9fbc43f..36938c6ccd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" export abstract class AnnotatedAstNode extends AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts index e6bdfee720..63624f801c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts index 171ecd6255..679236e02c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts index aad6adc04e..62469de01f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -67,4 +68,7 @@ export class AnnotationDeclaration extends Statement { } export function isAnnotationDeclaration(node: AstNode): node is AnnotationDeclaration { return node instanceof AnnotationDeclaration +} +if (!nodeByType.has(1)) { + nodeByType.set(1, AnnotationDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts index 326159dd18..a830f2cebe 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -61,4 +62,7 @@ export class AnnotationUsage extends Statement { } export function isAnnotationUsage(node: AstNode): node is AnnotationUsage { return node instanceof AnnotationUsage +} +if (!nodeByType.has(2)) { + nodeByType.set(2, AnnotationUsage) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts index 56113fd26e..fbdef94850 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts index 2e6d050e7d..6a363283d8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -62,4 +63,7 @@ export class ArrowFunctionExpression extends Expression { } export function isArrowFunctionExpression(node: AstNode): node is ArrowFunctionExpression { return node instanceof ArrowFunctionExpression +} +if (!nodeByType.has(0)) { + nodeByType.set(0, ArrowFunctionExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts index b21e36baff..aa11ed3831 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -52,4 +53,7 @@ export class AssertStatement extends Statement { } export function isAssertStatement(node: AstNode): node is AssertStatement { return node instanceof AssertStatement +} +if (!nodeByType.has(3)) { + nodeByType.set(3, AssertStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts index 84f10656d7..75085e0f2a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts index e1981e7dc2..372d6e09c9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -45,4 +46,7 @@ export class AwaitExpression extends Expression { } export function isAwaitExpression(node: AstNode): node is AwaitExpression { return node instanceof AwaitExpression +} +if (!nodeByType.has(4)) { + nodeByType.set(4, AwaitExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts index 1d6b844be4..1e3cda0d3f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -45,4 +46,7 @@ export class BigIntLiteral extends Literal { } export function isBigIntLiteral(node: AstNode): node is BigIntLiteral { return node instanceof BigIntLiteral +} +if (!nodeByType.has(5)) { + nodeByType.set(5, BigIntLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts index 9a74606438..d34a0a9500 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -76,4 +77,7 @@ export class BinaryExpression extends Expression { } export function isBinaryExpression(node: AstNode): node is BinaryExpression { return node instanceof BinaryExpression +} +if (!nodeByType.has(6)) { + nodeByType.set(6, BinaryExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts index 39d7668313..0a1465641e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -43,4 +44,7 @@ export class BlockExpression extends Expression { } export function isBlockExpression(node: AstNode): node is BlockExpression { return node instanceof BlockExpression +} +if (!nodeByType.has(154)) { + nodeByType.set(154, BlockExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts index d6711fb048..0a7b0b1aa7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -42,4 +43,7 @@ export class BlockStatement extends Statement { } export function isBlockStatement(node: AstNode): node is BlockStatement { return node instanceof BlockStatement +} +if (!nodeByType.has(7)) { + nodeByType.set(7, BlockStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts index 9390b9ae6b..cf1d789d12 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -45,4 +46,7 @@ export class BooleanLiteral extends Literal { } export function isBooleanLiteral(node: AstNode): node is BooleanLiteral { return node instanceof BooleanLiteral +} +if (!nodeByType.has(8)) { + nodeByType.set(8, BooleanLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts index 8fb8051b59..56c043d247 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -58,4 +59,7 @@ export class BreakStatement extends Statement { } export function isBreakStatement(node: AstNode): node is BreakStatement { return node instanceof BreakStatement +} +if (!nodeByType.has(9)) { + nodeByType.set(9, BreakStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts index 495b700fcb..b3377ae77c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { MaybeOptionalExpression } from "./MaybeOptionalExpression" @@ -75,4 +76,7 @@ export class CallExpression extends MaybeOptionalExpression { } export function isCallExpression(node: AstNode): node is CallExpression { return node instanceof CallExpression +} +if (!nodeByType.has(10)) { + nodeByType.set(10, CallExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts index c22e26d922..c7a0463557 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -56,4 +57,7 @@ export class CatchClause extends TypedStatement { } export function isCatchClause(node: AstNode): node is CatchClause { return node instanceof CatchClause +} +if (!nodeByType.has(11)) { + nodeByType.set(11, CatchClause) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts index da0e9826c6..15acefb384 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -48,4 +49,7 @@ export class ChainExpression extends Expression { } export function isChainExpression(node: AstNode): node is ChainExpression { return node instanceof ChainExpression +} +if (!nodeByType.has(12)) { + nodeByType.set(12, ChainExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts index 73108082d2..3274378629 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -42,4 +43,7 @@ export class CharLiteral extends Literal { } export function isCharLiteral(node: AstNode): node is CharLiteral { return node instanceof CharLiteral +} +if (!nodeByType.has(13)) { + nodeByType.set(13, CharLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts index 7a126b6cd3..1e8247d898 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -53,4 +54,7 @@ export class ClassDeclaration extends Statement { } export function isClassDeclaration(node: AstNode): node is ClassDeclaration { return node instanceof ClassDeclaration +} +if (!nodeByType.has(15)) { + nodeByType.set(15, ClassDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts index e46a32592a..a98aac0323 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" @@ -161,4 +162,7 @@ export class ClassDefinition extends TypedAstNode { } export function isClassDefinition(node: AstNode): node is ClassDefinition { return node instanceof ClassDefinition +} +if (!nodeByType.has(14)) { + nodeByType.set(14, ClassDefinition) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts index f61e0aad01..64378b2968 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts index 888be069ff..2129f87330 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -46,4 +47,7 @@ export class ClassExpression extends Expression { } export function isClassExpression(node: AstNode): node is ClassExpression { return node instanceof ClassExpression +} +if (!nodeByType.has(16)) { + nodeByType.set(16, ClassExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts index 65083a5842..14bda3d26c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" @@ -55,4 +56,7 @@ export class ClassProperty extends ClassElement { } export function isClassProperty(node: AstNode): node is ClassProperty { return node instanceof ClassProperty +} +if (!nodeByType.has(17)) { + nodeByType.set(17, ClassProperty) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts index 880888735d..eac95b0c64 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" @@ -43,4 +44,7 @@ export class ClassStaticBlock extends ClassElement { } export function isClassStaticBlock(node: AstNode): node is ClassStaticBlock { return node instanceof ClassStaticBlock +} +if (!nodeByType.has(18)) { + nodeByType.set(18, ClassStaticBlock) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts index d92ad39b52..0d69eda4b7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -60,4 +61,7 @@ export class ConditionalExpression extends Expression { } export function isConditionalExpression(node: AstNode): node is ConditionalExpression { return node instanceof ConditionalExpression +} +if (!nodeByType.has(19)) { + nodeByType.set(19, ConditionalExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts index 51ad34eb0c..5d0b3190cd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -58,4 +59,7 @@ export class ContinueStatement extends Statement { } export function isContinueStatement(node: AstNode): node is ContinueStatement { return node instanceof ContinueStatement +} +if (!nodeByType.has(20)) { + nodeByType.set(20, ContinueStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts index b4f3c236aa..85db8fab69 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -42,4 +43,7 @@ export class DebuggerStatement extends Statement { } export function isDebuggerStatement(node: AstNode): node is DebuggerStatement { return node instanceof DebuggerStatement +} +if (!nodeByType.has(21)) { + nodeByType.set(21, DebuggerStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts index 87db27b5d6..e5e93c549e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class Decorator extends Statement { } export function isDecorator(node: AstNode): node is Decorator { return node instanceof Decorator +} +if (!nodeByType.has(22)) { + nodeByType.set(22, Decorator) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts index 314fc25224..6b76722e00 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { CallExpression } from "./CallExpression" @@ -44,4 +45,7 @@ export class DirectEvalExpression extends CallExpression { } export function isDirectEvalExpression(node: AstNode): node is DirectEvalExpression { return node instanceof DirectEvalExpression +} +if (!nodeByType.has(23)) { + nodeByType.set(23, DirectEvalExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts index f69393d175..c6f8f06153 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -50,4 +51,7 @@ export class DoWhileStatement extends LoopStatement { } export function isDoWhileStatement(node: AstNode): node is DoWhileStatement { return node instanceof DoWhileStatement +} +if (!nodeByType.has(24)) { + nodeByType.set(24, DoWhileStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts index 30f74e4f50..4ee1b4f876 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -46,4 +47,7 @@ export class ETSClassLiteral extends Expression { } export function isETSClassLiteral(node: AstNode): node is ETSClassLiteral { return node instanceof ETSClassLiteral +} +if (!nodeByType.has(70)) { + nodeByType.set(70, ETSClassLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts index 4a24d4bfa7..3a37dd0fa1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ETSFunctionType } from "./ETSFunctionType" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts index 3456e57b91..627678b97a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -73,4 +74,7 @@ export class ETSFunctionType extends TypeNode { } export function isETSFunctionType(node: AstNode): node is ETSFunctionType { return node instanceof ETSFunctionType +} +if (!nodeByType.has(66)) { + nodeByType.set(66, ETSFunctionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts index 7143ac0b83..16205bfaa8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ImportDeclaration } from "./ImportDeclaration" @@ -58,4 +59,7 @@ export class ETSImportDeclaration extends ImportDeclaration { } export function isETSImportDeclaration(node: AstNode): node is ETSImportDeclaration { return node instanceof ETSImportDeclaration +} +if (!nodeByType.has(78)) { + nodeByType.set(78, ETSImportDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts index af9f15d70d..e81f14a28c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -46,4 +47,7 @@ export class ETSLaunchExpression extends Expression { } export function isETSLaunchExpression(node: AstNode): node is ETSLaunchExpression { return node instanceof ETSLaunchExpression +} +if (!nodeByType.has(74)) { + nodeByType.set(74, ETSLaunchExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts index f7fc73b629..18df46b998 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { BlockStatement } from "./BlockStatement" @@ -59,4 +60,7 @@ export class ETSModule extends BlockStatement { } export function isETSModule(node: AstNode): node is ETSModule { return node instanceof ETSModule +} +if (!nodeByType.has(81)) { + nodeByType.set(81, ETSModule) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts index 5d2dfca72b..53ff15d7ee 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -55,4 +56,7 @@ export class ETSNewArrayInstanceExpression extends Expression { } export function isETSNewArrayInstanceExpression(node: AstNode): node is ETSNewArrayInstanceExpression { return node instanceof ETSNewArrayInstanceExpression +} +if (!nodeByType.has(75)) { + nodeByType.set(75, ETSNewArrayInstanceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts index b75bab6263..67343bdc65 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -54,4 +55,7 @@ export class ETSNewClassInstanceExpression extends Expression { } export function isETSNewClassInstanceExpression(node: AstNode): node is ETSNewClassInstanceExpression { return node instanceof ETSNewClassInstanceExpression +} +if (!nodeByType.has(77)) { + nodeByType.set(77, ETSNewClassInstanceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts index 88a7b6be6a..23592d0874 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -61,4 +62,7 @@ export class ETSNewMultiDimArrayInstanceExpression extends Expression { } export function isETSNewMultiDimArrayInstanceExpression(node: AstNode): node is ETSNewMultiDimArrayInstanceExpression { return node instanceof ETSNewMultiDimArrayInstanceExpression +} +if (!nodeByType.has(76)) { + nodeByType.set(76, ETSNewMultiDimArrayInstanceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts index 279fc84720..d3f4b52b15 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class ETSNullType extends TypeNode { } export function isETSNullType(node: AstNode): node is ETSNullType { return node instanceof ETSNullType +} +if (!nodeByType.has(62)) { + nodeByType.set(62, ETSNullType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts index f784110d9f..fd00e6d3be 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -43,4 +44,7 @@ export class ETSPackageDeclaration extends Statement { } export function isETSPackageDeclaration(node: AstNode): node is ETSPackageDeclaration { return node instanceof ETSPackageDeclaration +} +if (!nodeByType.has(69)) { + nodeByType.set(69, ETSPackageDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts index 44a6f7f486..a9f95c8af2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -59,4 +60,7 @@ export class ETSParameterExpression extends Expression { } export function isETSParameterExpression(node: AstNode): node is ETSParameterExpression { return node instanceof ETSParameterExpression +} +if (!nodeByType.has(79)) { + nodeByType.set(79, ETSParameterExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts index 761c6f1b98..8dffc9d92e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -46,4 +47,7 @@ export class ETSPrimitiveType extends TypeNode { } export function isETSPrimitiveType(node: AstNode): node is ETSPrimitiveType { return node instanceof ETSPrimitiveType +} +if (!nodeByType.has(68)) { + nodeByType.set(68, ETSPrimitiveType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts index f9df26fee4..ec203d068b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class ETSReExportDeclaration extends Statement { } export function isETSReExportDeclaration(node: AstNode): node is ETSReExportDeclaration { return node instanceof ETSReExportDeclaration +} +if (!nodeByType.has(57)) { + nodeByType.set(57, ETSReExportDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts index b341a7ed37..3e7b67e859 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassDeclaration } from "./ClassDeclaration" @@ -43,4 +44,7 @@ export class ETSStructDeclaration extends ClassDeclaration { } export function isETSStructDeclaration(node: AstNode): node is ETSStructDeclaration { return node instanceof ETSStructDeclaration +} +if (!nodeByType.has(83)) { + nodeByType.set(83, ETSStructDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts index fbcee5019f..b0b5ff49ed 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -63,4 +64,7 @@ export class ETSTuple extends TypeNode { } export function isETSTuple(node: AstNode): node is ETSTuple { return node instanceof ETSTuple +} +if (!nodeByType.has(80)) { + nodeByType.set(80, ETSTuple) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts index eb65893c4e..8b16766d36 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -49,4 +50,7 @@ export class ETSTypeReference extends TypeNode { } export function isETSTypeReference(node: AstNode): node is ETSTypeReference { return node instanceof ETSTypeReference +} +if (!nodeByType.has(71)) { + nodeByType.set(71, ETSTypeReference) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts index 9d33ec09ba..e2954eabdb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -65,4 +66,7 @@ export class ETSTypeReferencePart extends TypeNode { } export function isETSTypeReferencePart(node: AstNode): node is ETSTypeReferencePart { return node instanceof ETSTypeReferencePart +} +if (!nodeByType.has(72)) { + nodeByType.set(72, ETSTypeReferencePart) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts index ac8aa77c68..f7a6c1eb8e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class ETSUndefinedType extends TypeNode { } export function isETSUndefinedType(node: AstNode): node is ETSUndefinedType { return node instanceof ETSUndefinedType +} +if (!nodeByType.has(63)) { + nodeByType.set(63, ETSUndefinedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts index ab58232f12..3a2b63fa82 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -45,4 +46,7 @@ export class ETSUnionType extends TypeNode { } export function isETSUnionType(node: AstNode): node is ETSUnionType { return node instanceof ETSUnionType +} +if (!nodeByType.has(73)) { + nodeByType.set(73, ETSUnionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts index ae5dbb3b42..a3945b2af0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -50,4 +51,7 @@ export class ETSWildcardType extends TypeNode { } export function isETSWildcardType(node: AstNode): node is ETSWildcardType { return node instanceof ETSWildcardType +} +if (!nodeByType.has(67)) { + nodeByType.set(67, ETSWildcardType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts index a74af4e3a7..baadf4ee50 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -42,4 +43,7 @@ export class EmptyStatement extends Statement { } export function isEmptyStatement(node: AstNode): node is EmptyStatement { return node instanceof EmptyStatement +} +if (!nodeByType.has(25)) { + nodeByType.set(25, EmptyStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts index d827b1a949..155b497686 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -50,4 +51,7 @@ export class ExportAllDeclaration extends Statement { } export function isExportAllDeclaration(node: AstNode): node is ExportAllDeclaration { return node instanceof ExportAllDeclaration +} +if (!nodeByType.has(26)) { + nodeByType.set(26, ExportAllDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts index 4da8c11d48..6d9c7334fd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -51,4 +52,7 @@ export class ExportDefaultDeclaration extends Statement { } export function isExportDefaultDeclaration(node: AstNode): node is ExportDefaultDeclaration { return node instanceof ExportDefaultDeclaration +} +if (!nodeByType.has(27)) { + nodeByType.set(27, ExportDefaultDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts index a90bb6bbdf..5b7fb1463f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -65,4 +66,7 @@ export class ExportNamedDeclaration extends Statement { } export function isExportNamedDeclaration(node: AstNode): node is ExportNamedDeclaration { return node instanceof ExportNamedDeclaration +} +if (!nodeByType.has(28)) { + nodeByType.set(28, ExportNamedDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts index 382c890546..1f11d0bfec 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -49,4 +50,7 @@ export class ExportSpecifier extends Statement { } export function isExportSpecifier(node: AstNode): node is ExportSpecifier { return node instanceof ExportSpecifier +} +if (!nodeByType.has(29)) { + nodeByType.set(29, ExportSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Expression.ts b/arkoala-arkts/libarkts/src/generated/peers/Expression.ts index 29c10a05b4..a10db93e73 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Expression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Expression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts index bbc0cfb2ec..f91dc0b6da 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -49,4 +50,7 @@ export class ExpressionStatement extends Statement { } export function isExpressionStatement(node: AstNode): node is ExpressionStatement { return node instanceof ExpressionStatement +} +if (!nodeByType.has(30)) { + nodeByType.set(30, ExpressionStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts index 832fed72cb..6bfbe4adfc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -56,4 +57,7 @@ export class ForInStatement extends LoopStatement { } export function isForInStatement(node: AstNode): node is ForInStatement { return node instanceof ForInStatement +} +if (!nodeByType.has(31)) { + nodeByType.set(31, ForInStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts index affdb4ed3c..cbde8c02a9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -59,4 +60,7 @@ export class ForOfStatement extends LoopStatement { } export function isForOfStatement(node: AstNode): node is ForOfStatement { return node instanceof ForOfStatement +} +if (!nodeByType.has(32)) { + nodeByType.set(32, ForOfStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts index 509fe7646c..ad9600df40 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -59,4 +60,7 @@ export class ForUpdateStatement extends LoopStatement { } export function isForUpdateStatement(node: AstNode): node is ForUpdateStatement { return node instanceof ForUpdateStatement +} +if (!nodeByType.has(33)) { + nodeByType.set(33, ForUpdateStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts index e11cd95f94..44d73ed8e3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ScriptFunction } from "./ScriptFunction" diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts index 2a71f9ee20..a7ed676090 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -65,4 +66,7 @@ export class FunctionDeclaration extends Statement { } export function isFunctionDeclaration(node: AstNode): node is FunctionDeclaration { return node instanceof FunctionDeclaration +} +if (!nodeByType.has(34)) { + nodeByType.set(34, FunctionDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts index 549488ee30..86b9888397 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -62,4 +63,7 @@ export class FunctionExpression extends Expression { } export function isFunctionExpression(node: AstNode): node is FunctionExpression { return node instanceof FunctionExpression +} +if (!nodeByType.has(35)) { + nodeByType.set(35, FunctionExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts index 04b8cb47f5..5a7a409c0a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" @@ -101,4 +102,7 @@ export class Identifier extends AnnotatedExpression { } export function isIdentifier(node: AstNode): node is Identifier { return node instanceof Identifier +} +if (!nodeByType.has(36)) { + nodeByType.set(36, Identifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts index 688ea8080e..e2c4282391 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -55,4 +56,7 @@ export class IfStatement extends Statement { } export function isIfStatement(node: AstNode): node is IfStatement { return node instanceof IfStatement +} +if (!nodeByType.has(38)) { + nodeByType.set(38, IfStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts index 38a6ff2af4..d655c481d3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -59,4 +60,7 @@ export class ImportDeclaration extends Statement { } export function isImportDeclaration(node: AstNode): node is ImportDeclaration { return node instanceof ImportDeclaration +} +if (!nodeByType.has(39)) { + nodeByType.set(39, ImportDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts index 28d39da395..336b81eef3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -49,4 +50,7 @@ export class ImportDefaultSpecifier extends Statement { } export function isImportDefaultSpecifier(node: AstNode): node is ImportDefaultSpecifier { return node instanceof ImportDefaultSpecifier +} +if (!nodeByType.has(41)) { + nodeByType.set(41, ImportDefaultSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts index 489f8b840e..b81ea4a4dc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -48,4 +49,7 @@ export class ImportExpression extends Expression { } export function isImportExpression(node: AstNode): node is ImportExpression { return node instanceof ImportExpression +} +if (!nodeByType.has(40)) { + nodeByType.set(40, ImportExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts index b50dd642c7..4e60b59b99 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -49,4 +50,7 @@ export class ImportNamespaceSpecifier extends Statement { } export function isImportNamespaceSpecifier(node: AstNode): node is ImportNamespaceSpecifier { return node instanceof ImportNamespaceSpecifier +} +if (!nodeByType.has(42)) { + nodeByType.set(42, ImportNamespaceSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts index 54ea216c9c..4a09942581 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -55,4 +56,7 @@ export class ImportSpecifier extends Statement { } export function isImportSpecifier(node: AstNode): node is ImportSpecifier { return node instanceof ImportSpecifier +} +if (!nodeByType.has(43)) { + nodeByType.set(43, ImportSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts b/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts index 4bfb4ab119..53d42c93ed 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TSInterfaceDeclaration } from "./TSInterfaceDeclaration" diff --git a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts index 255075d6ef..04137ff53a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class LabelledStatement extends Statement { } export function isLabelledStatement(node: AstNode): node is LabelledStatement { return node instanceof LabelledStatement +} +if (!nodeByType.has(44)) { + nodeByType.set(44, LabelledStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Literal.ts b/arkoala-arkts/libarkts/src/generated/peers/Literal.ts index 8b2a041061..1ea75b77c0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Literal.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Literal.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts index 73b0ba8049..b8e4df54cc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts index 1759731487..9269c8186c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts index fc70b945f8..6528a6e1a1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { MaybeOptionalExpression } from "./MaybeOptionalExpression" @@ -65,4 +66,7 @@ export class MemberExpression extends MaybeOptionalExpression { } export function isMemberExpression(node: AstNode): node is MemberExpression { return node instanceof MemberExpression +} +if (!nodeByType.has(45)) { + nodeByType.set(45, MemberExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts index 6d02a0c568..aba6fefdda 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -46,4 +47,7 @@ export class MetaProperty extends Expression { } export function isMetaProperty(node: AstNode): node is MetaProperty { return node instanceof MetaProperty +} +if (!nodeByType.has(46)) { + nodeByType.set(46, MetaProperty) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts index 502e8f193e..b4e457114b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" @@ -69,4 +70,7 @@ export class MethodDefinition extends ClassElement { } export function isMethodDefinition(node: AstNode): node is MethodDefinition { return node instanceof MethodDefinition +} +if (!nodeByType.has(47)) { + nodeByType.set(47, MethodDefinition) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts index a8060bb1b7..01a691a220 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -53,4 +54,7 @@ export class NamedType extends TypeNode { } export function isNamedType(node: AstNode): node is NamedType { return node instanceof NamedType +} +if (!nodeByType.has(48)) { + nodeByType.set(48, NamedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts index 1c43309d01..88ed0c1c00 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -48,4 +49,7 @@ export class NewExpression extends Expression { } export function isNewExpression(node: AstNode): node is NewExpression { return node instanceof NewExpression +} +if (!nodeByType.has(49)) { + nodeByType.set(49, NewExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts index b61e7aa8ce..831fe83249 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -42,4 +43,7 @@ export class NullLiteral extends Literal { } export function isNullLiteral(node: AstNode): node is NullLiteral { return node instanceof NullLiteral +} +if (!nodeByType.has(50)) { + nodeByType.set(50, NullLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts index 0677d42de7..25df8b1f07 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -39,4 +40,7 @@ export class NumberLiteral extends Literal { } export function isNumberLiteral(node: AstNode): node is NumberLiteral { return node instanceof NumberLiteral +} +if (!nodeByType.has(52)) { + nodeByType.set(52, NumberLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts index 1c8e9eea73..5191506def 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts index ec426f5fcb..63a037be28 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -42,4 +43,7 @@ export class OmittedExpression extends Expression { } export function isOmittedExpression(node: AstNode): node is OmittedExpression { return node instanceof OmittedExpression +} +if (!nodeByType.has(53)) { + nodeByType.set(53, OmittedExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts index 2dde8584eb..b24192a525 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class OpaqueTypeNode extends TypeNode { } export function isOpaqueTypeNode(node: AstNode): node is OpaqueTypeNode { return node instanceof OpaqueTypeNode +} +if (!nodeByType.has(153)) { + nodeByType.set(153, OpaqueTypeNode) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts index 115f28cb46..0b67dd5358 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -49,4 +50,7 @@ export class PrefixAssertionExpression extends Expression { } export function isPrefixAssertionExpression(node: AstNode): node is PrefixAssertionExpression { return node instanceof PrefixAssertionExpression +} +if (!nodeByType.has(54)) { + nodeByType.set(54, PrefixAssertionExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Property.ts b/arkoala-arkts/libarkts/src/generated/peers/Property.ts index 67f37e128a..cfb988e2a1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Property.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Property.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -76,4 +77,7 @@ export class Property extends Expression { } export function isProperty(node: AstNode): node is Property { return node instanceof Property +} +if (!nodeByType.has(55)) { + nodeByType.set(55, Property) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts index 002fab2986..ec60b7314d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -49,4 +50,7 @@ export class RegExpLiteral extends Literal { } export function isRegExpLiteral(node: AstNode): node is RegExpLiteral { return node instanceof RegExpLiteral +} +if (!nodeByType.has(56)) { + nodeByType.set(56, RegExpLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts index 6d416cdbe8..f544d98c07 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -55,4 +56,7 @@ export class ReturnStatement extends Statement { } export function isReturnStatement(node: AstNode): node is ReturnStatement { return node instanceof ReturnStatement +} +if (!nodeByType.has(58)) { + nodeByType.set(58, ReturnStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts index 062ae458e8..ec0eff15a8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Identifier } from "./Identifier" @@ -168,4 +169,7 @@ export class ScriptFunction extends AstNode { } export function isScriptFunction(node: AstNode): node is ScriptFunction { return node instanceof ScriptFunction +} +if (!nodeByType.has(59)) { + nodeByType.set(59, ScriptFunction) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts index df3665420b..f636a3609d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -48,4 +49,7 @@ export class SequenceExpression extends Expression { } export function isSequenceExpression(node: AstNode): node is SequenceExpression { return node instanceof SequenceExpression +} +if (!nodeByType.has(60)) { + nodeByType.set(60, SequenceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts index 85b1a750c8..b8b5489ec9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts index b3c39e95db..f1d2849fa6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" export abstract class Statement extends AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts index cec3d65cd0..e1fb6c6684 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -48,4 +49,7 @@ export class StringLiteral extends Literal { } export function isStringLiteral(node: AstNode): node is StringLiteral { return node instanceof StringLiteral +} +if (!nodeByType.has(61)) { + nodeByType.set(61, StringLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts index cfd0c78cae..4552c4463e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -42,4 +43,7 @@ export class SuperExpression extends Expression { } export function isSuperExpression(node: AstNode): node is SuperExpression { return node instanceof SuperExpression +} +if (!nodeByType.has(82)) { + nodeByType.set(82, SuperExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts index 64bcdb304c..a56fdb3cc3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class SwitchCaseStatement extends Statement { } export function isSwitchCaseStatement(node: AstNode): node is SwitchCaseStatement { return node instanceof SwitchCaseStatement +} +if (!nodeByType.has(84)) { + nodeByType.set(84, SwitchCaseStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts index 824fc4be83..92046a01f9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -56,4 +57,7 @@ export class SwitchStatement extends Statement { } export function isSwitchStatement(node: AstNode): node is SwitchStatement { return node instanceof SwitchStatement +} +if (!nodeByType.has(85)) { + nodeByType.set(85, SwitchStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts index a9e9bc5c43..2390a90a2f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSAnyKeyword extends TypeNode { } export function isTSAnyKeyword(node: AstNode): node is TSAnyKeyword { return node instanceof TSAnyKeyword +} +if (!nodeByType.has(90)) { + nodeByType.set(90, TSAnyKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts index 7c08bd7bc1..d3d817d8cb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -45,4 +46,7 @@ export class TSArrayType extends TypeNode { } export function isTSArrayType(node: AstNode): node is TSArrayType { return node instanceof TSArrayType +} +if (!nodeByType.has(101)) { + nodeByType.set(101, TSArrayType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts index 6d892689c0..4a4ecdb619 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" @@ -53,4 +54,7 @@ export class TSAsExpression extends AnnotatedExpression { } export function isTSAsExpression(node: AstNode): node is TSAsExpression { return node instanceof TSAsExpression +} +if (!nodeByType.has(137)) { + nodeByType.set(137, TSAsExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts index 5c5e0204e9..4c06a44b55 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSBigintKeyword extends TypeNode { } export function isTSBigintKeyword(node: AstNode): node is TSBigintKeyword { return node instanceof TSBigintKeyword +} +if (!nodeByType.has(97)) { + nodeByType.set(97, TSBigintKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts index 25fd5d2b42..5b49168cb2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSBooleanKeyword extends TypeNode { } export function isTSBooleanKeyword(node: AstNode): node is TSBooleanKeyword { return node instanceof TSBooleanKeyword +} +if (!nodeByType.has(92)) { + nodeByType.set(92, TSBooleanKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts index a5e43b62a4..11e237d6be 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -58,4 +59,7 @@ export class TSClassImplements extends Expression { } export function isTSClassImplements(node: AstNode): node is TSClassImplements { return node instanceof TSClassImplements +} +if (!nodeByType.has(138)) { + nodeByType.set(138, TSClassImplements) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts index 21f9982bd6..e59021171f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -55,4 +56,7 @@ export class TSConditionalType extends TypeNode { } export function isTSConditionalType(node: AstNode): node is TSConditionalType { return node instanceof TSConditionalType +} +if (!nodeByType.has(110)) { + nodeByType.set(110, TSConditionalType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts index eeb36fa8ad..daf1cc7540 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -56,4 +57,7 @@ export class TSConstructorType extends TypeNode { } export function isTSConstructorType(node: AstNode): node is TSConstructorType { return node instanceof TSConstructorType +} +if (!nodeByType.has(125)) { + nodeByType.set(125, TSConstructorType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts index d02c582043..247ba42ec6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -66,4 +67,7 @@ export class TSEnumDeclaration extends TypedStatement { } export function isTSEnumDeclaration(node: AstNode): node is TSEnumDeclaration { return node instanceof TSEnumDeclaration +} +if (!nodeByType.has(86)) { + nodeByType.set(86, TSEnumDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts index 30fd92c709..089827e0a2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -64,4 +65,7 @@ export class TSEnumMember extends Statement { } export function isTSEnumMember(node: AstNode): node is TSEnumMember { return node instanceof TSEnumMember +} +if (!nodeByType.has(87)) { + nodeByType.set(87, TSEnumMember) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts index 68f06199e0..24015578b0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -45,4 +46,7 @@ export class TSExternalModuleReference extends Expression { } export function isTSExternalModuleReference(node: AstNode): node is TSExternalModuleReference { return node instanceof TSExternalModuleReference +} +if (!nodeByType.has(88)) { + nodeByType.set(88, TSExternalModuleReference) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts index a69de43ee6..aa112e1bfb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -53,4 +54,7 @@ export class TSFunctionType extends TypeNode { } export function isTSFunctionType(node: AstNode): node is TSFunctionType { return node instanceof TSFunctionType +} +if (!nodeByType.has(124)) { + nodeByType.set(124, TSFunctionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts index 15d0899242..8d5dcfacc0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -53,4 +54,7 @@ export class TSImportEqualsDeclaration extends Statement { } export function isTSImportEqualsDeclaration(node: AstNode): node is TSImportEqualsDeclaration { return node instanceof TSImportEqualsDeclaration +} +if (!nodeByType.has(123)) { + nodeByType.set(123, TSImportEqualsDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts index d3baf27b2c..bb821894a3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -56,4 +57,7 @@ export class TSImportType extends TypeNode { } export function isTSImportType(node: AstNode): node is TSImportType { return node instanceof TSImportType +} +if (!nodeByType.has(111)) { + nodeByType.set(111, TSImportType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts index 929d213b3f..d8762b0f51 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" @@ -53,4 +54,7 @@ export class TSIndexSignature extends TypedAstNode { } export function isTSIndexSignature(node: AstNode): node is TSIndexSignature { return node instanceof TSIndexSignature +} +if (!nodeByType.has(135)) { + nodeByType.set(135, TSIndexSignature) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts index f1792697d8..37cd54b06d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -48,4 +49,7 @@ export class TSIndexedAccessType extends TypeNode { } export function isTSIndexedAccessType(node: AstNode): node is TSIndexedAccessType { return node instanceof TSIndexedAccessType +} +if (!nodeByType.has(129)) { + nodeByType.set(129, TSIndexedAccessType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts index f0b45fdbfc..e305bf923c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -46,4 +47,7 @@ export class TSInferType extends TypeNode { } export function isTSInferType(node: AstNode): node is TSInferType { return node instanceof TSInferType +} +if (!nodeByType.has(109)) { + nodeByType.set(109, TSInferType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts index 284f288096..90f7004ee6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -51,4 +52,7 @@ export class TSInterfaceBody extends Expression { } export function isTSInterfaceBody(node: AstNode): node is TSInterfaceBody { return node instanceof TSInterfaceBody +} +if (!nodeByType.has(131)) { + nodeByType.set(131, TSInterfaceBody) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts index f9bea72533..ee2bb73830 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -97,4 +98,7 @@ export class TSInterfaceDeclaration extends TypedStatement { } export function isTSInterfaceDeclaration(node: AstNode): node is TSInterfaceDeclaration { return node instanceof TSInterfaceDeclaration +} +if (!nodeByType.has(130)) { + nodeByType.set(130, TSInterfaceDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts index d7b6336931..f5e2b0fc48 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -49,4 +50,7 @@ export class TSInterfaceHeritage extends Expression { } export function isTSInterfaceHeritage(node: AstNode): node is TSInterfaceHeritage { return node instanceof TSInterfaceHeritage +} +if (!nodeByType.has(132)) { + nodeByType.set(132, TSInterfaceHeritage) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts index e3cc6b9592..f169e27918 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -46,4 +47,7 @@ export class TSIntersectionType extends TypeNode { } export function isTSIntersectionType(node: AstNode): node is TSIntersectionType { return node instanceof TSIntersectionType +} +if (!nodeByType.has(112)) { + nodeByType.set(112, TSIntersectionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts index 558cbcc679..c424677916 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -46,4 +47,7 @@ export class TSLiteralType extends TypeNode { } export function isTSLiteralType(node: AstNode): node is TSLiteralType { return node instanceof TSLiteralType +} +if (!nodeByType.has(108)) { + nodeByType.set(108, TSLiteralType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts index 4bec564d2b..1a55b53806 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -56,4 +57,7 @@ export class TSMappedType extends TypeNode { } export function isTSMappedType(node: AstNode): node is TSMappedType { return node instanceof TSMappedType +} +if (!nodeByType.has(113)) { + nodeByType.set(113, TSMappedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts index 96072c65e7..cb1219662d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -65,4 +66,7 @@ export class TSMethodSignature extends AstNode { } export function isTSMethodSignature(node: AstNode): node is TSMethodSignature { return node instanceof TSMethodSignature +} +if (!nodeByType.has(105)) { + nodeByType.set(105, TSMethodSignature) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts index dd276c7882..99b04712e6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -39,4 +40,7 @@ export class TSModuleBlock extends Statement { } export function isTSModuleBlock(node: AstNode): node is TSModuleBlock { return node instanceof TSModuleBlock +} +if (!nodeByType.has(114)) { + nodeByType.set(114, TSModuleBlock) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts index 98adfc7ccd..6dd73bc7ea 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -49,4 +50,7 @@ export class TSModuleDeclaration extends Statement { } export function isTSModuleDeclaration(node: AstNode): node is TSModuleDeclaration { return node instanceof TSModuleDeclaration +} +if (!nodeByType.has(122)) { + nodeByType.set(122, TSModuleDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts index b7d1d4663b..f1020d9b82 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -55,4 +56,7 @@ export class TSNamedTupleMember extends TypeNode { } export function isTSNamedTupleMember(node: AstNode): node is TSNamedTupleMember { return node instanceof TSNamedTupleMember +} +if (!nodeByType.has(134)) { + nodeByType.set(134, TSNamedTupleMember) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts index f5dff1d60e..635f34a507 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSNeverKeyword extends TypeNode { } export function isTSNeverKeyword(node: AstNode): node is TSNeverKeyword { return node instanceof TSNeverKeyword +} +if (!nodeByType.has(98)) { + nodeByType.set(98, TSNeverKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts index c349ead31c..5bd56f7114 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -48,4 +49,7 @@ export class TSNonNullExpression extends Expression { } export function isTSNonNullExpression(node: AstNode): node is TSNonNullExpression { return node instanceof TSNonNullExpression +} +if (!nodeByType.has(99)) { + nodeByType.set(99, TSNonNullExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts index fdb0363c96..a2025727f8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSNullKeyword extends TypeNode { } export function isTSNullKeyword(node: AstNode): node is TSNullKeyword { return node instanceof TSNullKeyword +} +if (!nodeByType.has(100)) { + nodeByType.set(100, TSNullKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts index 14c7a45c0a..2d791b858d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSNumberKeyword extends TypeNode { } export function isTSNumberKeyword(node: AstNode): node is TSNumberKeyword { return node instanceof TSNumberKeyword +} +if (!nodeByType.has(89)) { + nodeByType.set(89, TSNumberKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts index ee05fa5042..5691063127 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSObjectKeyword extends TypeNode { } export function isTSObjectKeyword(node: AstNode): node is TSObjectKeyword { return node instanceof TSObjectKeyword +} +if (!nodeByType.has(96)) { + nodeByType.set(96, TSObjectKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts index 4206b7b5c8..940c8aa534 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -58,4 +59,7 @@ export class TSParameterProperty extends Expression { } export function isTSParameterProperty(node: AstNode): node is TSParameterProperty { return node instanceof TSParameterProperty +} +if (!nodeByType.has(121)) { + nodeByType.set(121, TSParameterProperty) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts index 1e091bef95..4bfbedf07d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -46,4 +47,7 @@ export class TSParenthesizedType extends TypeNode { } export function isTSParenthesizedType(node: AstNode): node is TSParenthesizedType { return node instanceof TSParenthesizedType +} +if (!nodeByType.has(107)) { + nodeByType.set(107, TSParenthesizedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts index d14000f2a6..528b234b10 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedAstNode } from "./AnnotatedAstNode" @@ -62,4 +63,7 @@ export class TSPropertySignature extends AnnotatedAstNode { } export function isTSPropertySignature(node: AstNode): node is TSPropertySignature { return node instanceof TSPropertySignature +} +if (!nodeByType.has(104)) { + nodeByType.set(104, TSPropertySignature) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts index d7c41cff3f..5420eddc53 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -55,4 +56,7 @@ export class TSQualifiedName extends Expression { } export function isTSQualifiedName(node: AstNode): node is TSQualifiedName { return node instanceof TSQualifiedName +} +if (!nodeByType.has(128)) { + nodeByType.set(128, TSQualifiedName) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts index 4fc3e85cbb..8f3335b4a8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" @@ -58,4 +59,7 @@ export class TSSignatureDeclaration extends TypedAstNode { } export function isTSSignatureDeclaration(node: AstNode): node is TSSignatureDeclaration { return node instanceof TSSignatureDeclaration +} +if (!nodeByType.has(106)) { + nodeByType.set(106, TSSignatureDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts index 6638b1b3e1..f19cc22fd4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSStringKeyword extends TypeNode { } export function isTSStringKeyword(node: AstNode): node is TSStringKeyword { return node instanceof TSStringKeyword +} +if (!nodeByType.has(91)) { + nodeByType.set(91, TSStringKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts index c5a813ea92..0231fbceaf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSThisType extends TypeNode { } export function isTSThisType(node: AstNode): node is TSThisType { return node instanceof TSThisType +} +if (!nodeByType.has(115)) { + nodeByType.set(115, TSThisType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts index f780da7468..ec1d90e8e9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -45,4 +46,7 @@ export class TSTupleType extends TypeNode { } export function isTSTupleType(node: AstNode): node is TSTupleType { return node instanceof TSTupleType +} +if (!nodeByType.has(133)) { + nodeByType.set(133, TSTupleType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts index cc5654dfb0..8cf089e12e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedStatement } from "./AnnotatedStatement" @@ -74,4 +75,7 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement { } export function isTSTypeAliasDeclaration(node: AstNode): node is TSTypeAliasDeclaration { return node instanceof TSTypeAliasDeclaration +} +if (!nodeByType.has(126)) { + nodeByType.set(126, TSTypeAliasDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts index 8d1915b7da..49b0638c26 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" @@ -50,4 +51,7 @@ export class TSTypeAssertion extends AnnotatedExpression { } export function isTSTypeAssertion(node: AstNode): node is TSTypeAssertion { return node instanceof TSTypeAssertion +} +if (!nodeByType.has(139)) { + nodeByType.set(139, TSTypeAssertion) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts index db04fb73b9..1b4566d0ac 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -45,4 +46,7 @@ export class TSTypeLiteral extends TypeNode { } export function isTSTypeLiteral(node: AstNode): node is TSTypeLiteral { return node instanceof TSTypeLiteral +} +if (!nodeByType.has(103)) { + nodeByType.set(103, TSTypeLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts index 0245e44c46..4d52ae226c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -55,4 +56,7 @@ export class TSTypeOperator extends TypeNode { } export function isTSTypeOperator(node: AstNode): node is TSTypeOperator { return node instanceof TSTypeOperator +} +if (!nodeByType.has(116)) { + nodeByType.set(116, TSTypeOperator) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts index df61b3d5e8..ea88652879 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -73,4 +74,7 @@ export class TSTypeParameter extends Expression { } export function isTSTypeParameter(node: AstNode): node is TSTypeParameter { return node instanceof TSTypeParameter +} +if (!nodeByType.has(117)) { + nodeByType.set(117, TSTypeParameter) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts index 649b62924c..a94ae07482 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -49,4 +50,7 @@ export class TSTypeParameterDeclaration extends Expression { } export function isTSTypeParameterDeclaration(node: AstNode): node is TSTypeParameterDeclaration { return node instanceof TSTypeParameterDeclaration +} +if (!nodeByType.has(118)) { + nodeByType.set(118, TSTypeParameterDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts index bb571ed297..6d0836ed5f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -46,4 +47,7 @@ export class TSTypeParameterInstantiation extends Expression { } export function isTSTypeParameterInstantiation(node: AstNode): node is TSTypeParameterInstantiation { return node instanceof TSTypeParameterInstantiation +} +if (!nodeByType.has(119)) { + nodeByType.set(119, TSTypeParameterInstantiation) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts index 0af99af294..af4f9de446 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -52,4 +53,7 @@ export class TSTypePredicate extends TypeNode { } export function isTSTypePredicate(node: AstNode): node is TSTypePredicate { return node instanceof TSTypePredicate +} +if (!nodeByType.has(120)) { + nodeByType.set(120, TSTypePredicate) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts index e4be5cc263..299d735163 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -46,4 +47,7 @@ export class TSTypeQuery extends TypeNode { } export function isTSTypeQuery(node: AstNode): node is TSTypeQuery { return node instanceof TSTypeQuery +} +if (!nodeByType.has(136)) { + nodeByType.set(136, TSTypeQuery) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts index 286229070c..85e47701a3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -50,4 +51,7 @@ export class TSTypeReference extends TypeNode { } export function isTSTypeReference(node: AstNode): node is TSTypeReference { return node instanceof TSTypeReference +} +if (!nodeByType.has(127)) { + nodeByType.set(127, TSTypeReference) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts index 617f53697c..cfedbf5b7a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSUndefinedKeyword extends TypeNode { } export function isTSUndefinedKeyword(node: AstNode): node is TSUndefinedKeyword { return node instanceof TSUndefinedKeyword +} +if (!nodeByType.has(94)) { + nodeByType.set(94, TSUndefinedKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts index 7602a8fbe5..c49af47c5d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -45,4 +46,7 @@ export class TSUnionType extends TypeNode { } export function isTSUnionType(node: AstNode): node is TSUnionType { return node instanceof TSUnionType +} +if (!nodeByType.has(102)) { + nodeByType.set(102, TSUnionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts index 0b40302310..34cc18e2fb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSUnknownKeyword extends TypeNode { } export function isTSUnknownKeyword(node: AstNode): node is TSUnknownKeyword { return node instanceof TSUnknownKeyword +} +if (!nodeByType.has(95)) { + nodeByType.set(95, TSUnknownKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts index 392412c70c..8b4f2fb813 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -42,4 +43,7 @@ export class TSVoidKeyword extends TypeNode { } export function isTSVoidKeyword(node: AstNode): node is TSVoidKeyword { return node instanceof TSVoidKeyword +} +if (!nodeByType.has(93)) { + nodeByType.set(93, TSVoidKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts index 991244956d..d8b5e12ff8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -53,4 +54,7 @@ export class TaggedTemplateExpression extends Expression { } export function isTaggedTemplateExpression(node: AstNode): node is TaggedTemplateExpression { return node instanceof TaggedTemplateExpression +} +if (!nodeByType.has(140)) { + nodeByType.set(140, TaggedTemplateExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts index 0d505f70fc..4caf056f41 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -54,4 +55,7 @@ export class TemplateElement extends Expression { } export function isTemplateElement(node: AstNode): node is TemplateElement { return node instanceof TemplateElement +} +if (!nodeByType.has(141)) { + nodeByType.set(141, TemplateElement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts index 952583ba0e..2f9722608f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -49,4 +50,7 @@ export class TemplateLiteral extends Expression { } export function isTemplateLiteral(node: AstNode): node is TemplateLiteral { return node instanceof TemplateLiteral +} +if (!nodeByType.has(142)) { + nodeByType.set(142, TemplateLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts index 28563e464c..6de59a46e0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -42,4 +43,7 @@ export class ThisExpression extends Expression { } export function isThisExpression(node: AstNode): node is ThisExpression { return node instanceof ThisExpression +} +if (!nodeByType.has(143)) { + nodeByType.set(143, ThisExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts index c2468f34cc..b362f6e975 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class ThrowStatement extends Statement { } export function isThrowStatement(node: AstNode): node is ThrowStatement { return node instanceof ThrowStatement +} +if (!nodeByType.has(145)) { + nodeByType.set(145, ThrowStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts index cbf22f6dcd..b790a1d19b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -53,4 +54,7 @@ export class TryStatement extends Statement { } export function isTryStatement(node: AstNode): node is TryStatement { return node instanceof TryStatement +} +if (!nodeByType.has(146)) { + nodeByType.set(146, TryStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts index bd893051b9..789c66b729 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts index a93cec213f..2e92127278 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" export abstract class TypedAstNode extends AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts index f277f2845b..d3efbbbab3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts index e12144926f..622ddb28e4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -45,4 +46,7 @@ export class TypeofExpression extends Expression { } export function isTypeofExpression(node: AstNode): node is TypeofExpression { return node instanceof TypeofExpression +} +if (!nodeByType.has(144)) { + nodeByType.set(144, TypeofExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts index 3664948fc9..cfd26a3598 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -52,4 +53,7 @@ export class UnaryExpression extends Expression { } export function isUnaryExpression(node: AstNode): node is UnaryExpression { return node instanceof UnaryExpression +} +if (!nodeByType.has(147)) { + nodeByType.set(147, UnaryExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts index ff60f1550f..ee3bb46bc1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -42,4 +43,7 @@ export class UndefinedLiteral extends Literal { } export function isUndefinedLiteral(node: AstNode): node is UndefinedLiteral { return node instanceof UndefinedLiteral +} +if (!nodeByType.has(51)) { + nodeByType.set(51, UndefinedLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts index e0f3f13748..1db3cd5cbf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -55,4 +56,7 @@ export class UpdateExpression extends Expression { } export function isUpdateExpression(node: AstNode): node is UpdateExpression { return node instanceof UpdateExpression +} +if (!nodeByType.has(148)) { + nodeByType.set(148, UpdateExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts index b145115d86..c82b5ae818 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -61,4 +62,7 @@ export class VariableDeclaration extends Statement { } export function isVariableDeclaration(node: AstNode): node is VariableDeclaration { return node instanceof VariableDeclaration +} +if (!nodeByType.has(149)) { + nodeByType.set(149, VariableDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts index 9d46bd0351..5db1da15be 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -65,4 +66,7 @@ export class VariableDeclarator extends TypedStatement { } export function isVariableDeclarator(node: AstNode): node is VariableDeclarator { return node instanceof VariableDeclarator +} +if (!nodeByType.has(150)) { + nodeByType.set(150, VariableDeclarator) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts index b5ca5e0be1..d2b24f274c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -50,4 +51,7 @@ export class WhileStatement extends LoopStatement { } export function isWhileStatement(node: AstNode): node is WhileStatement { return node instanceof WhileStatement +} +if (!nodeByType.has(151)) { + nodeByType.set(151, WhileStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts index 6a1279f7bb..fb025cb58a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -48,4 +49,7 @@ export class YieldExpression extends Expression { } export function isYieldExpression(node: AstNode): node is YieldExpression { return node instanceof YieldExpression +} +if (!nodeByType.has(152)) { + nodeByType.set(152, YieldExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/reexport-for-generated.ts b/arkoala-arkts/libarkts/src/reexport-for-generated.ts index c318a164b0..648817510d 100644 --- a/arkoala-arkts/libarkts/src/reexport-for-generated.ts +++ b/arkoala-arkts/libarkts/src/reexport-for-generated.ts @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - export { KNativePointer } from "@koalaui/interop" export { AstNode } from "./arkts-api/peers/AstNode" export { Es2pandaAstNodeType } from "./Es2pandaEnums" @@ -27,5 +26,6 @@ export { unpackObject, assertValidPeer } from "./arkts-api/utilities/private" +export { nodeByType } from "./arkts-api/class-by-peer" export { global } from "./arkts-api/static/global" export { Es2pandaMemberExpressionKind } from "./generated/Es2pandaEnums" -- Gitee From 5910a1b5ef8e00e0cb56d2f615048422389c1c14 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 19 Feb 2025 12:05:05 +0300 Subject: [PATCH 07/12] non-nullable create Signed-off-by: naumovdmitrii --- .../src/generated/peers/AnnotationDeclaration.ts | 8 ++++---- .../libarkts/src/generated/peers/AnnotationUsage.ts | 8 ++++---- .../src/generated/peers/ArrowFunctionExpression.ts | 8 ++++---- .../libarkts/src/generated/peers/AssertStatement.ts | 4 ++-- .../libarkts/src/generated/peers/AwaitExpression.ts | 4 ++-- .../libarkts/src/generated/peers/BigIntLiteral.ts | 4 ++-- .../libarkts/src/generated/peers/BinaryExpression.ts | 4 ++-- .../libarkts/src/generated/peers/BooleanLiteral.ts | 4 ++-- .../libarkts/src/generated/peers/BreakStatement.ts | 8 ++++---- .../libarkts/src/generated/peers/CallExpression.ts | 6 +++--- .../libarkts/src/generated/peers/CatchClause.ts | 4 ++-- .../libarkts/src/generated/peers/ChainExpression.ts | 4 ++-- .../libarkts/src/generated/peers/CharLiteral.ts | 4 ++-- .../libarkts/src/generated/peers/ClassDeclaration.ts | 4 ++-- .../libarkts/src/generated/peers/ClassDefinition.ts | 12 ++++++------ .../libarkts/src/generated/peers/ClassExpression.ts | 4 ++-- .../libarkts/src/generated/peers/ClassProperty.ts | 4 ++-- .../libarkts/src/generated/peers/ClassStaticBlock.ts | 4 ++-- .../src/generated/peers/ConditionalExpression.ts | 4 ++-- .../src/generated/peers/ContinueStatement.ts | 8 ++++---- .../src/generated/peers/DebuggerStatement.ts | 4 ++-- .../libarkts/src/generated/peers/Decorator.ts | 4 ++-- .../src/generated/peers/DirectEvalExpression.ts | 4 ++-- .../libarkts/src/generated/peers/ETSClassLiteral.ts | 4 ++-- .../src/generated/peers/ETSLaunchExpression.ts | 4 ++-- .../generated/peers/ETSNewArrayInstanceExpression.ts | 4 ++-- .../generated/peers/ETSNewClassInstanceExpression.ts | 8 ++++---- .../peers/ETSNewMultiDimArrayInstanceExpression.ts | 8 ++++---- .../libarkts/src/generated/peers/ETSNullType.ts | 4 ++-- .../src/generated/peers/ETSPackageDeclaration.ts | 4 ++-- .../src/generated/peers/ETSParameterExpression.ts | 4 ++-- .../libarkts/src/generated/peers/ETSPrimitiveType.ts | 4 ++-- .../src/generated/peers/ETSStructDeclaration.ts | 4 ++-- .../libarkts/src/generated/peers/ETSTuple.ts | 12 ++++++------ .../libarkts/src/generated/peers/ETSTypeReference.ts | 4 ++-- .../src/generated/peers/ETSTypeReferencePart.ts | 8 ++++---- .../libarkts/src/generated/peers/ETSUndefinedType.ts | 4 ++-- .../libarkts/src/generated/peers/ETSUnionType.ts | 4 ++-- .../libarkts/src/generated/peers/ETSWildcardType.ts | 4 ++-- .../libarkts/src/generated/peers/EmptyStatement.ts | 4 ++-- .../src/generated/peers/ExportAllDeclaration.ts | 4 ++-- .../src/generated/peers/ExportDefaultDeclaration.ts | 4 ++-- .../src/generated/peers/ExportNamedDeclaration.ts | 12 ++++++------ .../libarkts/src/generated/peers/ExportSpecifier.ts | 4 ++-- .../src/generated/peers/ExpressionStatement.ts | 4 ++-- .../src/generated/peers/FunctionDeclaration.ts | 8 ++++---- .../src/generated/peers/FunctionExpression.ts | 8 ++++---- .../libarkts/src/generated/peers/Identifier.ts | 12 ++++++------ .../src/generated/peers/ImportDeclaration.ts | 4 ++-- .../src/generated/peers/ImportDefaultSpecifier.ts | 4 ++-- .../libarkts/src/generated/peers/ImportExpression.ts | 4 ++-- .../src/generated/peers/ImportNamespaceSpecifier.ts | 4 ++-- .../libarkts/src/generated/peers/ImportSpecifier.ts | 4 ++-- .../libarkts/src/generated/peers/MemberExpression.ts | 4 ++-- .../libarkts/src/generated/peers/MetaProperty.ts | 4 ++-- .../libarkts/src/generated/peers/MethodDefinition.ts | 4 ++-- .../libarkts/src/generated/peers/NamedType.ts | 4 ++-- .../libarkts/src/generated/peers/NewExpression.ts | 4 ++-- .../libarkts/src/generated/peers/NullLiteral.ts | 4 ++-- .../src/generated/peers/OmittedExpression.ts | 4 ++-- .../libarkts/src/generated/peers/OpaqueTypeNode.ts | 4 ++-- .../src/generated/peers/PrefixAssertionExpression.ts | 4 ++-- .../libarkts/src/generated/peers/Property.ts | 8 ++++---- .../libarkts/src/generated/peers/RegExpLiteral.ts | 4 ++-- .../libarkts/src/generated/peers/ReturnStatement.ts | 8 ++++---- .../src/generated/peers/SequenceExpression.ts | 4 ++-- .../libarkts/src/generated/peers/StringLiteral.ts | 6 +++--- .../libarkts/src/generated/peers/SuperExpression.ts | 4 ++-- .../libarkts/src/generated/peers/SwitchStatement.ts | 4 ++-- .../libarkts/src/generated/peers/TSAnyKeyword.ts | 4 ++-- .../libarkts/src/generated/peers/TSArrayType.ts | 4 ++-- .../libarkts/src/generated/peers/TSAsExpression.ts | 4 ++-- .../libarkts/src/generated/peers/TSBigintKeyword.ts | 4 ++-- .../libarkts/src/generated/peers/TSBooleanKeyword.ts | 4 ++-- .../src/generated/peers/TSClassImplements.ts | 8 ++++---- .../src/generated/peers/TSConditionalType.ts | 4 ++-- .../src/generated/peers/TSEnumDeclaration.ts | 4 ++-- .../libarkts/src/generated/peers/TSEnumMember.ts | 8 ++++---- .../src/generated/peers/TSExternalModuleReference.ts | 4 ++-- .../src/generated/peers/TSImportEqualsDeclaration.ts | 4 ++-- .../libarkts/src/generated/peers/TSImportType.ts | 4 ++-- .../libarkts/src/generated/peers/TSIndexSignature.ts | 4 ++-- .../src/generated/peers/TSIndexedAccessType.ts | 4 ++-- .../libarkts/src/generated/peers/TSInferType.ts | 4 ++-- .../libarkts/src/generated/peers/TSInterfaceBody.ts | 4 ++-- .../src/generated/peers/TSInterfaceDeclaration.ts | 4 ++-- .../src/generated/peers/TSInterfaceHeritage.ts | 4 ++-- .../src/generated/peers/TSIntersectionType.ts | 4 ++-- .../libarkts/src/generated/peers/TSLiteralType.ts | 4 ++-- .../libarkts/src/generated/peers/TSMappedType.ts | 4 ++-- .../src/generated/peers/TSNamedTupleMember.ts | 4 ++-- .../libarkts/src/generated/peers/TSNeverKeyword.ts | 4 ++-- .../src/generated/peers/TSNonNullExpression.ts | 4 ++-- .../libarkts/src/generated/peers/TSNullKeyword.ts | 4 ++-- .../libarkts/src/generated/peers/TSNumberKeyword.ts | 4 ++-- .../libarkts/src/generated/peers/TSObjectKeyword.ts | 4 ++-- .../src/generated/peers/TSParameterProperty.ts | 4 ++-- .../src/generated/peers/TSParenthesizedType.ts | 4 ++-- .../src/generated/peers/TSPropertySignature.ts | 4 ++-- .../libarkts/src/generated/peers/TSQualifiedName.ts | 4 ++-- .../libarkts/src/generated/peers/TSStringKeyword.ts | 4 ++-- .../libarkts/src/generated/peers/TSThisType.ts | 4 ++-- .../libarkts/src/generated/peers/TSTupleType.ts | 4 ++-- .../src/generated/peers/TSTypeAliasDeclaration.ts | 8 ++++---- .../libarkts/src/generated/peers/TSTypeAssertion.ts | 4 ++-- .../libarkts/src/generated/peers/TSTypeLiteral.ts | 4 ++-- .../libarkts/src/generated/peers/TSTypeOperator.ts | 4 ++-- .../libarkts/src/generated/peers/TSTypeParameter.ts | 8 ++++---- .../generated/peers/TSTypeParameterDeclaration.ts | 4 ++-- .../generated/peers/TSTypeParameterInstantiation.ts | 4 ++-- .../libarkts/src/generated/peers/TSTypePredicate.ts | 4 ++-- .../libarkts/src/generated/peers/TSTypeQuery.ts | 4 ++-- .../libarkts/src/generated/peers/TSTypeReference.ts | 4 ++-- .../src/generated/peers/TSUndefinedKeyword.ts | 4 ++-- .../libarkts/src/generated/peers/TSUnionType.ts | 4 ++-- .../libarkts/src/generated/peers/TSUnknownKeyword.ts | 4 ++-- .../libarkts/src/generated/peers/TSVoidKeyword.ts | 4 ++-- .../src/generated/peers/TaggedTemplateExpression.ts | 4 ++-- .../libarkts/src/generated/peers/TemplateElement.ts | 8 ++++---- .../libarkts/src/generated/peers/TemplateLiteral.ts | 4 ++-- .../libarkts/src/generated/peers/ThisExpression.ts | 4 ++-- .../libarkts/src/generated/peers/ThrowStatement.ts | 4 ++-- .../libarkts/src/generated/peers/TypeofExpression.ts | 4 ++-- .../libarkts/src/generated/peers/UnaryExpression.ts | 4 ++-- .../libarkts/src/generated/peers/UndefinedLiteral.ts | 4 ++-- .../libarkts/src/generated/peers/UpdateExpression.ts | 4 ++-- .../src/generated/peers/VariableDeclaration.ts | 4 ++-- .../src/generated/peers/VariableDeclarator.ts | 8 ++++---- .../libarkts/src/generated/peers/YieldExpression.ts | 4 ++-- 129 files changed, 312 insertions(+), 312 deletions(-) diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts index 62469de01f..17c10a02cc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts @@ -35,16 +35,16 @@ export class AnnotationDeclaration extends Statement { super(pointer) console.warn("Warning: stub node AnnotationDeclaration") } - static createAnnotationDeclaration(expr?: Expression): AnnotationDeclaration | undefined { + static createAnnotationDeclaration(expr?: Expression): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration(global.context, passNode(expr))) } - static updateAnnotationDeclaration(original?: AnnotationDeclaration, expr?: Expression): AnnotationDeclaration | undefined { + static updateAnnotationDeclaration(original?: AnnotationDeclaration, expr?: Expression): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration(global.context, passNode(original), passNode(expr))) } - static create1AnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration | undefined { + static create1AnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration1(global.context, passNode(expr), passNodeArray(properties), propertiesLen)) } - static update1AnnotationDeclaration(original: AnnotationDeclaration | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration | undefined { + static update1AnnotationDeclaration(original: AnnotationDeclaration | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration1(global.context, passNode(original), passNode(expr), passNodeArray(properties), propertiesLen)) } get internalNameConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts index a830f2cebe..8e324f9da5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts @@ -35,16 +35,16 @@ export class AnnotationUsage extends Statement { super(pointer) console.warn("Warning: stub node AnnotationUsage") } - static createAnnotationUsage(expr?: Expression): AnnotationUsage | undefined { + static createAnnotationUsage(expr?: Expression): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsageIr(global.context, passNode(expr))) } - static updateAnnotationUsage(original?: AnnotationUsage, expr?: Expression): AnnotationUsage | undefined { + static updateAnnotationUsage(original?: AnnotationUsage, expr?: Expression): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsageIr(global.context, passNode(original), passNode(expr))) } - static create1AnnotationUsage(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage | undefined { + static create1AnnotationUsage(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsageIr1(global.context, passNode(expr), passNodeArray(properties), propertiesLen)) } - static update1AnnotationUsage(original: AnnotationUsage | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage | undefined { + static update1AnnotationUsage(original: AnnotationUsage | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsageIr1(global.context, passNode(original), passNode(expr), passNodeArray(properties), propertiesLen)) } get expr(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts index 6a363283d8..90de76f6aa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts @@ -36,16 +36,16 @@ export class ArrowFunctionExpression extends Expression { super(pointer) console.warn("Warning: stub node ArrowFunctionExpression") } - static createArrowFunctionExpression(func?: ScriptFunction): ArrowFunctionExpression | undefined { + static createArrowFunctionExpression(func?: ScriptFunction): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression(global.context, passNode(func))) } - static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction): ArrowFunctionExpression | undefined { + static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression(global.context, passNode(original), passNode(func))) } - static create1ArrowFunctionExpression(other?: ArrowFunctionExpression): ArrowFunctionExpression | undefined { + static create1ArrowFunctionExpression(other?: ArrowFunctionExpression): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression1(global.context, passNode(other))) } - static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression): ArrowFunctionExpression | undefined { + static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression1(global.context, passNode(original), passNode(other))) } get functionConst(): ScriptFunction | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts index aa11ed3831..d9ff4e1d55 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts @@ -35,10 +35,10 @@ export class AssertStatement extends Statement { super(pointer) console.warn("Warning: stub node AssertStatement") } - static createAssertStatement(test?: Expression, second?: Expression): AssertStatement | undefined { + static createAssertStatement(test?: Expression, second?: Expression): AssertStatement { return new AssertStatement(global.generatedEs2panda._CreateAssertStatement(global.context, passNode(test), passNode(second))) } - static updateAssertStatement(original?: AssertStatement, test?: Expression, second?: Expression): AssertStatement | undefined { + static updateAssertStatement(original?: AssertStatement, test?: Expression, second?: Expression): AssertStatement { return new AssertStatement(global.generatedEs2panda._UpdateAssertStatement(global.context, passNode(original), passNode(test), passNode(second))) } get testConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts index 372d6e09c9..47492db2d1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts @@ -34,10 +34,10 @@ export class AwaitExpression extends Expression { super(pointer) console.warn("Warning: stub node AwaitExpression") } - static createAwaitExpression(argument?: Expression): AwaitExpression | undefined { + static createAwaitExpression(argument?: Expression): AwaitExpression { return new AwaitExpression(global.generatedEs2panda._CreateAwaitExpression(global.context, passNode(argument))) } - static updateAwaitExpression(original?: AwaitExpression, argument?: Expression): AwaitExpression | undefined { + static updateAwaitExpression(original?: AwaitExpression, argument?: Expression): AwaitExpression { return new AwaitExpression(global.generatedEs2panda._UpdateAwaitExpression(global.context, passNode(original), passNode(argument))) } get argumentConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts index 1e3cda0d3f..5138e43be0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts @@ -34,10 +34,10 @@ export class BigIntLiteral extends Literal { super(pointer) console.warn("Warning: stub node BigIntLiteral") } - static createBigIntLiteral(src: string): BigIntLiteral | undefined { + static createBigIntLiteral(src: string): BigIntLiteral { return new BigIntLiteral(global.generatedEs2panda._CreateBigIntLiteral(global.context, src)) } - static updateBigIntLiteral(original: BigIntLiteral | undefined, src: string): BigIntLiteral | undefined { + static updateBigIntLiteral(original: BigIntLiteral | undefined, src: string): BigIntLiteral { return new BigIntLiteral(global.generatedEs2panda._UpdateBigIntLiteral(global.context, passNode(original), src)) } get strConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts index d34a0a9500..ac197bf482 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts @@ -35,10 +35,10 @@ export class BinaryExpression extends Expression { super(pointer) console.warn("Warning: stub node BinaryExpression") } - static createBinaryExpression(left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression | undefined { + static createBinaryExpression(left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression { return new BinaryExpression(global.generatedEs2panda._CreateBinaryExpression(global.context, passNode(left), passNode(right), operatorType)) } - static updateBinaryExpression(original: BinaryExpression | undefined, left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression | undefined { + static updateBinaryExpression(original: BinaryExpression | undefined, left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression { return new BinaryExpression(global.generatedEs2panda._UpdateBinaryExpression(global.context, passNode(original), passNode(left), passNode(right), operatorType)) } get leftConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts index cf1d789d12..d31f4b5a44 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts @@ -34,10 +34,10 @@ export class BooleanLiteral extends Literal { super(pointer) console.warn("Warning: stub node BooleanLiteral") } - static createBooleanLiteral(value: boolean): BooleanLiteral | undefined { + static createBooleanLiteral(value: boolean): BooleanLiteral { return new BooleanLiteral(global.generatedEs2panda._CreateBooleanLiteral(global.context, value)) } - static updateBooleanLiteral(original: BooleanLiteral | undefined, value: boolean): BooleanLiteral | undefined { + static updateBooleanLiteral(original: BooleanLiteral | undefined, value: boolean): BooleanLiteral { return new BooleanLiteral(global.generatedEs2panda._UpdateBooleanLiteral(global.context, passNode(original), value)) } get valueConst(): boolean { diff --git a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts index 56c043d247..44785b47a9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts @@ -35,16 +35,16 @@ export class BreakStatement extends Statement { super(pointer) console.warn("Warning: stub node BreakStatement") } - static createBreakStatement(): BreakStatement | undefined { + static createBreakStatement(): BreakStatement { return new BreakStatement(global.generatedEs2panda._CreateBreakStatement(global.context)) } - static updateBreakStatement(original?: BreakStatement): BreakStatement | undefined { + static updateBreakStatement(original?: BreakStatement): BreakStatement { return new BreakStatement(global.generatedEs2panda._UpdateBreakStatement(global.context, passNode(original))) } - static create1BreakStatement(ident?: Identifier): BreakStatement | undefined { + static create1BreakStatement(ident?: Identifier): BreakStatement { return new BreakStatement(global.generatedEs2panda._CreateBreakStatement1(global.context, passNode(ident))) } - static update1BreakStatement(original?: BreakStatement, ident?: Identifier): BreakStatement | undefined { + static update1BreakStatement(original?: BreakStatement, ident?: Identifier): BreakStatement { return new BreakStatement(global.generatedEs2panda._UpdateBreakStatement1(global.context, passNode(original), passNode(ident))) } get identConst(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts index b3377ae77c..b867394985 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts @@ -37,13 +37,13 @@ export class CallExpression extends MaybeOptionalExpression { super(pointer) console.warn("Warning: stub node CallExpression") } - static createCallExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, trailingComma: boolean): CallExpression | undefined { + static createCallExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, trailingComma: boolean): CallExpression { return new CallExpression(global.generatedEs2panda._CreateCallExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, trailingComma)) } - static create1CallExpression(other?: CallExpression): CallExpression | undefined { + static create1CallExpression(other?: CallExpression): CallExpression { return new CallExpression(global.generatedEs2panda._CreateCallExpression1(global.context, passNode(other))) } - static update1CallExpression(original?: CallExpression, other?: CallExpression): CallExpression | undefined { + static update1CallExpression(original?: CallExpression, other?: CallExpression): CallExpression { return new CallExpression(global.generatedEs2panda._UpdateCallExpression1(global.context, passNode(original), passNode(other))) } get calleeConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts index c7a0463557..6e214900d3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts @@ -36,10 +36,10 @@ export class CatchClause extends TypedStatement { super(pointer) console.warn("Warning: stub node CatchClause") } - static createCatchClause(param?: Expression, body?: BlockStatement): CatchClause | undefined { + static createCatchClause(param?: Expression, body?: BlockStatement): CatchClause { return new CatchClause(global.generatedEs2panda._CreateCatchClause(global.context, passNode(param), passNode(body))) } - static updateCatchClause(original?: CatchClause, param?: Expression, body?: BlockStatement): CatchClause | undefined { + static updateCatchClause(original?: CatchClause, param?: Expression, body?: BlockStatement): CatchClause { return new CatchClause(global.generatedEs2panda._UpdateCatchClause(global.context, passNode(original), passNode(param), passNode(body))) } get param(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts index 15acefb384..992c8db0ef 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts @@ -34,10 +34,10 @@ export class ChainExpression extends Expression { super(pointer) console.warn("Warning: stub node ChainExpression") } - static createChainExpression(expression?: Expression): ChainExpression | undefined { + static createChainExpression(expression?: Expression): ChainExpression { return new ChainExpression(global.generatedEs2panda._CreateChainExpression(global.context, passNode(expression))) } - static updateChainExpression(original?: ChainExpression, expression?: Expression): ChainExpression | undefined { + static updateChainExpression(original?: ChainExpression, expression?: Expression): ChainExpression { return new ChainExpression(global.generatedEs2panda._UpdateChainExpression(global.context, passNode(original), passNode(expression))) } get getExpressionConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts index 3274378629..cc0c0d2b78 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts @@ -34,10 +34,10 @@ export class CharLiteral extends Literal { super(pointer) console.warn("Warning: stub node CharLiteral") } - static createCharLiteral(): CharLiteral | undefined { + static createCharLiteral(): CharLiteral { return new CharLiteral(global.generatedEs2panda._CreateCharLiteral(global.context)) } - static updateCharLiteral(original?: CharLiteral): CharLiteral | undefined { + static updateCharLiteral(original?: CharLiteral): CharLiteral { return new CharLiteral(global.generatedEs2panda._UpdateCharLiteral(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts index 1e8247d898..ba2f553011 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts @@ -36,10 +36,10 @@ export class ClassDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ClassDeclaration") } - static createClassDeclaration(def?: ClassDefinition): ClassDeclaration | undefined { + static createClassDeclaration(def?: ClassDefinition): ClassDeclaration { return new ClassDeclaration(global.generatedEs2panda._CreateClassDeclaration(global.context, passNode(def))) } - static updateClassDeclaration(original?: ClassDeclaration, def?: ClassDefinition): ClassDeclaration | undefined { + static updateClassDeclaration(original?: ClassDeclaration, def?: ClassDefinition): ClassDeclaration { return new ClassDeclaration(global.generatedEs2panda._UpdateClassDeclaration(global.context, passNode(original), passNode(def))) } get definition(): ClassDefinition | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts index a98aac0323..7a55b8e168 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts @@ -45,22 +45,22 @@ export class ClassDefinition extends TypedAstNode { super(pointer) console.warn("Warning: stub node ClassDefinition") } - static createClassDefinition(ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static createClassDefinition(ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._CreateClassDefinition(global.context, passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), implementsLen, passNode(ctor), passNode(superClass), passNodeArray(body), bodyLen, modifiers, flags)) } - static updateClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static updateClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition(global.context, passNode(original), passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), implementsLen, passNode(ctor), passNode(superClass), passNodeArray(body), bodyLen, modifiers, flags)) } - static create1ClassDefinition(ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static create1ClassDefinition(ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._CreateClassDefinition1(global.context, passNode(ident), passNodeArray(body), bodyLen, modifiers, flags)) } - static update1ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static update1ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition1(global.context, passNode(original), passNode(ident), passNodeArray(body), bodyLen, modifiers, flags)) } - static create2ClassDefinition(ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static create2ClassDefinition(ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._CreateClassDefinition2(global.context, passNode(ident), modifiers, flags)) } - static update2ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static update2ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition2(global.context, passNode(original), passNode(ident), modifiers, flags)) } get identConst(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts index 2129f87330..503561f905 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts @@ -35,10 +35,10 @@ export class ClassExpression extends Expression { super(pointer) console.warn("Warning: stub node ClassExpression") } - static createClassExpression(def?: ClassDefinition): ClassExpression | undefined { + static createClassExpression(def?: ClassDefinition): ClassExpression { return new ClassExpression(global.generatedEs2panda._CreateClassExpression(global.context, passNode(def))) } - static updateClassExpression(original?: ClassExpression, def?: ClassDefinition): ClassExpression | undefined { + static updateClassExpression(original?: ClassExpression, def?: ClassDefinition): ClassExpression { return new ClassExpression(global.generatedEs2panda._UpdateClassExpression(global.context, passNode(original), passNode(def))) } get definitionConst(): ClassDefinition | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts index 14bda3d26c..fb7de87a5b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts @@ -38,10 +38,10 @@ export class ClassProperty extends ClassElement { super(pointer) console.warn("Warning: stub node ClassProperty") } - static createClassProperty(key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty | undefined { + static createClassProperty(key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty { return new ClassProperty(global.generatedEs2panda._CreateClassProperty(global.context, passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed)) } - static updateClassProperty(original: ClassProperty | undefined, key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty | undefined { + static updateClassProperty(original: ClassProperty | undefined, key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty { return new ClassProperty(global.generatedEs2panda._UpdateClassProperty(global.context, passNode(original), passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed)) } get typeAnnotationConst(): TypeNode | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts index eac95b0c64..4772fea2b7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts @@ -35,10 +35,10 @@ export class ClassStaticBlock extends ClassElement { super(pointer) console.warn("Warning: stub node ClassStaticBlock") } - static createClassStaticBlock(value?: Expression): ClassStaticBlock | undefined { + static createClassStaticBlock(value?: Expression): ClassStaticBlock { return new ClassStaticBlock(global.generatedEs2panda._CreateClassStaticBlock(global.context, passNode(value))) } - static updateClassStaticBlock(original?: ClassStaticBlock, value?: Expression): ClassStaticBlock | undefined { + static updateClassStaticBlock(original?: ClassStaticBlock, value?: Expression): ClassStaticBlock { return new ClassStaticBlock(global.generatedEs2panda._UpdateClassStaticBlock(global.context, passNode(original), passNode(value))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts index 0d69eda4b7..b9e7fba20c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts @@ -34,10 +34,10 @@ export class ConditionalExpression extends Expression { super(pointer) console.warn("Warning: stub node ConditionalExpression") } - static createConditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression | undefined { + static createConditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression { return new ConditionalExpression(global.generatedEs2panda._CreateConditionalExpression(global.context, passNode(test), passNode(consequent), passNode(alternate))) } - static updateConditionalExpression(original?: ConditionalExpression, test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression | undefined { + static updateConditionalExpression(original?: ConditionalExpression, test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression { return new ConditionalExpression(global.generatedEs2panda._UpdateConditionalExpression(global.context, passNode(original), passNode(test), passNode(consequent), passNode(alternate))) } get testConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts index 5d0b3190cd..52c66fd961 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts @@ -35,16 +35,16 @@ export class ContinueStatement extends Statement { super(pointer) console.warn("Warning: stub node ContinueStatement") } - static createContinueStatement(): ContinueStatement | undefined { + static createContinueStatement(): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._CreateContinueStatement(global.context)) } - static updateContinueStatement(original?: ContinueStatement): ContinueStatement | undefined { + static updateContinueStatement(original?: ContinueStatement): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement(global.context, passNode(original))) } - static create1ContinueStatement(ident?: Identifier): ContinueStatement | undefined { + static create1ContinueStatement(ident?: Identifier): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._CreateContinueStatement1(global.context, passNode(ident))) } - static update1ContinueStatement(original?: ContinueStatement, ident?: Identifier): ContinueStatement | undefined { + static update1ContinueStatement(original?: ContinueStatement, ident?: Identifier): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement1(global.context, passNode(original), passNode(ident))) } get identConst(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts index 85db8fab69..a22d4fe298 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts @@ -34,10 +34,10 @@ export class DebuggerStatement extends Statement { super(pointer) console.warn("Warning: stub node DebuggerStatement") } - static createDebuggerStatement(): DebuggerStatement | undefined { + static createDebuggerStatement(): DebuggerStatement { return new DebuggerStatement(global.generatedEs2panda._CreateDebuggerStatement(global.context)) } - static updateDebuggerStatement(original?: DebuggerStatement): DebuggerStatement | undefined { + static updateDebuggerStatement(original?: DebuggerStatement): DebuggerStatement { return new DebuggerStatement(global.generatedEs2panda._UpdateDebuggerStatement(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts index e5e93c549e..1bef25a96d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts @@ -35,10 +35,10 @@ export class Decorator extends Statement { super(pointer) console.warn("Warning: stub node Decorator") } - static createDecorator(expr?: Expression): Decorator | undefined { + static createDecorator(expr?: Expression): Decorator { return new Decorator(global.generatedEs2panda._CreateDecorator(global.context, passNode(expr))) } - static updateDecorator(original?: Decorator, expr?: Expression): Decorator | undefined { + static updateDecorator(original?: Decorator, expr?: Expression): Decorator { return new Decorator(global.generatedEs2panda._UpdateDecorator(global.context, passNode(original), passNode(expr))) } get exprConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts index 6b76722e00..8892919d0d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts @@ -36,10 +36,10 @@ export class DirectEvalExpression extends CallExpression { super(pointer) console.warn("Warning: stub node DirectEvalExpression") } - static createDirectEvalExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression | undefined { + static createDirectEvalExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression { return new DirectEvalExpression(global.generatedEs2panda._CreateDirectEvalExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, parserStatus)) } - static updateDirectEvalExpression(original: DirectEvalExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression | undefined { + static updateDirectEvalExpression(original: DirectEvalExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression { return new DirectEvalExpression(global.generatedEs2panda._UpdateDirectEvalExpression(global.context, passNode(original), passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, parserStatus)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts index 4ee1b4f876..2090b961fe 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts @@ -35,10 +35,10 @@ export class ETSClassLiteral extends Expression { super(pointer) console.warn("Warning: stub node ETSClassLiteral") } - static createETSClassLiteral(expr?: TypeNode): ETSClassLiteral | undefined { + static createETSClassLiteral(expr?: TypeNode): ETSClassLiteral { return new ETSClassLiteral(global.generatedEs2panda._CreateETSClassLiteral(global.context, passNode(expr))) } - static updateETSClassLiteral(original?: ETSClassLiteral, expr?: TypeNode): ETSClassLiteral | undefined { + static updateETSClassLiteral(original?: ETSClassLiteral, expr?: TypeNode): ETSClassLiteral { return new ETSClassLiteral(global.generatedEs2panda._UpdateETSClassLiteral(global.context, passNode(original), passNode(expr))) } get exprConst(): TypeNode | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts index e81f14a28c..24c8748f7b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts @@ -35,10 +35,10 @@ export class ETSLaunchExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSLaunchExpression") } - static createETSLaunchExpression(expr?: CallExpression): ETSLaunchExpression | undefined { + static createETSLaunchExpression(expr?: CallExpression): ETSLaunchExpression { return new ETSLaunchExpression(global.generatedEs2panda._CreateETSLaunchExpression(global.context, passNode(expr))) } - static updateETSLaunchExpression(original?: ETSLaunchExpression, expr?: CallExpression): ETSLaunchExpression | undefined { + static updateETSLaunchExpression(original?: ETSLaunchExpression, expr?: CallExpression): ETSLaunchExpression { return new ETSLaunchExpression(global.generatedEs2panda._UpdateETSLaunchExpression(global.context, passNode(original), passNode(expr))) } get callConst(): CallExpression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts index 53ff15d7ee..bc727dd58c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts @@ -35,10 +35,10 @@ export class ETSNewArrayInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewArrayInstanceExpression") } - static createETSNewArrayInstanceExpression(typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression | undefined { + static createETSNewArrayInstanceExpression(typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression { return new ETSNewArrayInstanceExpression(global.generatedEs2panda._CreateETSNewArrayInstanceExpression(global.context, passNode(typeReference), passNode(dimension))) } - static updateETSNewArrayInstanceExpression(original?: ETSNewArrayInstanceExpression, typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression | undefined { + static updateETSNewArrayInstanceExpression(original?: ETSNewArrayInstanceExpression, typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression { return new ETSNewArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNode(dimension))) } get typeReference(): TypeNode | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts index 67343bdc65..65dfaf041a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts @@ -34,16 +34,16 @@ export class ETSNewClassInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewClassInstanceExpression") } - static createETSNewClassInstanceExpression(typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression | undefined { + static createETSNewClassInstanceExpression(typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression(global.context, passNode(typeReference), passNodeArray(_arguments), argumentsLen)) } - static updateETSNewClassInstanceExpression(original: ETSNewClassInstanceExpression | undefined, typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression | undefined { + static updateETSNewClassInstanceExpression(original: ETSNewClassInstanceExpression | undefined, typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression(global.context, passNode(original), passNode(typeReference), passNodeArray(_arguments), argumentsLen)) } - static create1ETSNewClassInstanceExpression(other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression | undefined { + static create1ETSNewClassInstanceExpression(other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression1(global.context, passNode(other))) } - static update1ETSNewClassInstanceExpression(original?: ETSNewClassInstanceExpression, other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression | undefined { + static update1ETSNewClassInstanceExpression(original?: ETSNewClassInstanceExpression, other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression1(global.context, passNode(original), passNode(other))) } get getTypeRefConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts index 23592d0874..fa74403f13 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts @@ -35,16 +35,16 @@ export class ETSNewMultiDimArrayInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewMultiDimArrayInstanceExpression") } - static createETSNewMultiDimArrayInstanceExpression(typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression | undefined { + static createETSNewMultiDimArrayInstanceExpression(typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression(global.context, passNode(typeReference), passNodeArray(dimensions), dimensionsLen)) } - static updateETSNewMultiDimArrayInstanceExpression(original: ETSNewMultiDimArrayInstanceExpression | undefined, typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression | undefined { + static updateETSNewMultiDimArrayInstanceExpression(original: ETSNewMultiDimArrayInstanceExpression | undefined, typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNodeArray(dimensions), dimensionsLen)) } - static create1ETSNewMultiDimArrayInstanceExpression(other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression | undefined { + static create1ETSNewMultiDimArrayInstanceExpression(other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression1(global.context, passNode(other))) } - static update1ETSNewMultiDimArrayInstanceExpression(original?: ETSNewMultiDimArrayInstanceExpression, other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression | undefined { + static update1ETSNewMultiDimArrayInstanceExpression(original?: ETSNewMultiDimArrayInstanceExpression, other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression1(global.context, passNode(original), passNode(other))) } get typeReference(): TypeNode | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts index d3f4b52b15..0f551fd829 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts @@ -34,10 +34,10 @@ export class ETSNullType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSNullType") } - static createETSNullType(): ETSNullType | undefined { + static createETSNullType(): ETSNullType { return new ETSNullType(global.generatedEs2panda._CreateETSNullTypeIr(global.context)) } - static updateETSNullType(original?: ETSNullType): ETSNullType | undefined { + static updateETSNullType(original?: ETSNullType): ETSNullType { return new ETSNullType(global.generatedEs2panda._UpdateETSNullTypeIr(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts index fd00e6d3be..f651e034c0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts @@ -35,10 +35,10 @@ export class ETSPackageDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ETSPackageDeclaration") } - static createETSPackageDeclaration(name?: Expression): ETSPackageDeclaration | undefined { + static createETSPackageDeclaration(name?: Expression): ETSPackageDeclaration { return new ETSPackageDeclaration(global.generatedEs2panda._CreateETSPackageDeclaration(global.context, passNode(name))) } - static updateETSPackageDeclaration(original?: ETSPackageDeclaration, name?: Expression): ETSPackageDeclaration | undefined { + static updateETSPackageDeclaration(original?: ETSPackageDeclaration, name?: Expression): ETSPackageDeclaration { return new ETSPackageDeclaration(global.generatedEs2panda._UpdateETSPackageDeclaration(global.context, passNode(original), passNode(name))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts index a9f95c8af2..5820b193d4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts @@ -36,10 +36,10 @@ export class ETSParameterExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSParameterExpression") } - static createETSParameterExpression(identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression | undefined { + static createETSParameterExpression(identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression { return new ETSParameterExpression(global.generatedEs2panda._CreateETSParameterExpression(global.context, passNode(identOrSpread), passNode(initializer))) } - static updateETSParameterExpression(original?: ETSParameterExpression, identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression | undefined { + static updateETSParameterExpression(original?: ETSParameterExpression, identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression { return new ETSParameterExpression(global.generatedEs2panda._UpdateETSParameterExpression(global.context, passNode(original), passNode(identOrSpread), passNode(initializer))) } get isDefaultConst(): boolean { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts index 8dffc9d92e..49428e2abe 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts @@ -35,10 +35,10 @@ export class ETSPrimitiveType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSPrimitiveType") } - static createETSPrimitiveType(type: Es2pandaPrimitiveType): ETSPrimitiveType | undefined { + static createETSPrimitiveType(type: Es2pandaPrimitiveType): ETSPrimitiveType { return new ETSPrimitiveType(global.generatedEs2panda._CreateETSPrimitiveType(global.context, type)) } - static updateETSPrimitiveType(original: ETSPrimitiveType | undefined, type: Es2pandaPrimitiveType): ETSPrimitiveType | undefined { + static updateETSPrimitiveType(original: ETSPrimitiveType | undefined, type: Es2pandaPrimitiveType): ETSPrimitiveType { return new ETSPrimitiveType(global.generatedEs2panda._UpdateETSPrimitiveType(global.context, passNode(original), type)) } get getPrimitiveTypeConst(): Es2pandaPrimitiveType { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts index 3e7b67e859..0d5dabfee8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts @@ -35,10 +35,10 @@ export class ETSStructDeclaration extends ClassDeclaration { super(pointer) console.warn("Warning: stub node ETSStructDeclaration") } - static createETSStructDeclaration(def?: ClassDefinition): ETSStructDeclaration | undefined { + static createETSStructDeclaration(def?: ClassDefinition): ETSStructDeclaration { return new ETSStructDeclaration(global.generatedEs2panda._CreateETSStructDeclaration(global.context, passNode(def))) } - static updateETSStructDeclaration(original?: ETSStructDeclaration, def?: ClassDefinition): ETSStructDeclaration | undefined { + static updateETSStructDeclaration(original?: ETSStructDeclaration, def?: ClassDefinition): ETSStructDeclaration { return new ETSStructDeclaration(global.generatedEs2panda._UpdateETSStructDeclaration(global.context, passNode(original), passNode(def))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts index b0b5ff49ed..1b8e467415 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts @@ -34,22 +34,22 @@ export class ETSTuple extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTuple") } - static createETSTuple(): ETSTuple | undefined { + static createETSTuple(): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple(global.context)) } - static updateETSTuple(original?: ETSTuple): ETSTuple | undefined { + static updateETSTuple(original?: ETSTuple): ETSTuple { return new ETSTuple(global.generatedEs2panda._UpdateETSTuple(global.context, passNode(original))) } - static create1ETSTuple(size: number): ETSTuple | undefined { + static create1ETSTuple(size: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple1(global.context, size)) } - static update1ETSTuple(original: ETSTuple | undefined, size: number): ETSTuple | undefined { + static update1ETSTuple(original: ETSTuple | undefined, size: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._UpdateETSTuple1(global.context, passNode(original), size)) } - static create2ETSTuple(typeList: readonly TypeNode[], typeListLen: number): ETSTuple | undefined { + static create2ETSTuple(typeList: readonly TypeNode[], typeListLen: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple2(global.context, passNodeArray(typeList), typeListLen)) } - static update2ETSTuple(original: ETSTuple | undefined, typeList: readonly TypeNode[], typeListLen: number): ETSTuple | undefined { + static update2ETSTuple(original: ETSTuple | undefined, typeList: readonly TypeNode[], typeListLen: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._UpdateETSTuple2(global.context, passNode(original), passNodeArray(typeList), typeListLen)) } get getTupleSizeConst(): number { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts index 8b16766d36..850ddc4eb5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts @@ -35,10 +35,10 @@ export class ETSTypeReference extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTypeReference") } - static createETSTypeReference(part?: ETSTypeReferencePart): ETSTypeReference | undefined { + static createETSTypeReference(part?: ETSTypeReferencePart): ETSTypeReference { return new ETSTypeReference(global.generatedEs2panda._CreateETSTypeReference(global.context, passNode(part))) } - static updateETSTypeReference(original?: ETSTypeReference, part?: ETSTypeReferencePart): ETSTypeReference | undefined { + static updateETSTypeReference(original?: ETSTypeReference, part?: ETSTypeReferencePart): ETSTypeReference { return new ETSTypeReference(global.generatedEs2panda._UpdateETSTypeReference(global.context, passNode(original), passNode(part))) } get part(): ETSTypeReferencePart | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts index e2954eabdb..6e6f029b61 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts @@ -36,16 +36,16 @@ export class ETSTypeReferencePart extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTypeReferencePart") } - static createETSTypeReferencePart(name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart | undefined { + static createETSTypeReferencePart(name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._CreateETSTypeReferencePart(global.context, passNode(name), passNode(typeParams), passNode(prev))) } - static updateETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart | undefined { + static updateETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._UpdateETSTypeReferencePart(global.context, passNode(original), passNode(name), passNode(typeParams), passNode(prev))) } - static create1ETSTypeReferencePart(name?: Expression): ETSTypeReferencePart | undefined { + static create1ETSTypeReferencePart(name?: Expression): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._CreateETSTypeReferencePart1(global.context, passNode(name))) } - static update1ETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression): ETSTypeReferencePart | undefined { + static update1ETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._UpdateETSTypeReferencePart1(global.context, passNode(original), passNode(name))) } get previous(): ETSTypeReferencePart | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts index f7a6c1eb8e..967d6b1756 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts @@ -34,10 +34,10 @@ export class ETSUndefinedType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSUndefinedType") } - static createETSUndefinedType(): ETSUndefinedType | undefined { + static createETSUndefinedType(): ETSUndefinedType { return new ETSUndefinedType(global.generatedEs2panda._CreateETSUndefinedTypeIr(global.context)) } - static updateETSUndefinedType(original?: ETSUndefinedType): ETSUndefinedType | undefined { + static updateETSUndefinedType(original?: ETSUndefinedType): ETSUndefinedType { return new ETSUndefinedType(global.generatedEs2panda._UpdateETSUndefinedTypeIr(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts index 3a2b63fa82..4c84dd484a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts @@ -34,10 +34,10 @@ export class ETSUnionType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSUnionType") } - static createETSUnionType(types: readonly TypeNode[], typesLen: number): ETSUnionType | undefined { + static createETSUnionType(types: readonly TypeNode[], typesLen: number): ETSUnionType { return new ETSUnionType(global.generatedEs2panda._CreateETSUnionTypeIr(global.context, passNodeArray(types), typesLen)) } - static updateETSUnionType(original: ETSUnionType | undefined, types: readonly TypeNode[], typesLen: number): ETSUnionType | undefined { + static updateETSUnionType(original: ETSUnionType | undefined, types: readonly TypeNode[], typesLen: number): ETSUnionType { return new ETSUnionType(global.generatedEs2panda._UpdateETSUnionTypeIr(global.context, passNode(original), passNodeArray(types), typesLen)) } get typesConst(): readonly TypeNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts index a3945b2af0..c1ad2314da 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts @@ -36,10 +36,10 @@ export class ETSWildcardType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSWildcardType") } - static createETSWildcardType(typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType | undefined { + static createETSWildcardType(typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType { return new ETSWildcardType(global.generatedEs2panda._CreateETSWildcardType(global.context, passNode(typeReference), flags)) } - static updateETSWildcardType(original: ETSWildcardType | undefined, typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType | undefined { + static updateETSWildcardType(original: ETSWildcardType | undefined, typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType { return new ETSWildcardType(global.generatedEs2panda._UpdateETSWildcardType(global.context, passNode(original), passNode(typeReference), flags)) } get typeReference(): ETSTypeReference | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts index baadf4ee50..d3dc1d0312 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts @@ -34,10 +34,10 @@ export class EmptyStatement extends Statement { super(pointer) console.warn("Warning: stub node EmptyStatement") } - static createEmptyStatement(): EmptyStatement | undefined { + static createEmptyStatement(): EmptyStatement { return new EmptyStatement(global.generatedEs2panda._CreateEmptyStatement(global.context)) } - static updateEmptyStatement(original?: EmptyStatement): EmptyStatement | undefined { + static updateEmptyStatement(original?: EmptyStatement): EmptyStatement { return new EmptyStatement(global.generatedEs2panda._UpdateEmptyStatement(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts index 155b497686..43a236881a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts @@ -36,10 +36,10 @@ export class ExportAllDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportAllDeclaration") } - static createExportAllDeclaration(source?: StringLiteral, exported?: Identifier): ExportAllDeclaration | undefined { + static createExportAllDeclaration(source?: StringLiteral, exported?: Identifier): ExportAllDeclaration { return new ExportAllDeclaration(global.generatedEs2panda._CreateExportAllDeclaration(global.context, passNode(source), passNode(exported))) } - static updateExportAllDeclaration(original?: ExportAllDeclaration, source?: StringLiteral, exported?: Identifier): ExportAllDeclaration | undefined { + static updateExportAllDeclaration(original?: ExportAllDeclaration, source?: StringLiteral, exported?: Identifier): ExportAllDeclaration { return new ExportAllDeclaration(global.generatedEs2panda._UpdateExportAllDeclaration(global.context, passNode(original), passNode(source), passNode(exported))) } get sourceConst(): StringLiteral | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts index 6d9c7334fd..8f0f435099 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts @@ -34,10 +34,10 @@ export class ExportDefaultDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportDefaultDeclaration") } - static createExportDefaultDeclaration(decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration | undefined { + static createExportDefaultDeclaration(decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration { return new ExportDefaultDeclaration(global.generatedEs2panda._CreateExportDefaultDeclaration(global.context, passNode(decl), exportEquals)) } - static updateExportDefaultDeclaration(original: ExportDefaultDeclaration | undefined, decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration | undefined { + static updateExportDefaultDeclaration(original: ExportDefaultDeclaration | undefined, decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration { return new ExportDefaultDeclaration(global.generatedEs2panda._UpdateExportDefaultDeclaration(global.context, passNode(original), passNode(decl), exportEquals)) } get decl(): AstNode | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts index 5b7fb1463f..d7f7a23dbf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts @@ -36,22 +36,22 @@ export class ExportNamedDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportNamedDeclaration") } - static createExportNamedDeclaration(source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static createExportNamedDeclaration(source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen)) } - static updateExportNamedDeclaration(original: ExportNamedDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static updateExportNamedDeclaration(original: ExportNamedDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._UpdateExportNamedDeclaration(global.context, passNode(original), passNode(source), passNodeArray(specifiers), specifiersLen)) } - static create1ExportNamedDeclaration(decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static create1ExportNamedDeclaration(decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration1(global.context, passNode(decl), passNodeArray(specifiers), specifiersLen)) } - static update1ExportNamedDeclaration(original: ExportNamedDeclaration | undefined, decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static update1ExportNamedDeclaration(original: ExportNamedDeclaration | undefined, decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._UpdateExportNamedDeclaration1(global.context, passNode(original), passNode(decl), passNodeArray(specifiers), specifiersLen)) } - static create2ExportNamedDeclaration(decl?: AstNode): ExportNamedDeclaration | undefined { + static create2ExportNamedDeclaration(decl?: AstNode): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration2(global.context, passNode(decl))) } - static update2ExportNamedDeclaration(original?: ExportNamedDeclaration, decl?: AstNode): ExportNamedDeclaration | undefined { + static update2ExportNamedDeclaration(original?: ExportNamedDeclaration, decl?: AstNode): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._UpdateExportNamedDeclaration2(global.context, passNode(original), passNode(decl))) } get declConst(): AstNode | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts index 1f11d0bfec..e5a2f111d7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts @@ -35,10 +35,10 @@ export class ExportSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ExportSpecifier") } - static createExportSpecifier(local?: Identifier, exported?: Identifier): ExportSpecifier | undefined { + static createExportSpecifier(local?: Identifier, exported?: Identifier): ExportSpecifier { return new ExportSpecifier(global.generatedEs2panda._CreateExportSpecifier(global.context, passNode(local), passNode(exported))) } - static updateExportSpecifier(original?: ExportSpecifier, local?: Identifier, exported?: Identifier): ExportSpecifier | undefined { + static updateExportSpecifier(original?: ExportSpecifier, local?: Identifier, exported?: Identifier): ExportSpecifier { return new ExportSpecifier(global.generatedEs2panda._UpdateExportSpecifier(global.context, passNode(original), passNode(local), passNode(exported))) } get localConst(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts index f91dc0b6da..e5df62dc18 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts @@ -35,10 +35,10 @@ export class ExpressionStatement extends Statement { super(pointer) console.warn("Warning: stub node ExpressionStatement") } - static createExpressionStatement(expr?: Expression): ExpressionStatement | undefined { + static createExpressionStatement(expr?: Expression): ExpressionStatement { return new ExpressionStatement(global.generatedEs2panda._CreateExpressionStatement(global.context, passNode(expr))) } - static updateExpressionStatement(original?: ExpressionStatement, expr?: Expression): ExpressionStatement | undefined { + static updateExpressionStatement(original?: ExpressionStatement, expr?: Expression): ExpressionStatement { return new ExpressionStatement(global.generatedEs2panda._UpdateExpressionStatement(global.context, passNode(original), passNode(expr))) } get getExpressionConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts index a7ed676090..a1e8986a60 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts @@ -36,16 +36,16 @@ export class FunctionDeclaration extends Statement { super(pointer) console.warn("Warning: stub node FunctionDeclaration") } - static createFunctionDeclaration(func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration | undefined { + static createFunctionDeclaration(func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._CreateFunctionDeclaration(global.context, passNode(func), passNodeArray(annotations), annotationsLen, isAnonymous)) } - static updateFunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration | undefined { + static updateFunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._UpdateFunctionDeclaration(global.context, passNode(original), passNode(func), passNodeArray(annotations), annotationsLen, isAnonymous)) } - static create1FunctionDeclaration(func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration | undefined { + static create1FunctionDeclaration(func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._CreateFunctionDeclaration1(global.context, passNode(func), isAnonymous)) } - static update1FunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration | undefined { + static update1FunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._UpdateFunctionDeclaration1(global.context, passNode(original), passNode(func), isAnonymous)) } get function(): ScriptFunction | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts index 86b9888397..44ad0227aa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts @@ -36,16 +36,16 @@ export class FunctionExpression extends Expression { super(pointer) console.warn("Warning: stub node FunctionExpression") } - static createFunctionExpression(func?: ScriptFunction): FunctionExpression | undefined { + static createFunctionExpression(func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression(global.context, passNode(func))) } - static updateFunctionExpression(original?: FunctionExpression, func?: ScriptFunction): FunctionExpression | undefined { + static updateFunctionExpression(original?: FunctionExpression, func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._UpdateFunctionExpression(global.context, passNode(original), passNode(func))) } - static create1FunctionExpression(namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression | undefined { + static create1FunctionExpression(namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression1(global.context, passNode(namedExpr), passNode(func))) } - static update1FunctionExpression(original?: FunctionExpression, namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression | undefined { + static update1FunctionExpression(original?: FunctionExpression, namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._UpdateFunctionExpression1(global.context, passNode(original), passNode(namedExpr), passNode(func))) } get functionConst(): ScriptFunction | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts index 5a7a409c0a..f1962692db 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts @@ -36,22 +36,22 @@ export class Identifier extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node Identifier") } - static createIdentifier(): Identifier | undefined { + static createIdentifier(): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier(global.context)) } - static updateIdentifier(original?: Identifier): Identifier | undefined { + static updateIdentifier(original?: Identifier): Identifier { return new Identifier(global.generatedEs2panda._UpdateIdentifier(global.context, passNode(original))) } - static create1Identifier(name: string): Identifier | undefined { + static create1Identifier(name: string): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier1(global.context, name)) } - static update1Identifier(original: Identifier | undefined, name: string): Identifier | undefined { + static update1Identifier(original: Identifier | undefined, name: string): Identifier { return new Identifier(global.generatedEs2panda._UpdateIdentifier1(global.context, passNode(original), name)) } - static create2Identifier(name: string, typeAnnotation?: TypeNode): Identifier | undefined { + static create2Identifier(name: string, typeAnnotation?: TypeNode): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier2(global.context, name, passNode(typeAnnotation))) } - static update2Identifier(original: Identifier | undefined, name: string, typeAnnotation?: TypeNode): Identifier | undefined { + static update2Identifier(original: Identifier | undefined, name: string, typeAnnotation?: TypeNode): Identifier { return new Identifier(global.generatedEs2panda._UpdateIdentifier2(global.context, passNode(original), name, passNode(typeAnnotation))) } get nameConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts index d655c481d3..8426d022df 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts @@ -36,10 +36,10 @@ export class ImportDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ImportDeclaration") } - static createImportDeclaration(source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration | undefined { + static createImportDeclaration(source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration { return new ImportDeclaration(global.generatedEs2panda._CreateImportDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen, importKind)) } - static updateImportDeclaration(original: ImportDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration | undefined { + static updateImportDeclaration(original: ImportDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration { return new ImportDeclaration(global.generatedEs2panda._UpdateImportDeclaration(global.context, passNode(original), passNode(source), passNodeArray(specifiers), specifiersLen, importKind)) } get sourceConst(): StringLiteral | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts index 336b81eef3..d0e1af4813 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts @@ -35,10 +35,10 @@ export class ImportDefaultSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportDefaultSpecifier") } - static createImportDefaultSpecifier(local?: Identifier): ImportDefaultSpecifier | undefined { + static createImportDefaultSpecifier(local?: Identifier): ImportDefaultSpecifier { return new ImportDefaultSpecifier(global.generatedEs2panda._CreateImportDefaultSpecifier(global.context, passNode(local))) } - static updateImportDefaultSpecifier(original?: ImportDefaultSpecifier, local?: Identifier): ImportDefaultSpecifier | undefined { + static updateImportDefaultSpecifier(original?: ImportDefaultSpecifier, local?: Identifier): ImportDefaultSpecifier { return new ImportDefaultSpecifier(global.generatedEs2panda._UpdateImportDefaultSpecifier(global.context, passNode(original), passNode(local))) } get localConst(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts index b81ea4a4dc..2393327137 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts @@ -34,10 +34,10 @@ export class ImportExpression extends Expression { super(pointer) console.warn("Warning: stub node ImportExpression") } - static createImportExpression(source?: Expression): ImportExpression | undefined { + static createImportExpression(source?: Expression): ImportExpression { return new ImportExpression(global.generatedEs2panda._CreateImportExpression(global.context, passNode(source))) } - static updateImportExpression(original?: ImportExpression, source?: Expression): ImportExpression | undefined { + static updateImportExpression(original?: ImportExpression, source?: Expression): ImportExpression { return new ImportExpression(global.generatedEs2panda._UpdateImportExpression(global.context, passNode(original), passNode(source))) } get source(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts index 4e60b59b99..8f31b6bdde 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts @@ -35,10 +35,10 @@ export class ImportNamespaceSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportNamespaceSpecifier") } - static createImportNamespaceSpecifier(local?: Identifier): ImportNamespaceSpecifier | undefined { + static createImportNamespaceSpecifier(local?: Identifier): ImportNamespaceSpecifier { return new ImportNamespaceSpecifier(global.generatedEs2panda._CreateImportNamespaceSpecifier(global.context, passNode(local))) } - static updateImportNamespaceSpecifier(original?: ImportNamespaceSpecifier, local?: Identifier): ImportNamespaceSpecifier | undefined { + static updateImportNamespaceSpecifier(original?: ImportNamespaceSpecifier, local?: Identifier): ImportNamespaceSpecifier { return new ImportNamespaceSpecifier(global.generatedEs2panda._UpdateImportNamespaceSpecifier(global.context, passNode(original), passNode(local))) } get local(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts index 4a09942581..ed85cc9ff8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts @@ -35,10 +35,10 @@ export class ImportSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportSpecifier") } - static createImportSpecifier(imported?: Identifier, local?: Identifier): ImportSpecifier | undefined { + static createImportSpecifier(imported?: Identifier, local?: Identifier): ImportSpecifier { return new ImportSpecifier(global.generatedEs2panda._CreateImportSpecifier(global.context, passNode(imported), passNode(local))) } - static updateImportSpecifier(original?: ImportSpecifier, imported?: Identifier, local?: Identifier): ImportSpecifier | undefined { + static updateImportSpecifier(original?: ImportSpecifier, imported?: Identifier, local?: Identifier): ImportSpecifier { return new ImportSpecifier(global.generatedEs2panda._UpdateImportSpecifier(global.context, passNode(original), passNode(imported), passNode(local))) } get imported(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts index 6528a6e1a1..f37fa993b6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts @@ -36,10 +36,10 @@ export class MemberExpression extends MaybeOptionalExpression { super(pointer) console.warn("Warning: stub node MemberExpression") } - static createMemberExpression(object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression | undefined { + static createMemberExpression(object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression { return new MemberExpression(global.generatedEs2panda._CreateMemberExpression(global.context, passNode(object_arg), passNode(property), kind, computed, optional_arg)) } - static updateMemberExpression(original: MemberExpression | undefined, object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression | undefined { + static updateMemberExpression(original: MemberExpression | undefined, object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression { return new MemberExpression(global.generatedEs2panda._UpdateMemberExpression(global.context, passNode(original), passNode(object_arg), passNode(property), kind, computed, optional_arg)) } get object(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts index aba6fefdda..4bb2da92c2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts @@ -35,10 +35,10 @@ export class MetaProperty extends Expression { super(pointer) console.warn("Warning: stub node MetaProperty") } - static createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty | undefined { + static createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty { return new MetaProperty(global.generatedEs2panda._CreateMetaProperty(global.context, kind)) } - static updateMetaProperty(original: MetaProperty | undefined, kind: Es2pandaMetaPropertyKind): MetaProperty | undefined { + static updateMetaProperty(original: MetaProperty | undefined, kind: Es2pandaMetaPropertyKind): MetaProperty { return new MetaProperty(global.generatedEs2panda._UpdateMetaProperty(global.context, passNode(original), kind)) } get kindConst(): Es2pandaMetaPropertyKind { diff --git a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts index b4e457114b..060bfa53bb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts @@ -37,10 +37,10 @@ export class MethodDefinition extends ClassElement { super(pointer) console.warn("Warning: stub node MethodDefinition") } - static createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition | undefined { + static createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition { return new MethodDefinition(global.generatedEs2panda._CreateMethodDefinition(global.context, kind, passNode(key), passNode(value), modifiers, isComputed)) } - static updateMethodDefinition(original: MethodDefinition | undefined, kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition | undefined { + static updateMethodDefinition(original: MethodDefinition | undefined, kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition { return new MethodDefinition(global.generatedEs2panda._UpdateMethodDefinition(global.context, passNode(original), kind, passNode(key), passNode(value), modifiers, isComputed)) } get kindConst(): Es2pandaMethodDefinitionKind { diff --git a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts index 01a691a220..c940857762 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts @@ -36,10 +36,10 @@ export class NamedType extends TypeNode { super(pointer) console.warn("Warning: stub node NamedType") } - static createNamedType(name?: Identifier): NamedType | undefined { + static createNamedType(name?: Identifier): NamedType { return new NamedType(global.generatedEs2panda._CreateNamedType(global.context, passNode(name))) } - static updateNamedType(original?: NamedType, name?: Identifier): NamedType | undefined { + static updateNamedType(original?: NamedType, name?: Identifier): NamedType { return new NamedType(global.generatedEs2panda._UpdateNamedType(global.context, passNode(original), passNode(name))) } get nameConst(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts index 88ed0c1c00..a303f11b0b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts @@ -34,10 +34,10 @@ export class NewExpression extends Expression { super(pointer) console.warn("Warning: stub node NewExpression") } - static createNewExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression | undefined { + static createNewExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression { return new NewExpression(global.generatedEs2panda._CreateNewExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen)) } - static updateNewExpression(original: NewExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression | undefined { + static updateNewExpression(original: NewExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression { return new NewExpression(global.generatedEs2panda._UpdateNewExpression(global.context, passNode(original), passNode(callee), passNodeArray(_arguments), argumentsLen)) } get calleeConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts index 831fe83249..138dca3e5a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts @@ -34,10 +34,10 @@ export class NullLiteral extends Literal { super(pointer) console.warn("Warning: stub node NullLiteral") } - static createNullLiteral(): NullLiteral | undefined { + static createNullLiteral(): NullLiteral { return new NullLiteral(global.generatedEs2panda._CreateNullLiteral(global.context)) } - static updateNullLiteral(original?: NullLiteral): NullLiteral | undefined { + static updateNullLiteral(original?: NullLiteral): NullLiteral { return new NullLiteral(global.generatedEs2panda._UpdateNullLiteral(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts index 63a037be28..0b7bb2292e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts @@ -34,10 +34,10 @@ export class OmittedExpression extends Expression { super(pointer) console.warn("Warning: stub node OmittedExpression") } - static createOmittedExpression(): OmittedExpression | undefined { + static createOmittedExpression(): OmittedExpression { return new OmittedExpression(global.generatedEs2panda._CreateOmittedExpression(global.context)) } - static updateOmittedExpression(original?: OmittedExpression): OmittedExpression | undefined { + static updateOmittedExpression(original?: OmittedExpression): OmittedExpression { return new OmittedExpression(global.generatedEs2panda._UpdateOmittedExpression(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts index b24192a525..402149a3b0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts @@ -34,10 +34,10 @@ export class OpaqueTypeNode extends TypeNode { super(pointer) console.warn("Warning: stub node OpaqueTypeNode") } - static create1OpaqueTypeNode(): OpaqueTypeNode | undefined { + static create1OpaqueTypeNode(): OpaqueTypeNode { return new OpaqueTypeNode(global.generatedEs2panda._CreateOpaqueTypeNode1(global.context)) } - static update1OpaqueTypeNode(original?: OpaqueTypeNode): OpaqueTypeNode | undefined { + static update1OpaqueTypeNode(original?: OpaqueTypeNode): OpaqueTypeNode { return new OpaqueTypeNode(global.generatedEs2panda._UpdateOpaqueTypeNode1(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts index 0b67dd5358..0f0f3b40b5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts @@ -35,10 +35,10 @@ export class PrefixAssertionExpression extends Expression { super(pointer) console.warn("Warning: stub node PrefixAssertionExpression") } - static createPrefixAssertionExpression(expr?: Expression, type?: TypeNode): PrefixAssertionExpression | undefined { + static createPrefixAssertionExpression(expr?: Expression, type?: TypeNode): PrefixAssertionExpression { return new PrefixAssertionExpression(global.generatedEs2panda._CreatePrefixAssertionExpression(global.context, passNode(expr), passNode(type))) } - static updatePrefixAssertionExpression(original?: PrefixAssertionExpression, expr?: Expression, type?: TypeNode): PrefixAssertionExpression | undefined { + static updatePrefixAssertionExpression(original?: PrefixAssertionExpression, expr?: Expression, type?: TypeNode): PrefixAssertionExpression { return new PrefixAssertionExpression(global.generatedEs2panda._UpdatePrefixAssertionExpression(global.context, passNode(original), passNode(expr), passNode(type))) } get exprConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/Property.ts b/arkoala-arkts/libarkts/src/generated/peers/Property.ts index cfb988e2a1..79ad82d322 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Property.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Property.ts @@ -35,16 +35,16 @@ export class Property extends Expression { super(pointer) console.warn("Warning: stub node Property") } - static createProperty(key?: Expression, value?: Expression): Property | undefined { + static createProperty(key?: Expression, value?: Expression): Property { return new Property(global.generatedEs2panda._CreateProperty(global.context, passNode(key), passNode(value))) } - static updateProperty(original?: Property, key?: Expression, value?: Expression): Property | undefined { + static updateProperty(original?: Property, key?: Expression, value?: Expression): Property { return new Property(global.generatedEs2panda._UpdateProperty(global.context, passNode(original), passNode(key), passNode(value))) } - static create1Property(kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property | undefined { + static create1Property(kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property { return new Property(global.generatedEs2panda._CreateProperty1(global.context, kind, passNode(key), passNode(value), isMethod, isComputed)) } - static update1Property(original: Property | undefined, kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property | undefined { + static update1Property(original: Property | undefined, kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property { return new Property(global.generatedEs2panda._UpdateProperty1(global.context, passNode(original), kind, passNode(key), passNode(value), isMethod, isComputed)) } get key(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts index ec60b7314d..e5d7aca88d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts @@ -35,10 +35,10 @@ export class RegExpLiteral extends Literal { super(pointer) console.warn("Warning: stub node RegExpLiteral") } - static createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral | undefined { + static createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { return new RegExpLiteral(global.generatedEs2panda._CreateRegExpLiteral(global.context, pattern, flags, flagsStr)) } - static updateRegExpLiteral(original: RegExpLiteral | undefined, pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral | undefined { + static updateRegExpLiteral(original: RegExpLiteral | undefined, pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { return new RegExpLiteral(global.generatedEs2panda._UpdateRegExpLiteral(global.context, passNode(original), pattern, flags, flagsStr)) } get patternConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts index f544d98c07..066ed62b62 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts @@ -35,16 +35,16 @@ export class ReturnStatement extends Statement { super(pointer) console.warn("Warning: stub node ReturnStatement") } - static createReturnStatement(): ReturnStatement | undefined { + static createReturnStatement(): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._CreateReturnStatement(global.context)) } - static updateReturnStatement(original?: ReturnStatement): ReturnStatement | undefined { + static updateReturnStatement(original?: ReturnStatement): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._UpdateReturnStatement(global.context, passNode(original))) } - static create1ReturnStatement(argument?: Expression): ReturnStatement | undefined { + static create1ReturnStatement(argument?: Expression): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._CreateReturnStatement1(global.context, passNode(argument))) } - static update1ReturnStatement(original?: ReturnStatement, argument?: Expression): ReturnStatement | undefined { + static update1ReturnStatement(original?: ReturnStatement, argument?: Expression): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._UpdateReturnStatement1(global.context, passNode(original), passNode(argument))) } get argument(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts index f636a3609d..db6bbc5e51 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts @@ -34,10 +34,10 @@ export class SequenceExpression extends Expression { super(pointer) console.warn("Warning: stub node SequenceExpression") } - static createSequenceExpression(sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression | undefined { + static createSequenceExpression(sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression { return new SequenceExpression(global.generatedEs2panda._CreateSequenceExpression(global.context, passNodeArray(sequence_arg), sequenceLen)) } - static updateSequenceExpression(original: SequenceExpression | undefined, sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression | undefined { + static updateSequenceExpression(original: SequenceExpression | undefined, sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression { return new SequenceExpression(global.generatedEs2panda._UpdateSequenceExpression(global.context, passNode(original), passNodeArray(sequence_arg), sequenceLen)) } get sequenceConst(): readonly Expression[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts index e1fb6c6684..877d51956c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts @@ -34,13 +34,13 @@ export class StringLiteral extends Literal { super(pointer) console.warn("Warning: stub node StringLiteral") } - static updateStringLiteral(original?: StringLiteral): StringLiteral | undefined { + static updateStringLiteral(original?: StringLiteral): StringLiteral { return new StringLiteral(global.generatedEs2panda._UpdateStringLiteral(global.context, passNode(original))) } - static create1StringLiteral(str: string): StringLiteral | undefined { + static create1StringLiteral(str: string): StringLiteral { return new StringLiteral(global.generatedEs2panda._CreateStringLiteral1(global.context, str)) } - static update1StringLiteral(original: StringLiteral | undefined, str: string): StringLiteral | undefined { + static update1StringLiteral(original: StringLiteral | undefined, str: string): StringLiteral { return new StringLiteral(global.generatedEs2panda._UpdateStringLiteral1(global.context, passNode(original), str)) } get strConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts index 4552c4463e..7257a67a9a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts @@ -34,10 +34,10 @@ export class SuperExpression extends Expression { super(pointer) console.warn("Warning: stub node SuperExpression") } - static createSuperExpression(): SuperExpression | undefined { + static createSuperExpression(): SuperExpression { return new SuperExpression(global.generatedEs2panda._CreateSuperExpression(global.context)) } - static updateSuperExpression(original?: SuperExpression): SuperExpression | undefined { + static updateSuperExpression(original?: SuperExpression): SuperExpression { return new SuperExpression(global.generatedEs2panda._UpdateSuperExpression(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts index 92046a01f9..e2dec77098 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts @@ -36,10 +36,10 @@ export class SwitchStatement extends Statement { super(pointer) console.warn("Warning: stub node SwitchStatement") } - static createSwitchStatement(discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement | undefined { + static createSwitchStatement(discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { return new SwitchStatement(global.generatedEs2panda._CreateSwitchStatement(global.context, passNode(discriminant), passNodeArray(cases), casesLen)) } - static updateSwitchStatement(original: SwitchStatement | undefined, discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement | undefined { + static updateSwitchStatement(original: SwitchStatement | undefined, discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { return new SwitchStatement(global.generatedEs2panda._UpdateSwitchStatement(global.context, passNode(original), passNode(discriminant), passNodeArray(cases), casesLen)) } get discriminantConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts index 2390a90a2f..0554e0ec06 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts @@ -34,10 +34,10 @@ export class TSAnyKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSAnyKeyword") } - static createTSAnyKeyword(): TSAnyKeyword | undefined { + static createTSAnyKeyword(): TSAnyKeyword { return new TSAnyKeyword(global.generatedEs2panda._CreateTSAnyKeyword(global.context)) } - static updateTSAnyKeyword(original?: TSAnyKeyword): TSAnyKeyword | undefined { + static updateTSAnyKeyword(original?: TSAnyKeyword): TSAnyKeyword { return new TSAnyKeyword(global.generatedEs2panda._UpdateTSAnyKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts index d3d817d8cb..5b83f3e2e3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts @@ -34,10 +34,10 @@ export class TSArrayType extends TypeNode { super(pointer) console.warn("Warning: stub node TSArrayType") } - static createTSArrayType(elementType?: TypeNode): TSArrayType | undefined { + static createTSArrayType(elementType?: TypeNode): TSArrayType { return new TSArrayType(global.generatedEs2panda._CreateTSArrayType(global.context, passNode(elementType))) } - static updateTSArrayType(original?: TSArrayType, elementType?: TypeNode): TSArrayType | undefined { + static updateTSArrayType(original?: TSArrayType, elementType?: TypeNode): TSArrayType { return new TSArrayType(global.generatedEs2panda._UpdateTSArrayType(global.context, passNode(original), passNode(elementType))) } get elementTypeConst(): TypeNode | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts index 4a4ecdb619..e2e94a6892 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts @@ -36,10 +36,10 @@ export class TSAsExpression extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node TSAsExpression") } - static createTSAsExpression(expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression | undefined { + static createTSAsExpression(expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression { return new TSAsExpression(global.generatedEs2panda._CreateTSAsExpression(global.context, passNode(expression), passNode(typeAnnotation), isConst)) } - static updateTSAsExpression(original: TSAsExpression | undefined, expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression | undefined { + static updateTSAsExpression(original: TSAsExpression | undefined, expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression { return new TSAsExpression(global.generatedEs2panda._UpdateTSAsExpression(global.context, passNode(original), passNode(expression), passNode(typeAnnotation), isConst)) } get exprConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts index 4c06a44b55..7b09d8a028 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts @@ -34,10 +34,10 @@ export class TSBigintKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSBigintKeyword") } - static createTSBigintKeyword(): TSBigintKeyword | undefined { + static createTSBigintKeyword(): TSBigintKeyword { return new TSBigintKeyword(global.generatedEs2panda._CreateTSBigintKeyword(global.context)) } - static updateTSBigintKeyword(original?: TSBigintKeyword): TSBigintKeyword | undefined { + static updateTSBigintKeyword(original?: TSBigintKeyword): TSBigintKeyword { return new TSBigintKeyword(global.generatedEs2panda._UpdateTSBigintKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts index 5b49168cb2..f5310ed5f5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts @@ -34,10 +34,10 @@ export class TSBooleanKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSBooleanKeyword") } - static createTSBooleanKeyword(): TSBooleanKeyword | undefined { + static createTSBooleanKeyword(): TSBooleanKeyword { return new TSBooleanKeyword(global.generatedEs2panda._CreateTSBooleanKeyword(global.context)) } - static updateTSBooleanKeyword(original?: TSBooleanKeyword): TSBooleanKeyword | undefined { + static updateTSBooleanKeyword(original?: TSBooleanKeyword): TSBooleanKeyword { return new TSBooleanKeyword(global.generatedEs2panda._UpdateTSBooleanKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts index 11e237d6be..2580d32a61 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts @@ -35,16 +35,16 @@ export class TSClassImplements extends Expression { super(pointer) console.warn("Warning: stub node TSClassImplements") } - static createTSClassImplements(expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements | undefined { + static createTSClassImplements(expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._CreateTSClassImplements(global.context, passNode(expression), passNode(typeParameters))) } - static updateTSClassImplements(original?: TSClassImplements, expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements | undefined { + static updateTSClassImplements(original?: TSClassImplements, expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._UpdateTSClassImplements(global.context, passNode(original), passNode(expression), passNode(typeParameters))) } - static create1TSClassImplements(expression?: Expression): TSClassImplements | undefined { + static create1TSClassImplements(expression?: Expression): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._CreateTSClassImplements1(global.context, passNode(expression))) } - static update1TSClassImplements(original?: TSClassImplements, expression?: Expression): TSClassImplements | undefined { + static update1TSClassImplements(original?: TSClassImplements, expression?: Expression): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._UpdateTSClassImplements1(global.context, passNode(original), passNode(expression))) } get expr(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts index e59021171f..d65e3496c7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts @@ -35,10 +35,10 @@ export class TSConditionalType extends TypeNode { super(pointer) console.warn("Warning: stub node TSConditionalType") } - static createTSConditionalType(checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType | undefined { + static createTSConditionalType(checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType { return new TSConditionalType(global.generatedEs2panda._CreateTSConditionalType(global.context, passNode(checkType), passNode(extendsType), passNode(trueType), passNode(falseType))) } - static updateTSConditionalType(original?: TSConditionalType, checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType | undefined { + static updateTSConditionalType(original?: TSConditionalType, checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType { return new TSConditionalType(global.generatedEs2panda._UpdateTSConditionalType(global.context, passNode(original), passNode(checkType), passNode(extendsType), passNode(trueType), passNode(falseType))) } get checkTypeConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts index 247ba42ec6..a53d96c14d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts @@ -37,10 +37,10 @@ export class TSEnumDeclaration extends TypedStatement { super(pointer) console.warn("Warning: stub node TSEnumDeclaration") } - static createTSEnumDeclaration(key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration | undefined { + static createTSEnumDeclaration(key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration { return new TSEnumDeclaration(global.generatedEs2panda._CreateTSEnumDeclaration(global.context, passNode(key), passNodeArray(members), membersLen, isConst, isStatic, isDeclare)) } - static updateTSEnumDeclaration(original: TSEnumDeclaration | undefined, key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration | undefined { + static updateTSEnumDeclaration(original: TSEnumDeclaration | undefined, key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration { return new TSEnumDeclaration(global.generatedEs2panda._UpdateTSEnumDeclaration(global.context, passNode(original), passNode(key), passNodeArray(members), membersLen, isConst, isStatic, isDeclare)) } get keyConst(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts index 089827e0a2..2dada9d1d8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts @@ -35,16 +35,16 @@ export class TSEnumMember extends Statement { super(pointer) console.warn("Warning: stub node TSEnumMember") } - static createTSEnumMember(key?: Expression, init?: Expression): TSEnumMember | undefined { + static createTSEnumMember(key?: Expression, init?: Expression): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._CreateTSEnumMember(global.context, passNode(key), passNode(init))) } - static updateTSEnumMember(original?: TSEnumMember, key?: Expression, init?: Expression): TSEnumMember | undefined { + static updateTSEnumMember(original?: TSEnumMember, key?: Expression, init?: Expression): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._UpdateTSEnumMember(global.context, passNode(original), passNode(key), passNode(init))) } - static create1TSEnumMember(key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember | undefined { + static create1TSEnumMember(key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._CreateTSEnumMember1(global.context, passNode(key), passNode(init), isGenerated)) } - static update1TSEnumMember(original: TSEnumMember | undefined, key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember | undefined { + static update1TSEnumMember(original: TSEnumMember | undefined, key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._UpdateTSEnumMember1(global.context, passNode(original), passNode(key), passNode(init), isGenerated)) } get keyConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts index 24015578b0..09292e1a8b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts @@ -34,10 +34,10 @@ export class TSExternalModuleReference extends Expression { super(pointer) console.warn("Warning: stub node TSExternalModuleReference") } - static createTSExternalModuleReference(expr?: Expression): TSExternalModuleReference | undefined { + static createTSExternalModuleReference(expr?: Expression): TSExternalModuleReference { return new TSExternalModuleReference(global.generatedEs2panda._CreateTSExternalModuleReference(global.context, passNode(expr))) } - static updateTSExternalModuleReference(original?: TSExternalModuleReference, expr?: Expression): TSExternalModuleReference | undefined { + static updateTSExternalModuleReference(original?: TSExternalModuleReference, expr?: Expression): TSExternalModuleReference { return new TSExternalModuleReference(global.generatedEs2panda._UpdateTSExternalModuleReference(global.context, passNode(original), passNode(expr))) } get exprConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts index 8d5dcfacc0..4439807d15 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts @@ -36,10 +36,10 @@ export class TSImportEqualsDeclaration extends Statement { super(pointer) console.warn("Warning: stub node TSImportEqualsDeclaration") } - static createTSImportEqualsDeclaration(id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration | undefined { + static createTSImportEqualsDeclaration(id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration { return new TSImportEqualsDeclaration(global.generatedEs2panda._CreateTSImportEqualsDeclaration(global.context, passNode(id), passNode(moduleReference), isExport)) } - static updateTSImportEqualsDeclaration(original: TSImportEqualsDeclaration | undefined, id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration | undefined { + static updateTSImportEqualsDeclaration(original: TSImportEqualsDeclaration | undefined, id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration { return new TSImportEqualsDeclaration(global.generatedEs2panda._UpdateTSImportEqualsDeclaration(global.context, passNode(original), passNode(id), passNode(moduleReference), isExport)) } get idConst(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts index bb821894a3..01cce76615 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts @@ -36,10 +36,10 @@ export class TSImportType extends TypeNode { super(pointer) console.warn("Warning: stub node TSImportType") } - static createTSImportType(param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType | undefined { + static createTSImportType(param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType { return new TSImportType(global.generatedEs2panda._CreateTSImportType(global.context, passNode(param), passNode(typeParams), passNode(qualifier), isTypeof)) } - static updateTSImportType(original: TSImportType | undefined, param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType | undefined { + static updateTSImportType(original: TSImportType | undefined, param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType { return new TSImportType(global.generatedEs2panda._UpdateTSImportType(global.context, passNode(original), passNode(param), passNode(typeParams), passNode(qualifier), isTypeof)) } get paramConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts index d8762b0f51..cc1ae8a705 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts @@ -36,10 +36,10 @@ export class TSIndexSignature extends TypedAstNode { super(pointer) console.warn("Warning: stub node TSIndexSignature") } - static createTSIndexSignature(param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature | undefined { + static createTSIndexSignature(param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature { return new TSIndexSignature(global.generatedEs2panda._CreateTSIndexSignature(global.context, passNode(param), passNode(typeAnnotation), readonly_arg)) } - static updateTSIndexSignature(original: TSIndexSignature | undefined, param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature | undefined { + static updateTSIndexSignature(original: TSIndexSignature | undefined, param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature { return new TSIndexSignature(global.generatedEs2panda._UpdateTSIndexSignature(global.context, passNode(original), passNode(param), passNode(typeAnnotation), readonly_arg)) } get paramConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts index 37cd54b06d..3a4735dc74 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts @@ -34,10 +34,10 @@ export class TSIndexedAccessType extends TypeNode { super(pointer) console.warn("Warning: stub node TSIndexedAccessType") } - static createTSIndexedAccessType(objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType | undefined { + static createTSIndexedAccessType(objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType { return new TSIndexedAccessType(global.generatedEs2panda._CreateTSIndexedAccessType(global.context, passNode(objectType), passNode(indexType))) } - static updateTSIndexedAccessType(original?: TSIndexedAccessType, objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType | undefined { + static updateTSIndexedAccessType(original?: TSIndexedAccessType, objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType { return new TSIndexedAccessType(global.generatedEs2panda._UpdateTSIndexedAccessType(global.context, passNode(original), passNode(objectType), passNode(indexType))) } get objectTypeConst(): TypeNode | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts index e305bf923c..fd155eb765 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts @@ -35,10 +35,10 @@ export class TSInferType extends TypeNode { super(pointer) console.warn("Warning: stub node TSInferType") } - static createTSInferType(typeParam?: TSTypeParameter): TSInferType | undefined { + static createTSInferType(typeParam?: TSTypeParameter): TSInferType { return new TSInferType(global.generatedEs2panda._CreateTSInferType(global.context, passNode(typeParam))) } - static updateTSInferType(original?: TSInferType, typeParam?: TSTypeParameter): TSInferType | undefined { + static updateTSInferType(original?: TSInferType, typeParam?: TSTypeParameter): TSInferType { return new TSInferType(global.generatedEs2panda._UpdateTSInferType(global.context, passNode(original), passNode(typeParam))) } get typeParamConst(): TSTypeParameter | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts index 90f7004ee6..73133678ff 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts @@ -34,10 +34,10 @@ export class TSInterfaceBody extends Expression { super(pointer) console.warn("Warning: stub node TSInterfaceBody") } - static createTSInterfaceBody(body: readonly AstNode[], bodyLen: number): TSInterfaceBody | undefined { + static createTSInterfaceBody(body: readonly AstNode[], bodyLen: number): TSInterfaceBody { return new TSInterfaceBody(global.generatedEs2panda._CreateTSInterfaceBody(global.context, passNodeArray(body), bodyLen)) } - static updateTSInterfaceBody(original: TSInterfaceBody | undefined, body: readonly AstNode[], bodyLen: number): TSInterfaceBody | undefined { + static updateTSInterfaceBody(original: TSInterfaceBody | undefined, body: readonly AstNode[], bodyLen: number): TSInterfaceBody { return new TSInterfaceBody(global.generatedEs2panda._UpdateTSInterfaceBody(global.context, passNode(original), passNodeArray(body), bodyLen)) } get bodyPtr(): readonly AstNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts index ee2bb73830..d015665ef0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -41,10 +41,10 @@ export class TSInterfaceDeclaration extends TypedStatement { super(pointer) console.warn("Warning: stub node TSInterfaceDeclaration") } - static createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration | undefined { + static createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration { return new TSInterfaceDeclaration(global.generatedEs2panda._CreateTSInterfaceDeclaration(global.context, passNodeArray(_extends), extendsLen, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal)) } - static updateTSInterfaceDeclaration(original: TSInterfaceDeclaration | undefined, _extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration | undefined { + static updateTSInterfaceDeclaration(original: TSInterfaceDeclaration | undefined, _extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration { return new TSInterfaceDeclaration(global.generatedEs2panda._UpdateTSInterfaceDeclaration(global.context, passNode(original), passNodeArray(_extends), extendsLen, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal)) } get body(): TSInterfaceBody | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts index f5e2b0fc48..8e59d11af0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts @@ -35,10 +35,10 @@ export class TSInterfaceHeritage extends Expression { super(pointer) console.warn("Warning: stub node TSInterfaceHeritage") } - static createTSInterfaceHeritage(expr?: TypeNode): TSInterfaceHeritage | undefined { + static createTSInterfaceHeritage(expr?: TypeNode): TSInterfaceHeritage { return new TSInterfaceHeritage(global.generatedEs2panda._CreateTSInterfaceHeritage(global.context, passNode(expr))) } - static updateTSInterfaceHeritage(original?: TSInterfaceHeritage, expr?: TypeNode): TSInterfaceHeritage | undefined { + static updateTSInterfaceHeritage(original?: TSInterfaceHeritage, expr?: TypeNode): TSInterfaceHeritage { return new TSInterfaceHeritage(global.generatedEs2panda._UpdateTSInterfaceHeritage(global.context, passNode(original), passNode(expr))) } get expr(): TypeNode | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts index f169e27918..b4f3807184 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts @@ -35,10 +35,10 @@ export class TSIntersectionType extends TypeNode { super(pointer) console.warn("Warning: stub node TSIntersectionType") } - static createTSIntersectionType(types: readonly Expression[], typesLen: number): TSIntersectionType | undefined { + static createTSIntersectionType(types: readonly Expression[], typesLen: number): TSIntersectionType { return new TSIntersectionType(global.generatedEs2panda._CreateTSIntersectionType(global.context, passNodeArray(types), typesLen)) } - static updateTSIntersectionType(original: TSIntersectionType | undefined, types: readonly Expression[], typesLen: number): TSIntersectionType | undefined { + static updateTSIntersectionType(original: TSIntersectionType | undefined, types: readonly Expression[], typesLen: number): TSIntersectionType { return new TSIntersectionType(global.generatedEs2panda._UpdateTSIntersectionType(global.context, passNode(original), passNodeArray(types), typesLen)) } get typesConst(): readonly Expression[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts index c424677916..514a5e1b80 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts @@ -35,10 +35,10 @@ export class TSLiteralType extends TypeNode { super(pointer) console.warn("Warning: stub node TSLiteralType") } - static createTSLiteralType(literal?: Expression): TSLiteralType | undefined { + static createTSLiteralType(literal?: Expression): TSLiteralType { return new TSLiteralType(global.generatedEs2panda._CreateTSLiteralType(global.context, passNode(literal))) } - static updateTSLiteralType(original?: TSLiteralType, literal?: Expression): TSLiteralType | undefined { + static updateTSLiteralType(original?: TSLiteralType, literal?: Expression): TSLiteralType { return new TSLiteralType(global.generatedEs2panda._UpdateTSLiteralType(global.context, passNode(original), passNode(literal))) } get literalConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts index 1a55b53806..df7036c687 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts @@ -36,10 +36,10 @@ export class TSMappedType extends TypeNode { super(pointer) console.warn("Warning: stub node TSMappedType") } - static createTSMappedType(typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType | undefined { + static createTSMappedType(typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType { return new TSMappedType(global.generatedEs2panda._CreateTSMappedType(global.context, passNode(typeParameter), passNode(typeAnnotation), readonly_arg, optional_arg)) } - static updateTSMappedType(original: TSMappedType | undefined, typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType | undefined { + static updateTSMappedType(original: TSMappedType | undefined, typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType { return new TSMappedType(global.generatedEs2panda._UpdateTSMappedType(global.context, passNode(original), passNode(typeParameter), passNode(typeAnnotation), readonly_arg, optional_arg)) } get typeParameter(): TSTypeParameter | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts index f1020d9b82..d71cc25a28 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts @@ -35,10 +35,10 @@ export class TSNamedTupleMember extends TypeNode { super(pointer) console.warn("Warning: stub node TSNamedTupleMember") } - static createTSNamedTupleMember(label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember | undefined { + static createTSNamedTupleMember(label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember { return new TSNamedTupleMember(global.generatedEs2panda._CreateTSNamedTupleMember(global.context, passNode(label), passNode(elementType), optional_arg)) } - static updateTSNamedTupleMember(original: TSNamedTupleMember | undefined, label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember | undefined { + static updateTSNamedTupleMember(original: TSNamedTupleMember | undefined, label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember { return new TSNamedTupleMember(global.generatedEs2panda._UpdateTSNamedTupleMember(global.context, passNode(original), passNode(label), passNode(elementType), optional_arg)) } get labelConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts index 635f34a507..61a9a3eb2e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts @@ -34,10 +34,10 @@ export class TSNeverKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNeverKeyword") } - static createTSNeverKeyword(): TSNeverKeyword | undefined { + static createTSNeverKeyword(): TSNeverKeyword { return new TSNeverKeyword(global.generatedEs2panda._CreateTSNeverKeyword(global.context)) } - static updateTSNeverKeyword(original?: TSNeverKeyword): TSNeverKeyword | undefined { + static updateTSNeverKeyword(original?: TSNeverKeyword): TSNeverKeyword { return new TSNeverKeyword(global.generatedEs2panda._UpdateTSNeverKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts index 5bd56f7114..a154667c2c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts @@ -34,10 +34,10 @@ export class TSNonNullExpression extends Expression { super(pointer) console.warn("Warning: stub node TSNonNullExpression") } - static createTSNonNullExpression(expr?: Expression): TSNonNullExpression | undefined { + static createTSNonNullExpression(expr?: Expression): TSNonNullExpression { return new TSNonNullExpression(global.generatedEs2panda._CreateTSNonNullExpression(global.context, passNode(expr))) } - static updateTSNonNullExpression(original?: TSNonNullExpression, expr?: Expression): TSNonNullExpression | undefined { + static updateTSNonNullExpression(original?: TSNonNullExpression, expr?: Expression): TSNonNullExpression { return new TSNonNullExpression(global.generatedEs2panda._UpdateTSNonNullExpression(global.context, passNode(original), passNode(expr))) } get exprConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts index a2025727f8..a338f0527e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts @@ -34,10 +34,10 @@ export class TSNullKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNullKeyword") } - static createTSNullKeyword(): TSNullKeyword | undefined { + static createTSNullKeyword(): TSNullKeyword { return new TSNullKeyword(global.generatedEs2panda._CreateTSNullKeyword(global.context)) } - static updateTSNullKeyword(original?: TSNullKeyword): TSNullKeyword | undefined { + static updateTSNullKeyword(original?: TSNullKeyword): TSNullKeyword { return new TSNullKeyword(global.generatedEs2panda._UpdateTSNullKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts index 2d791b858d..ef48ea57c0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts @@ -34,10 +34,10 @@ export class TSNumberKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNumberKeyword") } - static createTSNumberKeyword(): TSNumberKeyword | undefined { + static createTSNumberKeyword(): TSNumberKeyword { return new TSNumberKeyword(global.generatedEs2panda._CreateTSNumberKeyword(global.context)) } - static updateTSNumberKeyword(original?: TSNumberKeyword): TSNumberKeyword | undefined { + static updateTSNumberKeyword(original?: TSNumberKeyword): TSNumberKeyword { return new TSNumberKeyword(global.generatedEs2panda._UpdateTSNumberKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts index 5691063127..f8bfb3d1e0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts @@ -34,10 +34,10 @@ export class TSObjectKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSObjectKeyword") } - static createTSObjectKeyword(): TSObjectKeyword | undefined { + static createTSObjectKeyword(): TSObjectKeyword { return new TSObjectKeyword(global.generatedEs2panda._CreateTSObjectKeyword(global.context)) } - static updateTSObjectKeyword(original?: TSObjectKeyword): TSObjectKeyword | undefined { + static updateTSObjectKeyword(original?: TSObjectKeyword): TSObjectKeyword { return new TSObjectKeyword(global.generatedEs2panda._UpdateTSObjectKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts index 940c8aa534..18d1991d84 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts @@ -35,10 +35,10 @@ export class TSParameterProperty extends Expression { super(pointer) console.warn("Warning: stub node TSParameterProperty") } - static createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty | undefined { + static createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty { return new TSParameterProperty(global.generatedEs2panda._CreateTSParameterProperty(global.context, accessibility, passNode(parameter), readonly_arg, isStatic, isExport)) } - static updateTSParameterProperty(original: TSParameterProperty | undefined, accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty | undefined { + static updateTSParameterProperty(original: TSParameterProperty | undefined, accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty { return new TSParameterProperty(global.generatedEs2panda._UpdateTSParameterProperty(global.context, passNode(original), accessibility, passNode(parameter), readonly_arg, isStatic, isExport)) } get accessibilityConst(): Es2pandaAccessibilityOption { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts index 4bfbedf07d..cdfc0257ee 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts @@ -35,10 +35,10 @@ export class TSParenthesizedType extends TypeNode { super(pointer) console.warn("Warning: stub node TSParenthesizedType") } - static createTSParenthesizedType(type?: TypeNode): TSParenthesizedType | undefined { + static createTSParenthesizedType(type?: TypeNode): TSParenthesizedType { return new TSParenthesizedType(global.generatedEs2panda._CreateTSParenthesizedType(global.context, passNode(type))) } - static updateTSParenthesizedType(original?: TSParenthesizedType, type?: TypeNode): TSParenthesizedType | undefined { + static updateTSParenthesizedType(original?: TSParenthesizedType, type?: TypeNode): TSParenthesizedType { return new TSParenthesizedType(global.generatedEs2panda._UpdateTSParenthesizedType(global.context, passNode(original), passNode(type))) } get typeConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts index 528b234b10..fb9f0eead3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts @@ -36,10 +36,10 @@ export class TSPropertySignature extends AnnotatedAstNode { super(pointer) console.warn("Warning: stub node TSPropertySignature") } - static createTSPropertySignature(key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature | undefined { + static createTSPropertySignature(key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature { return new TSPropertySignature(global.generatedEs2panda._CreateTSPropertySignature(global.context, passNode(key), passNode(typeAnnotation), computed, optional_arg, readonly_arg)) } - static updateTSPropertySignature(original: TSPropertySignature | undefined, key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature | undefined { + static updateTSPropertySignature(original: TSPropertySignature | undefined, key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature { return new TSPropertySignature(global.generatedEs2panda._UpdateTSPropertySignature(global.context, passNode(original), passNode(key), passNode(typeAnnotation), computed, optional_arg, readonly_arg)) } get keyConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts index 5420eddc53..8a23a42752 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts @@ -35,10 +35,10 @@ export class TSQualifiedName extends Expression { super(pointer) console.warn("Warning: stub node TSQualifiedName") } - static createTSQualifiedName(left?: Expression, right?: Identifier): TSQualifiedName | undefined { + static createTSQualifiedName(left?: Expression, right?: Identifier): TSQualifiedName { return new TSQualifiedName(global.generatedEs2panda._CreateTSQualifiedName(global.context, passNode(left), passNode(right))) } - static updateTSQualifiedName(original?: TSQualifiedName, left?: Expression, right?: Identifier): TSQualifiedName | undefined { + static updateTSQualifiedName(original?: TSQualifiedName, left?: Expression, right?: Identifier): TSQualifiedName { return new TSQualifiedName(global.generatedEs2panda._UpdateTSQualifiedName(global.context, passNode(original), passNode(left), passNode(right))) } get leftConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts index f19cc22fd4..e0e7a8ac2a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts @@ -34,10 +34,10 @@ export class TSStringKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSStringKeyword") } - static createTSStringKeyword(): TSStringKeyword | undefined { + static createTSStringKeyword(): TSStringKeyword { return new TSStringKeyword(global.generatedEs2panda._CreateTSStringKeyword(global.context)) } - static updateTSStringKeyword(original?: TSStringKeyword): TSStringKeyword | undefined { + static updateTSStringKeyword(original?: TSStringKeyword): TSStringKeyword { return new TSStringKeyword(global.generatedEs2panda._UpdateTSStringKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts index 0231fbceaf..f41c0b7f18 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts @@ -34,10 +34,10 @@ export class TSThisType extends TypeNode { super(pointer) console.warn("Warning: stub node TSThisType") } - static createTSThisType(): TSThisType | undefined { + static createTSThisType(): TSThisType { return new TSThisType(global.generatedEs2panda._CreateTSThisType(global.context)) } - static updateTSThisType(original?: TSThisType): TSThisType | undefined { + static updateTSThisType(original?: TSThisType): TSThisType { return new TSThisType(global.generatedEs2panda._UpdateTSThisType(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts index ec1d90e8e9..4189b9d065 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts @@ -34,10 +34,10 @@ export class TSTupleType extends TypeNode { super(pointer) console.warn("Warning: stub node TSTupleType") } - static createTSTupleType(elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType | undefined { + static createTSTupleType(elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType { return new TSTupleType(global.generatedEs2panda._CreateTSTupleType(global.context, passNodeArray(elementTypes), elementTypesLen)) } - static updateTSTupleType(original: TSTupleType | undefined, elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType | undefined { + static updateTSTupleType(original: TSTupleType | undefined, elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType { return new TSTupleType(global.generatedEs2panda._UpdateTSTupleType(global.context, passNode(original), passNodeArray(elementTypes), elementTypesLen)) } get elementTypeConst(): readonly TypeNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts index 8cf089e12e..e9ff06a0f5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts @@ -39,16 +39,16 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement { super(pointer) console.warn("Warning: stub node TSTypeAliasDeclaration") } - static createTSTypeAliasDeclaration(id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration | undefined { + static createTSTypeAliasDeclaration(id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._CreateTSTypeAliasDeclaration(global.context, passNode(id), passNode(typeParams), passNode(typeAnnotation))) } - static updateTSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration | undefined { + static updateTSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._UpdateTSTypeAliasDeclaration(global.context, passNode(original), passNode(id), passNode(typeParams), passNode(typeAnnotation))) } - static create1TSTypeAliasDeclaration(id?: Identifier): TSTypeAliasDeclaration | undefined { + static create1TSTypeAliasDeclaration(id?: Identifier): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._CreateTSTypeAliasDeclaration1(global.context, passNode(id))) } - static update1TSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier): TSTypeAliasDeclaration | undefined { + static update1TSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._UpdateTSTypeAliasDeclaration1(global.context, passNode(original), passNode(id))) } get id(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts index 49b0638c26..ad6d47764e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts @@ -36,10 +36,10 @@ export class TSTypeAssertion extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node TSTypeAssertion") } - static createTSTypeAssertion(typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion | undefined { + static createTSTypeAssertion(typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion { return new TSTypeAssertion(global.generatedEs2panda._CreateTSTypeAssertion(global.context, passNode(typeAnnotation), passNode(expression))) } - static updateTSTypeAssertion(original?: TSTypeAssertion, typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion | undefined { + static updateTSTypeAssertion(original?: TSTypeAssertion, typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion { return new TSTypeAssertion(global.generatedEs2panda._UpdateTSTypeAssertion(global.context, passNode(original), passNode(typeAnnotation), passNode(expression))) } get getExpressionConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts index 1b4566d0ac..0f66760cf9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts @@ -34,10 +34,10 @@ export class TSTypeLiteral extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeLiteral") } - static createTSTypeLiteral(members: readonly AstNode[], membersLen: number): TSTypeLiteral | undefined { + static createTSTypeLiteral(members: readonly AstNode[], membersLen: number): TSTypeLiteral { return new TSTypeLiteral(global.generatedEs2panda._CreateTSTypeLiteral(global.context, passNodeArray(members), membersLen)) } - static updateTSTypeLiteral(original: TSTypeLiteral | undefined, members: readonly AstNode[], membersLen: number): TSTypeLiteral | undefined { + static updateTSTypeLiteral(original: TSTypeLiteral | undefined, members: readonly AstNode[], membersLen: number): TSTypeLiteral { return new TSTypeLiteral(global.generatedEs2panda._UpdateTSTypeLiteral(global.context, passNode(original), passNodeArray(members), membersLen)) } get membersConst(): readonly AstNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts index 4d52ae226c..c69211c1dd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts @@ -35,10 +35,10 @@ export class TSTypeOperator extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeOperator") } - static createTSTypeOperator(type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator | undefined { + static createTSTypeOperator(type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator { return new TSTypeOperator(global.generatedEs2panda._CreateTSTypeOperator(global.context, passNode(type), operatorType)) } - static updateTSTypeOperator(original: TSTypeOperator | undefined, type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator | undefined { + static updateTSTypeOperator(original: TSTypeOperator | undefined, type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator { return new TSTypeOperator(global.generatedEs2panda._UpdateTSTypeOperator(global.context, passNode(original), passNode(type), operatorType)) } get typeConst(): TypeNode | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts index ea88652879..69d217e48b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts @@ -38,16 +38,16 @@ export class TSTypeParameter extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameter") } - static createTSTypeParameter(name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter | undefined { + static createTSTypeParameter(name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._CreateTSTypeParameter(global.context, passNode(name), passNode(constraint), passNode(defaultType))) } - static updateTSTypeParameter(original?: TSTypeParameter, name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter | undefined { + static updateTSTypeParameter(original?: TSTypeParameter, name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._UpdateTSTypeParameter(global.context, passNode(original), passNode(name), passNode(constraint), passNode(defaultType))) } - static create1TSTypeParameter(name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter | undefined { + static create1TSTypeParameter(name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._CreateTSTypeParameter1(global.context, passNode(name), passNode(constraint), passNode(defaultType), flags)) } - static update1TSTypeParameter(original: TSTypeParameter | undefined, name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter | undefined { + static update1TSTypeParameter(original: TSTypeParameter | undefined, name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._UpdateTSTypeParameter1(global.context, passNode(original), passNode(name), passNode(constraint), passNode(defaultType), flags)) } get nameConst(): Identifier | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts index a94ae07482..2be0b6bff6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts @@ -35,10 +35,10 @@ export class TSTypeParameterDeclaration extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameterDeclaration") } - static createTSTypeParameterDeclaration(params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration | undefined { + static createTSTypeParameterDeclaration(params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration { return new TSTypeParameterDeclaration(global.generatedEs2panda._CreateTSTypeParameterDeclaration(global.context, passNodeArray(params), paramsLen, requiredParams)) } - static updateTSTypeParameterDeclaration(original: TSTypeParameterDeclaration | undefined, params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration | undefined { + static updateTSTypeParameterDeclaration(original: TSTypeParameterDeclaration | undefined, params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration { return new TSTypeParameterDeclaration(global.generatedEs2panda._UpdateTSTypeParameterDeclaration(global.context, passNode(original), passNodeArray(params), paramsLen, requiredParams)) } get paramsConst(): readonly TSTypeParameter[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts index 6d0836ed5f..faeb4299a5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts @@ -35,10 +35,10 @@ export class TSTypeParameterInstantiation extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameterInstantiation") } - static createTSTypeParameterInstantiation(params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation | undefined { + static createTSTypeParameterInstantiation(params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation { return new TSTypeParameterInstantiation(global.generatedEs2panda._CreateTSTypeParameterInstantiation(global.context, passNodeArray(params), paramsLen)) } - static updateTSTypeParameterInstantiation(original: TSTypeParameterInstantiation | undefined, params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation | undefined { + static updateTSTypeParameterInstantiation(original: TSTypeParameterInstantiation | undefined, params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation { return new TSTypeParameterInstantiation(global.generatedEs2panda._UpdateTSTypeParameterInstantiation(global.context, passNode(original), passNodeArray(params), paramsLen)) } get paramsConst(): readonly TypeNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts index af4f9de446..5c605d7958 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts @@ -35,10 +35,10 @@ export class TSTypePredicate extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypePredicate") } - static createTSTypePredicate(parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate | undefined { + static createTSTypePredicate(parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate { return new TSTypePredicate(global.generatedEs2panda._CreateTSTypePredicate(global.context, passNode(parameterName), passNode(typeAnnotation), asserts)) } - static updateTSTypePredicate(original: TSTypePredicate | undefined, parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate | undefined { + static updateTSTypePredicate(original: TSTypePredicate | undefined, parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate { return new TSTypePredicate(global.generatedEs2panda._UpdateTSTypePredicate(global.context, passNode(original), passNode(parameterName), passNode(typeAnnotation), asserts)) } get parameterNameConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts index 299d735163..8cc40264c5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts @@ -35,10 +35,10 @@ export class TSTypeQuery extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeQuery") } - static createTSTypeQuery(exprName?: Expression): TSTypeQuery | undefined { + static createTSTypeQuery(exprName?: Expression): TSTypeQuery { return new TSTypeQuery(global.generatedEs2panda._CreateTSTypeQuery(global.context, passNode(exprName))) } - static updateTSTypeQuery(original?: TSTypeQuery, exprName?: Expression): TSTypeQuery | undefined { + static updateTSTypeQuery(original?: TSTypeQuery, exprName?: Expression): TSTypeQuery { return new TSTypeQuery(global.generatedEs2panda._UpdateTSTypeQuery(global.context, passNode(original), passNode(exprName))) } get exprNameConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts index 85e47701a3..53215db151 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts @@ -36,10 +36,10 @@ export class TSTypeReference extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeReference") } - static createTSTypeReference(typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference | undefined { + static createTSTypeReference(typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference { return new TSTypeReference(global.generatedEs2panda._CreateTSTypeReference(global.context, passNode(typeName), passNode(typeParams))) } - static updateTSTypeReference(original?: TSTypeReference, typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference | undefined { + static updateTSTypeReference(original?: TSTypeReference, typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference { return new TSTypeReference(global.generatedEs2panda._UpdateTSTypeReference(global.context, passNode(original), passNode(typeName), passNode(typeParams))) } get typeParamsConst(): TSTypeParameterInstantiation | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts index cfedbf5b7a..895f5f82cb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts @@ -34,10 +34,10 @@ export class TSUndefinedKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSUndefinedKeyword") } - static createTSUndefinedKeyword(): TSUndefinedKeyword | undefined { + static createTSUndefinedKeyword(): TSUndefinedKeyword { return new TSUndefinedKeyword(global.generatedEs2panda._CreateTSUndefinedKeyword(global.context)) } - static updateTSUndefinedKeyword(original?: TSUndefinedKeyword): TSUndefinedKeyword | undefined { + static updateTSUndefinedKeyword(original?: TSUndefinedKeyword): TSUndefinedKeyword { return new TSUndefinedKeyword(global.generatedEs2panda._UpdateTSUndefinedKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts index c49af47c5d..9b696f94c6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts @@ -34,10 +34,10 @@ export class TSUnionType extends TypeNode { super(pointer) console.warn("Warning: stub node TSUnionType") } - static createTSUnionType(types: readonly TypeNode[], typesLen: number): TSUnionType | undefined { + static createTSUnionType(types: readonly TypeNode[], typesLen: number): TSUnionType { return new TSUnionType(global.generatedEs2panda._CreateTSUnionType(global.context, passNodeArray(types), typesLen)) } - static updateTSUnionType(original: TSUnionType | undefined, types: readonly TypeNode[], typesLen: number): TSUnionType | undefined { + static updateTSUnionType(original: TSUnionType | undefined, types: readonly TypeNode[], typesLen: number): TSUnionType { return new TSUnionType(global.generatedEs2panda._UpdateTSUnionType(global.context, passNode(original), passNodeArray(types), typesLen)) } get typesConst(): readonly TypeNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts index 34cc18e2fb..b7d88e15bf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts @@ -34,10 +34,10 @@ export class TSUnknownKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSUnknownKeyword") } - static createTSUnknownKeyword(): TSUnknownKeyword | undefined { + static createTSUnknownKeyword(): TSUnknownKeyword { return new TSUnknownKeyword(global.generatedEs2panda._CreateTSUnknownKeyword(global.context)) } - static updateTSUnknownKeyword(original?: TSUnknownKeyword): TSUnknownKeyword | undefined { + static updateTSUnknownKeyword(original?: TSUnknownKeyword): TSUnknownKeyword { return new TSUnknownKeyword(global.generatedEs2panda._UpdateTSUnknownKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts index 8b4f2fb813..8197ebb738 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts @@ -34,10 +34,10 @@ export class TSVoidKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSVoidKeyword") } - static createTSVoidKeyword(): TSVoidKeyword | undefined { + static createTSVoidKeyword(): TSVoidKeyword { return new TSVoidKeyword(global.generatedEs2panda._CreateTSVoidKeyword(global.context)) } - static updateTSVoidKeyword(original?: TSVoidKeyword): TSVoidKeyword | undefined { + static updateTSVoidKeyword(original?: TSVoidKeyword): TSVoidKeyword { return new TSVoidKeyword(global.generatedEs2panda._UpdateTSVoidKeyword(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts index d8b5e12ff8..00cd6f6dc0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts @@ -36,10 +36,10 @@ export class TaggedTemplateExpression extends Expression { super(pointer) console.warn("Warning: stub node TaggedTemplateExpression") } - static createTaggedTemplateExpression(tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression | undefined { + static createTaggedTemplateExpression(tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression { return new TaggedTemplateExpression(global.generatedEs2panda._CreateTaggedTemplateExpression(global.context, passNode(tag), passNode(quasi), passNode(typeParams))) } - static updateTaggedTemplateExpression(original?: TaggedTemplateExpression, tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression | undefined { + static updateTaggedTemplateExpression(original?: TaggedTemplateExpression, tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression { return new TaggedTemplateExpression(global.generatedEs2panda._UpdateTaggedTemplateExpression(global.context, passNode(original), passNode(tag), passNode(quasi), passNode(typeParams))) } get tagConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts index 4caf056f41..cb05a99e05 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts @@ -34,16 +34,16 @@ export class TemplateElement extends Expression { super(pointer) console.warn("Warning: stub node TemplateElement") } - static createTemplateElement(): TemplateElement | undefined { + static createTemplateElement(): TemplateElement { return new TemplateElement(global.generatedEs2panda._CreateTemplateElement(global.context)) } - static updateTemplateElement(original?: TemplateElement): TemplateElement | undefined { + static updateTemplateElement(original?: TemplateElement): TemplateElement { return new TemplateElement(global.generatedEs2panda._UpdateTemplateElement(global.context, passNode(original))) } - static create1TemplateElement(raw: string, cooked: string): TemplateElement | undefined { + static create1TemplateElement(raw: string, cooked: string): TemplateElement { return new TemplateElement(global.generatedEs2panda._CreateTemplateElement1(global.context, raw, cooked)) } - static update1TemplateElement(original: TemplateElement | undefined, raw: string, cooked: string): TemplateElement | undefined { + static update1TemplateElement(original: TemplateElement | undefined, raw: string, cooked: string): TemplateElement { return new TemplateElement(global.generatedEs2panda._UpdateTemplateElement1(global.context, passNode(original), raw, cooked)) } get rawConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts index 2f9722608f..227569f5d8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts @@ -35,10 +35,10 @@ export class TemplateLiteral extends Expression { super(pointer) console.warn("Warning: stub node TemplateLiteral") } - static createTemplateLiteral(quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral | undefined { + static createTemplateLiteral(quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral { return new TemplateLiteral(global.generatedEs2panda._CreateTemplateLiteral(global.context, passNodeArray(quasis), quasisLen, passNodeArray(expressions), expressionsLen, multilineString)) } - static updateTemplateLiteral(original: TemplateLiteral | undefined, quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral | undefined { + static updateTemplateLiteral(original: TemplateLiteral | undefined, quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral { return new TemplateLiteral(global.generatedEs2panda._UpdateTemplateLiteral(global.context, passNode(original), passNodeArray(quasis), quasisLen, passNodeArray(expressions), expressionsLen, multilineString)) } get quasisConst(): readonly TemplateElement[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts index 6de59a46e0..d622b5e563 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts @@ -34,10 +34,10 @@ export class ThisExpression extends Expression { super(pointer) console.warn("Warning: stub node ThisExpression") } - static createThisExpression(): ThisExpression | undefined { + static createThisExpression(): ThisExpression { return new ThisExpression(global.generatedEs2panda._CreateThisExpression(global.context)) } - static updateThisExpression(original?: ThisExpression): ThisExpression | undefined { + static updateThisExpression(original?: ThisExpression): ThisExpression { return new ThisExpression(global.generatedEs2panda._UpdateThisExpression(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts index b362f6e975..46ece221f3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts @@ -35,10 +35,10 @@ export class ThrowStatement extends Statement { super(pointer) console.warn("Warning: stub node ThrowStatement") } - static createThrowStatement(argument?: Expression): ThrowStatement | undefined { + static createThrowStatement(argument?: Expression): ThrowStatement { return new ThrowStatement(global.generatedEs2panda._CreateThrowStatement(global.context, passNode(argument))) } - static updateThrowStatement(original?: ThrowStatement, argument?: Expression): ThrowStatement | undefined { + static updateThrowStatement(original?: ThrowStatement, argument?: Expression): ThrowStatement { return new ThrowStatement(global.generatedEs2panda._UpdateThrowStatement(global.context, passNode(original), passNode(argument))) } get argumentConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts index 622ddb28e4..541ef9675e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts @@ -34,10 +34,10 @@ export class TypeofExpression extends Expression { super(pointer) console.warn("Warning: stub node TypeofExpression") } - static createTypeofExpression(argument?: Expression): TypeofExpression | undefined { + static createTypeofExpression(argument?: Expression): TypeofExpression { return new TypeofExpression(global.generatedEs2panda._CreateTypeofExpression(global.context, passNode(argument))) } - static updateTypeofExpression(original?: TypeofExpression, argument?: Expression): TypeofExpression | undefined { + static updateTypeofExpression(original?: TypeofExpression, argument?: Expression): TypeofExpression { return new TypeofExpression(global.generatedEs2panda._UpdateTypeofExpression(global.context, passNode(original), passNode(argument))) } get argumentConst(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts index cfd26a3598..d0ab980f35 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts @@ -35,10 +35,10 @@ export class UnaryExpression extends Expression { super(pointer) console.warn("Warning: stub node UnaryExpression") } - static createUnaryExpression(argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression | undefined { + static createUnaryExpression(argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression { return new UnaryExpression(global.generatedEs2panda._CreateUnaryExpression(global.context, passNode(argument), unaryOperator)) } - static updateUnaryExpression(original: UnaryExpression | undefined, argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression | undefined { + static updateUnaryExpression(original: UnaryExpression | undefined, argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression { return new UnaryExpression(global.generatedEs2panda._UpdateUnaryExpression(global.context, passNode(original), passNode(argument), unaryOperator)) } get operatorTypeConst(): Es2pandaTokenType { diff --git a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts index ee3bb46bc1..7928c35114 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts @@ -34,10 +34,10 @@ export class UndefinedLiteral extends Literal { super(pointer) console.warn("Warning: stub node UndefinedLiteral") } - static createUndefinedLiteral(): UndefinedLiteral | undefined { + static createUndefinedLiteral(): UndefinedLiteral { return new UndefinedLiteral(global.generatedEs2panda._CreateUndefinedLiteral(global.context)) } - static updateUndefinedLiteral(original?: UndefinedLiteral): UndefinedLiteral | undefined { + static updateUndefinedLiteral(original?: UndefinedLiteral): UndefinedLiteral { return new UndefinedLiteral(global.generatedEs2panda._UpdateUndefinedLiteral(global.context, passNode(original))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts index 1db3cd5cbf..14ad0b275a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts @@ -35,10 +35,10 @@ export class UpdateExpression extends Expression { super(pointer) console.warn("Warning: stub node UpdateExpression") } - static createUpdateExpression(argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression | undefined { + static createUpdateExpression(argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { return new UpdateExpression(global.generatedEs2panda._CreateUpdateExpression(global.context, passNode(argument), updateOperator, isPrefix)) } - static updateUpdateExpression(original: UpdateExpression | undefined, argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression | undefined { + static updateUpdateExpression(original: UpdateExpression | undefined, argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { return new UpdateExpression(global.generatedEs2panda._UpdateUpdateExpression(global.context, passNode(original), passNode(argument), updateOperator, isPrefix)) } get operatorTypeConst(): Es2pandaTokenType { diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts index c82b5ae818..2d562e5fee 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts @@ -38,10 +38,10 @@ export class VariableDeclaration extends Statement { super(pointer) console.warn("Warning: stub node VariableDeclaration") } - static createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration | undefined { + static createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration { return new VariableDeclaration(global.generatedEs2panda._CreateVariableDeclaration(global.context, kind, passNodeArray(declarators), declaratorsLen)) } - static updateVariableDeclaration(original: VariableDeclaration | undefined, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration | undefined { + static updateVariableDeclaration(original: VariableDeclaration | undefined, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration { return new VariableDeclaration(global.generatedEs2panda._UpdateVariableDeclaration(global.context, passNode(original), kind, passNodeArray(declarators), declaratorsLen)) } get declaratorsConst(): readonly VariableDeclarator[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts index 5db1da15be..bebada215f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts @@ -36,16 +36,16 @@ export class VariableDeclarator extends TypedStatement { super(pointer) console.warn("Warning: stub node VariableDeclarator") } - static createVariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator | undefined { + static createVariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._CreateVariableDeclarator(global.context, flag, passNode(ident))) } - static updateVariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator | undefined { + static updateVariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._UpdateVariableDeclarator(global.context, passNode(original), flag, passNode(ident))) } - static create1VariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator | undefined { + static create1VariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._CreateVariableDeclarator1(global.context, flag, passNode(ident), passNode(init))) } - static update1VariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator | undefined { + static update1VariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._UpdateVariableDeclarator1(global.context, passNode(original), flag, passNode(ident), passNode(init))) } get init(): Expression | undefined { diff --git a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts index fb025cb58a..5de301724d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts @@ -34,10 +34,10 @@ export class YieldExpression extends Expression { super(pointer) console.warn("Warning: stub node YieldExpression") } - static createYieldExpression(argument: Expression | undefined, isDelegate: boolean): YieldExpression | undefined { + static createYieldExpression(argument: Expression | undefined, isDelegate: boolean): YieldExpression { return new YieldExpression(global.generatedEs2panda._CreateYieldExpression(global.context, passNode(argument), isDelegate)) } - static updateYieldExpression(original: YieldExpression | undefined, argument: Expression | undefined, isDelegate: boolean): YieldExpression | undefined { + static updateYieldExpression(original: YieldExpression | undefined, argument: Expression | undefined, isDelegate: boolean): YieldExpression { return new YieldExpression(global.generatedEs2panda._UpdateYieldExpression(global.context, passNode(original), passNode(argument), isDelegate)) } get hasDelegateConst(): boolean { -- Gitee From ab4358485a7fc70842ca997c57408df46a227bd6 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 19 Feb 2025 14:29:40 +0300 Subject: [PATCH 08/12] rebase, need id Signed-off-by: naumovdmitrii --- .../libarkts/plugins/src/arkts-utils.ts | 4 +- .../src/arkts-api/factory/nodeFactory.ts | 6 +-- .../src/arkts-api/factory/nodeTests.ts | 11 +--- arkoala-arkts/libarkts/src/arkts-api/types.ts | 52 ++++++------------- 4 files changed, 22 insertions(+), 51 deletions(-) diff --git a/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts index 549790fd7e..e6201eda84 100644 --- a/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts +++ b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts @@ -1,8 +1,8 @@ import * as arkts from "@koalaui/libarkts" -export function annotation(name: string): arkts.AnnotationUsageIr { +export function annotation(name: string): arkts.AnnotationUsage { const ident: arkts.Identifier = arkts.factory.createIdentifier(name).setAnnotationUsage(); - const annotation: arkts.AnnotationUsageIr = arkts.factory.createAnnotationUsageIr(ident); + const annotation: arkts.AnnotationUsage = arkts.factory.createAnnotationUsage(ident); annotation.modifiers = arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_ANNOTATION_USAGE; ident.parent = annotation; diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts index 778cb68cd8..4f3f39b21e 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts @@ -15,7 +15,6 @@ import { updateNodeByNode } from "../utilities/private" import { - AnnotationUsageIr, ArrowFunctionExpression, BinaryExpression, BlockStatement, @@ -54,6 +53,7 @@ import { } from "../types" import { MemberExpression } from "../to-be-generated/MemberExpression" import { AstNode } from "../peers/AstNode" +import { AnnotationUsage } from "../../generated" function compose( create: (...args: ARGS) => T, @@ -289,8 +289,8 @@ export const factory = { get updateUndefinedLiteral() { return compose(UndefinedLiteral.create) }, - get createAnnotationUsageIr() { - return AnnotationUsageIr.create + get createAnnotationUsage() { + return AnnotationUsage.createAnnotationUsage }, get updateAnnotationUsageIr() { return compose(UndefinedLiteral.create) diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts index 898fb4e732..dd87fe0c4e 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts @@ -1,7 +1,6 @@ import { global } from "../static/global" import { AnnotationDeclaration, - AnnotationUsageIr, ArrowFunctionExpression, BlockStatement, CallExpression, @@ -22,15 +21,7 @@ import { ClassProperty } from "../types" import { MemberExpression } from "../to-be-generated/MemberExpression" -import type { AstNode } from "../peers/AstNode" - -export function isClassProperty(node: AstNode): node is ClassProperty { - return global.es2panda._IsClassProperty(node.peer); -} - -export function isAnnotationUsage(node: AstNode): node is AnnotationUsageIr { - return global.es2panda._IsAnnotationUsage(node.peer); -} +import { AstNode } from "../peers/AstNode" export function isAnnotationDeclaration(node: AstNode): node is AnnotationDeclaration { return global.es2panda._IsAnnotationDeclaration(node.peer); diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 9645586982..3d46660131 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -50,6 +50,7 @@ import { Context } from "./peers/Context" import * as path from "node:path" import { nodeByType } from "./class-by-peer" import { MemberExpression } from "./to-be-generated/MemberExpression" +import { AnnotationUsage } from "../generated" export class UnsupportedNode extends AstNode { constructor(peer: KPtr) { @@ -602,15 +603,15 @@ export class ScriptFunction extends AstNode { readonly scriptFunctionFlags: KInt readonly ident?: Identifier - get annotations(): AnnotationUsageIr[] { + get annotations(): AnnotationUsage[] { return unpackNodeArray(global.es2panda._ScriptFunctionAnnotations( global.context, this.peer, nullptr - )) as AnnotationUsageIr[]; + )) } - set annotations(newAnnotations: AnnotationUsageIr[]) { + set annotations(newAnnotations: AnnotationUsage[]) { global.es2panda._ScriptFunctionSetAnnotations( global.context, this.peer, @@ -744,15 +745,15 @@ export class ETSParameterExpression extends AstNode { ) } - get annotations(): AnnotationUsageIr[] { + get annotations(): AnnotationUsage[] { return unpackNodeArray(global.es2panda._ETSParameterExpressionAnnotations( global.context, this.peer, nullptr - )) as AnnotationUsageIr[]; + )) } - set annotations(newAnnotations: AnnotationUsageIr[]) { + set annotations(newAnnotations: AnnotationUsage[]) { global.es2panda._ETSParameterExpressionSetAnnotations( global.context, this.peer, @@ -1057,15 +1058,17 @@ export class ClassProperty extends ClassElement { ) } - get annotations(): AnnotationUsageIr[] { - return unpackNodeArray(global.es2panda._ScriptFunctionAnnotations( - global.context, - this.peer, - nullptr - )) as AnnotationUsageIr[]; + get annotations(): AnnotationUsage[] { + return unpackNodeArray( + global.es2panda._ScriptFunctionAnnotations( + global.context, + this.peer, + nullptr + ) + ) } - set annotations(newAnnotations: AnnotationUsageIr[]) { + set annotations(newAnnotations: AnnotationUsage[]) { global.es2panda._ScriptFunctionSetAnnotations( global.context, this.peer, @@ -1237,29 +1240,6 @@ export class ImportSpecifier extends AstNode { } } -export class AnnotationUsageIr extends AstNode { - constructor(peer: KPtr) { - assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE) - super(peer) - this.expr = unpackNonNullableNode(global.generatedEs2panda._AnnotationUsageIrExpr(global.context, this.peer)) - this.properties = unpackNodeArray(global.generatedEs2panda._AnnotationUsageIrPropertiesConst(global.context, this.peer)) - } - - static create( - annoIdent: AstNode - ): AnnotationUsageIr { - return new AnnotationUsageIr( - global.es2panda._CreateAnnotationUsageIr( - global.context, - passNode(annoIdent) - ) - ); - } - - readonly expr: AstNode - readonly properties: readonly ClassProperty[] -} - export class TSTypeParameterInstantiation extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_INSTANTIATION) -- Gitee From 6bdf459687a7248cc150e5adf7458ebf4ab461c9 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 19 Feb 2025 14:45:35 +0300 Subject: [PATCH 09/12] id, ts tests Signed-off-by: naumovdmitrii --- arkoala-arkts/libarkts/.mocharc.json | 3 +- arkoala-arkts/libarkts/src/arkts-api/types.ts | 25 ++------ .../arkts-api/general/annotations.test.ts | 3 + arkoala-arkts/libarkts/test/test-util.ts | 57 ++----------------- .../create-function-declaration.test.ts | 2 +- .../update-function-declaration.test.ts | 2 +- .../lambda-param-memoization.test.ts | 2 +- .../test/ts-api/general/abc-gen.test.ts | 2 +- .../test/ts-api/general/basic.test.ts | 2 +- .../ts-api/variables/create-variable.test.ts | 2 +- .../memo-rewrite.test.ts | 2 +- 11 files changed, 22 insertions(+), 80 deletions(-) diff --git a/arkoala-arkts/libarkts/.mocharc.json b/arkoala-arkts/libarkts/.mocharc.json index 1799d0fb2c..62699a6cd9 100644 --- a/arkoala-arkts/libarkts/.mocharc.json +++ b/arkoala-arkts/libarkts/.mocharc.json @@ -1,7 +1,6 @@ { "ui": "tdd", - "spec": "./test/**/*.test.ts", - "exclude": "./test/ts-api/**/*", + "spec": "./test/arkts-api/**/*.test.ts", "extension": [ "ts" ], diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 3d46660131..d3770a007e 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -50,7 +50,7 @@ import { Context } from "./peers/Context" import * as path from "node:path" import { nodeByType } from "./class-by-peer" import { MemberExpression } from "./to-be-generated/MemberExpression" -import { AnnotationUsage } from "../generated" +import { AnnotationUsage, Expression } from "../generated" export class UnsupportedNode extends AstNode { constructor(peer: KPtr) { @@ -369,7 +369,7 @@ export class ETSFunctionType extends AstNode { } } -export class Identifier extends AstNode { +export class Identifier extends Expression { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER) super(peer) @@ -378,25 +378,10 @@ export class Identifier extends AstNode { static create( name: string, typeAnnotation?: AstNode, - isAnnotation?: boolean ): Identifier { - if (isAnnotation) { - return new Identifier( - global.es2panda._ETSParserCreateExpression( - global.context, - passString(name), - Es2pandaExpressionParseFlags.EXPRESSION_PARSE_FLAGS_ACCEPT_COMMA - ) - ) - } else if (typeAnnotation === undefined) { - return new Identifier( - global.es2panda._CreateIdentifier1(global.context, passString(name)) - ) - } else { - return new Identifier( - global.es2panda._CreateIdentifier2(global.context, passString(name), typeAnnotation.peer) - ) - } + return new Identifier( + global.es2panda._CreateIdentifier2(global.context, passString(name), passNode(typeAnnotation)) + ) } setOptional(optional: boolean): Identifier { diff --git a/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts b/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts index 1f1335b877..b4d4b3611c 100644 --- a/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts +++ b/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts @@ -19,6 +19,9 @@ suite(util.basename(__filename), () => { const annotations = arkts.getAnnotations(script.statements[0]) const names = annotations.map((annot) => { + if (annot.expr === undefined) { + throw new Error('annotation expression is undefined') + } if (!arkts.isIdentifier(annot.expr)) { throw new Error('annotation expected to be Identifier') } diff --git a/arkoala-arkts/libarkts/test/test-util.ts b/arkoala-arkts/libarkts/test/test-util.ts index 3d85b1ea1f..c065bbe359 100644 --- a/arkoala-arkts/libarkts/test/test-util.ts +++ b/arkoala-arkts/libarkts/test/test-util.ts @@ -14,7 +14,6 @@ */ import { global } from "../src/arkts-api/static/global" -import * as ts from "../src/ts-api" import * as arkts from "../src/arkts-api" import * as pth from "path" @@ -24,13 +23,6 @@ import { exec, execSync } from "child_process" export { Es2pandaNativeModule } from "../src/Es2pandaNativeModule" export { assert } from "chai" -class defaultTransformationContext implements ts.TransformationContext { -} - -export function getDefaultTransformationContext(): ts.TransformationContext { - return new defaultTransformationContext() -} - export function alignText(text: string): string { const lines = text.replace(/\t/gy, ' ').split('\n') @@ -63,19 +55,15 @@ export function assertEqualsSource(sourceResult: string, sourceExpect: string, m ) } -export function TS_TEST_ASSERTION(node: ts.SourceFile, source: string, state?: ts.ContextState) { - ARKTS_TEST_ASSERTION(node.node, source, state) -} - -export function ARKTS_TEST_ASSERTION(node: arkts.EtsScript, source: string, state?: ts.ContextState) { - const finalState: ts.ContextState = (() => { +export function ARKTS_TEST_ASSERTION(node: arkts.EtsScript, source: string, state?: arkts.Es2pandaContextState) { + const finalState: arkts.Es2pandaContextState = (() => { if (state !== undefined) { return state } if (process.env.STATE_CHECKED !== undefined) { - return ts.ContextState.ES2PANDA_STATE_CHECKED + return arkts.Es2pandaContextState.ES2PANDA_STATE_CHECKED } - return ts.ContextState.ES2PANDA_STATE_PARSED + return arkts.Es2pandaContextState.ES2PANDA_STATE_PARSED })() arkts.proceedToState(finalState) @@ -94,40 +82,7 @@ export function ARKTS_TEST_ASSERTION(node: arkts.EtsScript, source: string, stat } } -export function addMemoParamsToFunctionDeclaration(func: ts.FunctionDeclaration): ts.FunctionDeclaration { - return ts.factory.updateFunctionDeclaration( - func, - undefined, - undefined, - func.name, - undefined, - [ - ts.factory.createParameterDeclaration( - undefined, - undefined, - ts.factory.createIdentifier("__memo_context"), - undefined, - ts.factory.createTypeReferenceNode( - ts.factory.createIdentifier("__memo_context_type") - ), - undefined - ), - ts.factory.createParameterDeclaration( - undefined, - undefined, - ts.factory.createIdentifier("__memo_id"), - undefined, - ts.factory.createTypeReferenceNode( - ts.factory.createIdentifier("__memo_id_type") - ), - undefined - ), - ...func.parameters - ], - undefined, - func.body - ) -} + export function cleanGenerated(): void { exec('npm run clean:generated') @@ -142,7 +97,7 @@ export function fileToAbc(path: string, isModule?: boolean): void { } export function contextToAbc(): void { - arkts.proceedToState(ts.ContextState.ES2PANDA_STATE_BIN_GENERATED) + arkts.proceedToState(arkts.Es2pandaContextState.ES2PANDA_STATE_BIN_GENERATED) // TODO: get name of file execSync('mkdir -p ./generated') execSync('mv ./main.abc ./generated/main.abc') diff --git a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts index 0071bb8392..120ce49495 100644 --- a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts @@ -2,7 +2,7 @@ import * as util from "../../../test-util" import * as ts from "../../../../src/ts-api" import { factory } from "../../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("empty-function", function() { // function test_func() { // // empty diff --git a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts index 2c2229a8a5..ca2966d4d7 100644 --- a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts @@ -1,7 +1,7 @@ import * as util from "../../../test-util" import * as ts from "../../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { // adding y: string to signature test("update-name-and-add-param-to-function", function() { // function new_test_func(x: number, y: string) { diff --git a/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts b/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts index 470141df7d..bfad65152a 100644 --- a/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts @@ -1,7 +1,7 @@ import * as util from "../../../test-util" import * as ts from "../../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { // full memo rewrite test("memo-function-with-lambda-memo-param", function() { // function foo( diff --git a/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts b/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts index 05106f2a2d..00c60f8de5 100644 --- a/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" // tests for abc generation (now failing on CI) -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("updating-expression-statement", function() { const sample_in = ` diff --git a/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts b/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts index 62c53242fb..72f8253b94 100644 --- a/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" import { factory } from "../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("sample-1", function() { const sample_in = ` diff --git a/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts b/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts index 33a83fe9b7..66369eefa3 100644 --- a/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" import { factory } from "../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("const-number", function() { const sample_in = ` diff --git a/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts b/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts index 9bdc32742e..1ece5e82a4 100644 --- a/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" import { MemoTransformer } from "../../../plugins/src/memo-transformer" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("memo-transformer-sample-1", function() { const sample_in = ` -- Gitee From 8ad689873a8ee8ab0c462d484cbb397df8fe53a7 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 19 Feb 2025 14:58:23 +0300 Subject: [PATCH 10/12] fix unsupported Signed-off-by: naumovdmitrii --- .../libarkts/src/arkts-api/class-by-peer.ts | 4 ++-- .../libarkts/src/arkts-api/peers/AstNode.ts | 13 +++++++++++-- arkoala-arkts/libarkts/src/arkts-api/types.ts | 7 ------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts index 6d3f507995..fa2a83a5a7 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts @@ -17,7 +17,7 @@ import { Es2pandaAstNodeType } from "../Es2pandaEnums" import { throwError } from "../utils" import { global } from "./static/global" import { KNativePointer, nullptr } from "@koalaui/interop" -import type { AstNode } from "./peers/AstNode" +import { AstNode, UnsupportedNode } from "./peers/AstNode" export const nodeByType = new Map([]) @@ -26,6 +26,6 @@ export function classByPeer(peer: KNativePointer): T { throwError('classByPeer: peer is NULLPTR') } const type = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) - const node = nodeByType.get(type) ?? throwError(Es2pandaAstNodeType[type]) + const node = nodeByType.get(type) ?? UnsupportedNode return new node(peer) as T } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts index d615edcca2..2ba4dfb1e1 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts @@ -13,12 +13,13 @@ * limitations under the License. */ -import { isNullPtr, KInt, KNativePointer, nullptr } from "@koalaui/interop" +import { isNullPtr, KInt, KNativePointer as KPtr, KNativePointer, nullptr } from "@koalaui/interop" import { global } from "../static/global" -import { allFlags, unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private" +import { allFlags, nodeType, unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private" import { throwError } from "../../utils" import { Es2pandaModifierFlags } from "../../generated/Es2pandaEnums" import { ArktsObject } from "./ArktsObject" +import { Es2pandaAstNodeType } from "../../Es2pandaEnums" export abstract class AstNode extends ArktsObject { protected constructor(peer: KNativePointer) { @@ -110,3 +111,11 @@ export abstract class AstNode extends ArktsObject { global.generatedEs2panda._AstNodeAddModifier(global.context, this.peer, flags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE) } } + + +export class UnsupportedNode extends AstNode { + constructor(peer: KPtr) { + super(peer) + console.warn(`Warning: unsupported node ${Es2pandaAstNodeType[nodeType(this)]}`) + } +} diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index d3770a007e..e546bff6ec 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -52,13 +52,6 @@ import { nodeByType } from "./class-by-peer" import { MemberExpression } from "./to-be-generated/MemberExpression" import { AnnotationUsage, Expression } from "../generated" -export class UnsupportedNode extends AstNode { - constructor(peer: KPtr) { - super(peer) - console.warn(`Warning: unsupported node ${Es2pandaAstNodeType[nodeType(this)]}`) - } -} - export class EtsScript extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE) -- Gitee From 7160772e8dd3da5050bab3595a769779263e7ee0 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 19 Feb 2025 15:06:23 +0300 Subject: [PATCH 11/12] bump Signed-off-by: naumovdmitrii --- arkoala-arkts/libarkts/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index c635b15b27..fd2fb93260 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -11,7 +11,7 @@ "./build/*" ], "config": { - "gen_version": "3.0.18", + "gen_version": "3.0.19", "input_file": "../../incremental/tools/panda/node_modules/@panda/sdk/ohos_arm64/include/tools/es2panda/generated/es2panda_lib/es2panda_lib.idl" }, "dependencies": { -- Gitee From 2a129426946fb7a9f6d0e497d1e7d7f25182972f Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 19 Feb 2025 15:58:01 +0300 Subject: [PATCH 12/12] fix memo plugin Signed-off-by: naumovdmitrii --- .../memo-plugin/src/function-transformer.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/arkoala-arkts/memo-plugin/src/function-transformer.ts b/arkoala-arkts/memo-plugin/src/function-transformer.ts index 0c86fe39ae..b42df68bd2 100644 --- a/arkoala-arkts/memo-plugin/src/function-transformer.ts +++ b/arkoala-arkts/memo-plugin/src/function-transformer.ts @@ -15,11 +15,18 @@ import * as arkts from "@koalaui/libarkts" import { AbstractVisitor } from "./AbstractVisitor" -import { createContextParameter, createIdParameter, createContextArgument, createIdArgument, RuntimeNames, PositionalIdTracker } from "./utils" +import { + createContextArgument, + createContextParameter, + createIdArgument, + createIdParameter, + PositionalIdTracker, + RuntimeNames +} from "./utils" function hasMemoAnnotation(node: arkts.ScriptFunction) { return arkts.getAnnotations(node).some((it) => - arkts.isIdentifier(it.expr) && it.expr.name === RuntimeNames.ANNOTATION + it.expr !== undefined && arkts.isIdentifier(it.expr) && it.expr.name === RuntimeNames.ANNOTATION ) } @@ -34,7 +41,7 @@ function createHiddenArguments(hash: arkts.NumberLiteral | arkts.StringLiteral): function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.BlockStatement | undefined { if (node === undefined) return node - const scopeDeclaraion = arkts.factory.createVariableDeclaration( + const scopeDeclaration = arkts.factory.createVariableDeclaration( 0, arkts.Es2pandaVariableDeclarationKind.VARIABLE_DECLARATION_KIND_CONST, [ @@ -93,7 +100,7 @@ function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts. return arkts.factory.updateBlock( node, [ - scopeDeclaraion, + scopeDeclaration, unchangedCheck, ...node.statements, recache @@ -115,7 +122,7 @@ export class FunctionTransformer extends AbstractVisitor { if (node instanceof arkts.MethodDefinition) { if (methodDefinitionHasMemoAnnotation) { // TODO: fix - const updatedNode = arkts.factory.updateMethodDefinition( + return arkts.factory.updateMethodDefinition( node, 2, node.name, @@ -134,7 +141,6 @@ export class FunctionTransformer extends AbstractVisitor { node.modifiers, false ) - return updatedNode } } if (node instanceof arkts.CallExpression) { -- Gitee