From c8de674c46951008fe2a52ae7b76aefd6162a9c6 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 4 Feb 2025 18:14:42 +0300 Subject: [PATCH 1/7] fails member expr Signed-off-by: naumovdmitrii --- arkoala-arkts/libarkts/package.json | 1 + .../libarkts/plugins/src/AbstractVisitor.ts | 4 +- .../plugins/src/builder-lambda-transformer.ts | 6 +- .../plugins/src/component-transformer.ts | 5 +- .../libarkts/plugins/src/print-visitor.ts | 4 +- .../libarkts/src/arkts-api/class-by-peer.ts | 113 ++++++++ .../src/arkts-api/factory/nodeFactory.ts | 181 ++++++++----- .../src/arkts-api/factory/nodeTests.ts | 53 ++-- .../to-be-generated/MemberExpression.ts | 37 ++- arkoala-arkts/libarkts/src/arkts-api/types.ts | 252 +++++++++--------- .../src/arkts-api/utilities/private.ts | 107 ++------ .../src/arkts-api/utilities/public.ts | 36 +-- .../libarkts/src/arkts-api/visitor.ts | 68 +++-- arkoala-arkts/libarkts/src/es2panda.ts | 27 +- .../src/generated/peers/AnnotatedAstNode.ts | 28 -- .../generated/peers/AnnotatedExpression.ts | 28 -- .../src/generated/peers/AnnotatedStatement.ts | 28 -- .../generated/peers/AnnotationDeclaration.ts | 28 -- .../src/generated/peers/AnnotationUsage.ts | 28 -- .../src/generated/peers/ArrayExpression.ts | 28 -- .../peers/ArrowFunctionExpression.ts | 28 -- .../src/generated/peers/AssertStatement.ts | 28 -- .../generated/peers/AssignmentExpression.ts | 28 -- .../libarkts/src/generated/peers/AstNode.ts | 28 -- .../src/generated/peers/AwaitExpression.ts | 28 -- .../src/generated/peers/BigIntLiteral.ts | 28 -- .../src/generated/peers/BinaryExpression.ts | 28 -- .../src/generated/peers/BlockExpression.ts | 28 -- .../src/generated/peers/BlockStatement.ts | 28 -- .../src/generated/peers/BooleanLiteral.ts | 28 -- .../src/generated/peers/BreakStatement.ts | 28 -- .../src/generated/peers/CallExpression.ts | 28 -- .../src/generated/peers/CatchClause.ts | 28 -- .../src/generated/peers/ChainExpression.ts | 28 -- .../src/generated/peers/CharLiteral.ts | 28 -- .../src/generated/peers/ClassDeclaration.ts | 28 -- .../src/generated/peers/ClassDefinition.ts | 28 -- .../src/generated/peers/ClassElement.ts | 28 -- .../src/generated/peers/ClassExpression.ts | 28 -- .../src/generated/peers/ClassProperty.ts | 28 -- .../src/generated/peers/ClassStaticBlock.ts | 28 -- .../generated/peers/ConditionalExpression.ts | 28 -- .../src/generated/peers/ContinueStatement.ts | 28 -- .../src/generated/peers/DebuggerStatement.ts | 28 -- .../libarkts/src/generated/peers/Decorator.ts | 28 -- .../generated/peers/DirectEvalExpression.ts | 28 -- .../src/generated/peers/DoWhileStatement.ts | 28 -- .../src/generated/peers/ETSClassLiteral.ts | 28 -- .../src/generated/peers/ETSFunctionType.ts | 28 -- .../generated/peers/ETSImportDeclaration.ts | 28 -- .../generated/peers/ETSLaunchExpression.ts | 28 -- .../libarkts/src/generated/peers/ETSModule.ts | 28 -- .../peers/ETSNewArrayInstanceExpression.ts | 28 -- .../peers/ETSNewClassInstanceExpression.ts | 28 -- .../ETSNewMultiDimArrayInstanceExpression.ts | 28 -- .../src/generated/peers/ETSNullType.ts | 28 -- .../generated/peers/ETSPackageDeclaration.ts | 28 -- .../generated/peers/ETSParameterExpression.ts | 28 -- .../src/generated/peers/ETSPrimitiveType.ts | 28 -- .../generated/peers/ETSReExportDeclaration.ts | 28 -- .../generated/peers/ETSStructDeclaration.ts | 28 -- .../libarkts/src/generated/peers/ETSTuple.ts | 28 -- .../src/generated/peers/ETSTypeReference.ts | 28 -- .../generated/peers/ETSTypeReferencePart.ts | 28 -- .../src/generated/peers/ETSUndefinedType.ts | 28 -- .../src/generated/peers/ETSUnionType.ts | 28 -- .../src/generated/peers/ETSWildcardType.ts | 28 -- .../src/generated/peers/EmptyStatement.ts | 28 -- .../generated/peers/ExportAllDeclaration.ts | 28 -- .../peers/ExportDefaultDeclaration.ts | 28 -- .../generated/peers/ExportNamedDeclaration.ts | 28 -- .../src/generated/peers/ExportSpecifier.ts | 28 -- .../src/generated/peers/Expression.ts | 28 -- .../generated/peers/ExpressionStatement.ts | 28 -- .../src/generated/peers/ForInStatement.ts | 28 -- .../src/generated/peers/ForOfStatement.ts | 28 -- .../src/generated/peers/ForUpdateStatement.ts | 28 -- .../generated/peers/FunctionDeclaration.ts | 28 -- .../src/generated/peers/FunctionExpression.ts | 28 -- .../src/generated/peers/Identifier.ts | 28 -- .../src/generated/peers/IfStatement.ts | 28 -- .../src/generated/peers/ImportDeclaration.ts | 28 -- .../generated/peers/ImportDefaultSpecifier.ts | 28 -- .../src/generated/peers/ImportExpression.ts | 28 -- .../peers/ImportNamespaceSpecifier.ts | 28 -- .../src/generated/peers/ImportSpecifier.ts | 28 -- .../src/generated/peers/LabelledStatement.ts | 28 -- .../libarkts/src/generated/peers/Literal.ts | 28 -- .../src/generated/peers/LoopStatement.ts | 28 -- .../peers/MaybeOptionalExpression.ts | 28 -- .../src/generated/peers/MemberExpression.ts | 28 -- .../src/generated/peers/MetaProperty.ts | 28 -- .../src/generated/peers/MethodDefinition.ts | 28 -- .../libarkts/src/generated/peers/NamedType.ts | 28 -- .../src/generated/peers/NewExpression.ts | 28 -- .../src/generated/peers/NullLiteral.ts | 28 -- .../src/generated/peers/NumberLiteral.ts | 28 -- .../src/generated/peers/ObjectExpression.ts | 28 -- .../src/generated/peers/OmittedExpression.ts | 28 -- .../src/generated/peers/OpaqueTypeNode.ts | 28 -- .../peers/PrefixAssertionExpression.ts | 28 -- .../libarkts/src/generated/peers/Property.ts | 28 -- .../src/generated/peers/RegExpLiteral.ts | 28 -- .../src/generated/peers/ReturnStatement.ts | 28 -- .../src/generated/peers/ScriptFunction.ts | 28 -- .../src/generated/peers/SequenceExpression.ts | 28 -- .../src/generated/peers/SpreadElement.ts | 28 -- .../libarkts/src/generated/peers/Statement.ts | 28 -- .../src/generated/peers/StringLiteral.ts | 28 -- .../src/generated/peers/SuperExpression.ts | 28 -- .../generated/peers/SwitchCaseStatement.ts | 28 -- .../src/generated/peers/SwitchStatement.ts | 28 -- .../src/generated/peers/TSAnyKeyword.ts | 28 -- .../src/generated/peers/TSArrayType.ts | 28 -- .../src/generated/peers/TSAsExpression.ts | 28 -- .../src/generated/peers/TSBigintKeyword.ts | 28 -- .../src/generated/peers/TSBooleanKeyword.ts | 28 -- .../src/generated/peers/TSClassImplements.ts | 28 -- .../src/generated/peers/TSConditionalType.ts | 28 -- .../src/generated/peers/TSConstructorType.ts | 28 -- .../src/generated/peers/TSEnumDeclaration.ts | 28 -- .../src/generated/peers/TSEnumMember.ts | 28 -- .../peers/TSExternalModuleReference.ts | 28 -- .../src/generated/peers/TSFunctionType.ts | 28 -- .../peers/TSImportEqualsDeclaration.ts | 28 -- .../src/generated/peers/TSImportType.ts | 28 -- .../src/generated/peers/TSIndexSignature.ts | 28 -- .../generated/peers/TSIndexedAccessType.ts | 28 -- .../src/generated/peers/TSInferType.ts | 28 -- .../src/generated/peers/TSInterfaceBody.ts | 28 -- .../generated/peers/TSInterfaceDeclaration.ts | 28 -- .../generated/peers/TSInterfaceHeritage.ts | 28 -- .../src/generated/peers/TSIntersectionType.ts | 28 -- .../src/generated/peers/TSLiteralType.ts | 28 -- .../src/generated/peers/TSMappedType.ts | 28 -- .../src/generated/peers/TSMethodSignature.ts | 28 -- .../src/generated/peers/TSModuleBlock.ts | 28 -- .../generated/peers/TSModuleDeclaration.ts | 28 -- .../src/generated/peers/TSNamedTupleMember.ts | 28 -- .../src/generated/peers/TSNeverKeyword.ts | 28 -- .../generated/peers/TSNonNullExpression.ts | 28 -- .../src/generated/peers/TSNullKeyword.ts | 28 -- .../src/generated/peers/TSNumberKeyword.ts | 28 -- .../src/generated/peers/TSObjectKeyword.ts | 28 -- .../generated/peers/TSParameterProperty.ts | 28 -- .../generated/peers/TSParenthesizedType.ts | 28 -- .../generated/peers/TSPropertySignature.ts | 28 -- .../src/generated/peers/TSQualifiedName.ts | 28 -- .../generated/peers/TSSignatureDeclaration.ts | 28 -- .../src/generated/peers/TSStringKeyword.ts | 28 -- .../src/generated/peers/TSThisType.ts | 28 -- .../src/generated/peers/TSTupleType.ts | 28 -- .../generated/peers/TSTypeAliasDeclaration.ts | 28 -- .../src/generated/peers/TSTypeAssertion.ts | 28 -- .../src/generated/peers/TSTypeLiteral.ts | 28 -- .../src/generated/peers/TSTypeOperator.ts | 28 -- .../src/generated/peers/TSTypeParameter.ts | 28 -- .../peers/TSTypeParameterDeclaration.ts | 28 -- .../peers/TSTypeParameterInstantiation.ts | 28 -- .../src/generated/peers/TSTypePredicate.ts | 28 -- .../src/generated/peers/TSTypeQuery.ts | 28 -- .../src/generated/peers/TSTypeReference.ts | 28 -- .../src/generated/peers/TSUndefinedKeyword.ts | 28 -- .../src/generated/peers/TSUnionType.ts | 28 -- .../src/generated/peers/TSUnknownKeyword.ts | 28 -- .../src/generated/peers/TSVoidKeyword.ts | 28 -- .../peers/TaggedTemplateExpression.ts | 28 -- .../src/generated/peers/TemplateElement.ts | 28 -- .../src/generated/peers/TemplateLiteral.ts | 28 -- .../src/generated/peers/ThisExpression.ts | 28 -- .../src/generated/peers/ThrowStatement.ts | 28 -- .../src/generated/peers/TryStatement.ts | 28 -- .../libarkts/src/generated/peers/TypeNode.ts | 28 -- .../src/generated/peers/TypedAstNode.ts | 28 -- .../src/generated/peers/TypedStatement.ts | 28 -- .../src/generated/peers/TypeofExpression.ts | 28 -- .../src/generated/peers/UnaryExpression.ts | 28 -- .../src/generated/peers/UndefinedLiteral.ts | 28 -- .../src/generated/peers/UpdateExpression.ts | 28 -- .../generated/peers/VariableDeclaration.ts | 28 -- .../src/generated/peers/VariableDeclarator.ts | 28 -- .../src/generated/peers/WhileStatement.ts | 28 -- .../src/generated/peers/YieldExpression.ts | 28 -- .../libarkts/src/reexport-for-generated.ts | 6 +- .../libarkts/src/ts-api/factory/nodeTests.ts | 41 +-- arkoala-arkts/libarkts/src/ts-api/types.ts | 58 ++-- .../libarkts/src/ts-api/utilities/private.ts | 30 +-- .../libarkts/src/ts-api/utilities/public.ts | 22 +- .../libarkts/src/ts-api/visitor/visitor.ts | 16 +- 189 files changed, 609 insertions(+), 5190 deletions(-) create mode 100644 arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/AstNode.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/Decorator.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/Expression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/Identifier.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/Literal.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/NamedType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/Property.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/Statement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts delete mode 100644 arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index 321065a95..cd25984e6 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -11,6 +11,7 @@ "./build/*" ], "dependencies": { + "madge": "^8.0.0" }, "scripts": { "clean": "rimraf build native/build*", diff --git a/arkoala-arkts/libarkts/plugins/src/AbstractVisitor.ts b/arkoala-arkts/libarkts/plugins/src/AbstractVisitor.ts index 567edda05..09aa4a141 100644 --- a/arkoala-arkts/libarkts/plugins/src/AbstractVisitor.ts +++ b/arkoala-arkts/libarkts/plugins/src/AbstractVisitor.ts @@ -28,9 +28,9 @@ export abstract class AbstractVisitor { return result } - abstract visitor(node: ts.Node): ts.Node + abstract visitor(node: ts.AstNode): ts.AstNode - visitEachChild(node: ts.Node): ts.Node { + visitEachChild(node: ts.AstNode): ts.AstNode { return this.withIndentation(() => ts.visitEachChild( node, diff --git a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts index f4e8143dd..c2cc52f6b 100644 --- a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts @@ -18,7 +18,7 @@ import { AbstractVisitor } from "./AbstractVisitor"; const builderLambdaInstanceName = "instance" -function getLambdaArg(lambdaBody: arkts.Node): arkts.ArrowFunctionExpression { +function getLambdaArg(lambdaBody: arkts.AstNode): arkts.ArrowFunctionExpression { const body = arkts.factory.createBlock( [ arkts.factory.createReturnStatement( @@ -62,7 +62,7 @@ function getLambdaArg(lambdaBody: arkts.Node): arkts.ArrowFunctionExpression { } function builderLambdaFunctionName(node: arkts.CallExpression): undefined | string { - let decl: arkts.Node|undefined = undefined + let decl: arkts.AstNode|undefined = undefined if (arkts.isIdentifier(node.expression)) { decl = arkts.getDecl(node.expression) } else if (arkts.isMemberExpression(node.expression)) { @@ -134,7 +134,7 @@ function builderLambdaReplace(leaf: arkts.CallExpression): arkts.Identifier|arkt export class BuilderLambdaTransformer extends AbstractVisitor { - visitor(beforeChildren: arkts.Node): arkts.Node { + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { const node = this.visitEachChild(beforeChildren) if (!arkts.isCallExpression(node)) { diff --git a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts index c79727e2f..b8ca0dba6 100644 --- a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts @@ -13,6 +13,7 @@ * limitations under the License. */ +import { nullptr } from "@koalaui/interop"; import * as arkts from "@koalaui/libarkts" import { AbstractVisitor } from "./AbstractVisitor"; @@ -44,7 +45,7 @@ export class ComponentTransformer extends AbstractVisitor { name => arkts.factory.createInterfaceDeclaration( [], arkts.factory.createIdentifier(`__Options_${name}`), - arkts.nullptr, + nullptr, // TODO: wtf arkts.factory.createBlock([]), false, false @@ -101,7 +102,7 @@ export class ComponentTransformer extends AbstractVisitor { ) } - visitor(node: arkts.Node): arkts.Node { + visitor(node: arkts.AstNode): arkts.AstNode { const newNode = this.visitEachChild(node) if (arkts.isEtsScript(newNode)) { return this.processEtsScript(newNode) diff --git a/arkoala-arkts/libarkts/plugins/src/print-visitor.ts b/arkoala-arkts/libarkts/plugins/src/print-visitor.ts index 9f9baf9d7..50be42fc2 100644 --- a/arkoala-arkts/libarkts/plugins/src/print-visitor.ts +++ b/arkoala-arkts/libarkts/plugins/src/print-visitor.ts @@ -8,13 +8,13 @@ export class PrintVisitor extends AbstractVisitor { this.result += " ".repeat(4 * this.indentation) + s + '\n' } - visitor(node: ts.Node): ts.Node { + visitor(node: ts.AstNode): ts.AstNode { console.log(`${" ".repeat(4 * this.indentation) + node.constructor.name}`) this.print(`${node.constructor.name}`) return this.visitEachChild(node) } - astToString(node: ts.Node): string { + astToString(node: ts.AstNode): string { this.result = "" this.visitor(node) return this.result.trim() diff --git a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts new file mode 100644 index 000000000..363d76453 --- /dev/null +++ b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + AnnotationUsageIr, + ArrowFunctionExpression, + AssignmentExpression, + AstNode, + 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" + +export function classByPeer(peer: KNativePointer): AstNode { + const constructors = 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], + [Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, AnnotationUsageIr], + ]) + + if (peer === nullptr) { + throwError('classByPeer: peer is NULLPTR') + } + const type = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) + const constructor = constructors.get(type) + return constructor !== undefined + ? new constructor(peer) + : new UnsupportedNode(peer) +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts index 37ac26e13..aed751ff3 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts @@ -13,11 +13,46 @@ * limitations under the License. */ -import * as arkts from "../types" import { updateNodeByNode } from "../utilities/private" import { MemberExpression } from "../to-be-generated/MemberExpression" - -function compose( +import { + ArrowFunctionExpression, + AstNode, + BinaryExpression, + BlockStatement, + CallExpression, + ClassDeclaration, + ClassDefinition, + ETSFunctionType, + EtsImportDeclaration, + ETSParameterExpression, + ETSPrimitiveType, + EtsScript, + ETSTypeReference, + ETSTypeReferencePart, + ETSUnionType, + ExpressionStatement, + FunctionDeclaration, + FunctionExpression, + Identifier, + IfStatement, + ImportSpecifier, + MethodDefinition, + NumberLiteral, + ReturnStatement, + ScriptFunction, + StringLiteral, + StructDeclaration, + SuperExpression, + TSInterfaceDeclaration, + TSTypeParameter, + TSTypeParameterDeclaration, + TSTypeParameterInstantiation, + VariableDeclaration, + VariableDeclarator +} from "../types" + +function compose( create: (...args: ARGS) => T, update: (node: T, original: T) => T = updateNodeByNode ): (node: T, ...args: ARGS) => T { @@ -29,8 +64,8 @@ export const factory = { * @see TS_INTERFACE * @arg text: string */ - createIdentifier: arkts.Identifier.create, - updateIdentifier: compose(arkts.Identifier.create), + createIdentifier: Identifier.create, + updateIdentifier: compose(Identifier.create), /** * @see TS_INTERFACE @@ -38,108 +73,108 @@ export const factory = { * @arg typeArguments: readonly TypeNode[] | undefined, * @arg argumentsArray: readonly Expression[] | undefined, */ - createCallExpression: arkts.CallExpression.create, - updateCallExpression: compose(arkts.CallExpression.create), + createCallExpression: CallExpression.create, + updateCallExpression: compose(CallExpression.create), - createExpressionStatement: arkts.ExpressionStatement.create, - updateExpressionStatement: compose(arkts.ExpressionStatement.create), + createExpressionStatement: ExpressionStatement.create, + updateExpressionStatement: compose(ExpressionStatement.create), createMemberExpression: MemberExpression.create, updateMemberExpression: compose(MemberExpression.create), - createEtsScript: arkts.EtsScript.createFromSource, - updateEtsScript: arkts.EtsScript.updateByStatements, + createEtsScript: EtsScript.createFromSource, + updateEtsScript: EtsScript.updateByStatements, - createFunctionDeclaration: arkts.FunctionDeclaration.create, - updateFunctionDeclaration: compose(arkts.FunctionDeclaration.create), + createFunctionDeclaration: FunctionDeclaration.create, + updateFunctionDeclaration: compose(FunctionDeclaration.create), - createBlock: arkts.BlockStatement.create, - updateBlock: compose(arkts.BlockStatement.create), + createBlock: BlockStatement.create, + updateBlock: compose(BlockStatement.create), - createArrowFunction: arkts.ArrowFunctionExpression.create, - updateArrowFunction: compose(arkts.ArrowFunctionExpression.create), + createArrowFunction: ArrowFunctionExpression.create, + updateArrowFunction: compose(ArrowFunctionExpression.create), - createScriptFunction: arkts.ScriptFunction.create, - updateScriptFunction: compose(arkts.ScriptFunction.create), + createScriptFunction: ScriptFunction.create, + updateScriptFunction: compose(ScriptFunction.create), - createStringLiteral: arkts.StringLiteral.create, - updateStringLiteral: compose(arkts.StringLiteral.create), + createStringLiteral: StringLiteral.create, + updateStringLiteral: compose(StringLiteral.create), - createNumericLiteral: arkts.NumberLiteral.create, - updateNumericLiteral: compose(arkts.NumberLiteral.create), + createNumericLiteral: NumberLiteral.create, + updateNumericLiteral: compose(NumberLiteral.create), - createParameterDeclaration: arkts.ETSParameterExpression.create, - updateParameterDeclaration: compose(arkts.ETSParameterExpression.create), + createParameterDeclaration: ETSParameterExpression.create, + updateParameterDeclaration: compose(ETSParameterExpression.create), - createTypeParameter: arkts.TSTypeParameter.create, - updateTypeParameter: compose(arkts.TSTypeParameter.create), + createTypeParameter: TSTypeParameter.create, + updateTypeParameter: compose(TSTypeParameter.create), - createTypeParameterDeclaration: arkts.TSTypeParameterDeclaration.create, - updateTypeParameterDeclaration: compose(arkts.TSTypeParameterDeclaration.create), + createTypeParameterDeclaration: TSTypeParameterDeclaration.create, + updateTypeParameterDeclaration: compose(TSTypeParameterDeclaration.create), - createPrimitiveType: arkts.ETSPrimitiveType.create, - updatePrimitiveType: compose(arkts.ETSPrimitiveType.create), + createPrimitiveType: ETSPrimitiveType.create, + updatePrimitiveType: compose(ETSPrimitiveType.create), - createTypeReference: arkts.ETSTypeReference.create, - updateTypeReference: compose(arkts.ETSTypeReference.create), + createTypeReference: ETSTypeReference.create, + updateTypeReference: compose(ETSTypeReference.create), - createTypeReferenceFromId: arkts.ETSTypeReference.createFromId, - updateTypeReferenceFromId: compose(arkts.ETSTypeReference.createFromId), + createTypeReferenceFromId: ETSTypeReference.createFromId, + updateTypeReferenceFromId: compose(ETSTypeReference.createFromId), - createTypeReferencePart: arkts.ETSTypeReferencePart.create, - updateTypeReferencePart: compose(arkts.ETSTypeReferencePart.create), + createTypeReferencePart: ETSTypeReferencePart.create, + updateTypeReferencePart: compose(ETSTypeReferencePart.create), - createImportDeclaration: arkts.EtsImportDeclaration.create, - updateImportDeclaration: compose(arkts.EtsImportDeclaration.create), + createImportDeclaration: EtsImportDeclaration.create, + updateImportDeclaration: compose(EtsImportDeclaration.create), - createImportSpecifier: arkts.ImportSpecifier.create, - updateImportSpecifier: compose(arkts.ImportSpecifier.create), + createImportSpecifier: ImportSpecifier.create, + updateImportSpecifier: compose(ImportSpecifier.create), - // createImportSource: arkts.ImportSource.create, - // updateImportSource: compose(arkts.ImportSource.create), + // createImportSource: ImportSource.create, + // updateImportSource: compose(ImportSource.create), - createVariableDeclaration: arkts.VariableDeclaration.create, - updateVariableDeclaration: compose(arkts.VariableDeclaration.create), + createVariableDeclaration: VariableDeclaration.create, + updateVariableDeclaration: compose(VariableDeclaration.create), - createVariableDeclarator: arkts.VariableDeclarator.create, - updateVariableDeclarator: compose(arkts.VariableDeclarator.create), + createVariableDeclarator: VariableDeclarator.create, + updateVariableDeclarator: compose(VariableDeclarator.create), - createUnionType: arkts.ETSUnionType.create, - updateUnionType: compose(arkts.ETSUnionType.create), + createUnionType: ETSUnionType.create, + updateUnionType: compose(ETSUnionType.create), - createReturnStatement: arkts.ReturnStatement.create, - updateReturnStatement: compose(arkts.ReturnStatement.create), + createReturnStatement: ReturnStatement.create, + updateReturnStatement: compose(ReturnStatement.create), - createIfStatement: arkts.IfStatement.create, - updateIfStatement: compose(arkts.IfStatement.create), + createIfStatement: IfStatement.create, + updateIfStatement: compose(IfStatement.create), - createBinaryExpression: arkts.BinaryExpression.create, - updateBinaryExpression: compose(arkts.BinaryExpression.create), + createBinaryExpression: BinaryExpression.create, + updateBinaryExpression: compose(BinaryExpression.create), - createClassDeclaration: arkts.ClassDeclaration.create, - updateClassDeclaration: compose(arkts.ClassDeclaration.create), + createClassDeclaration: ClassDeclaration.create, + updateClassDeclaration: compose(ClassDeclaration.create), - createStructDeclaration: arkts.StructDeclaration.create, - updateStructDeclaration: compose(arkts.StructDeclaration.create), + createStructDeclaration: StructDeclaration.create, + updateStructDeclaration: compose(StructDeclaration.create), - createClassDefinition: arkts.ClassDefinition.create, - updateClassDefinition: compose(arkts.ClassDefinition.create), + createClassDefinition: ClassDefinition.create, + updateClassDefinition: compose(ClassDefinition.create), - createFunctionType: arkts.ETSFunctionType.create, - updateFunctionType: compose(arkts.ETSFunctionType.create), + createFunctionType: ETSFunctionType.create, + updateFunctionType: compose(ETSFunctionType.create), - createFunctionExpression: arkts.FunctionExpression.create, - updateFunctionExpression: compose(arkts.FunctionExpression.create), + createFunctionExpression: FunctionExpression.create, + updateFunctionExpression: compose(FunctionExpression.create), - createMethodDefinition: arkts.MethodDefinition.create, - updateMethodDefinition: compose(arkts.MethodDefinition.create), + createMethodDefinition: MethodDefinition.create, + updateMethodDefinition: compose(MethodDefinition.create), - createSuperExpression: arkts.SuperExpression.create, - updateSuperExpression: compose(arkts.SuperExpression.create), + createSuperExpression: SuperExpression.create, + updateSuperExpression: compose(SuperExpression.create), - createTSTypeParameterInstantiation: arkts.TSTypeParameterInstantiation.create, - updateTSTypeParameterInstantiation: compose(arkts.TSTypeParameterInstantiation.create), + createTSTypeParameterInstantiation: TSTypeParameterInstantiation.create, + updateTSTypeParameterInstantiation: compose(TSTypeParameterInstantiation.create), - createInterfaceDeclaration: arkts.TSInterfaceDeclaration.create, - updateInterfaceDeclaration: compose(arkts.TSInterfaceDeclaration.create), + createInterfaceDeclaration: TSInterfaceDeclaration.create, + updateInterfaceDeclaration: compose(TSInterfaceDeclaration.create), } diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts index 658cac286..cbdf8c603 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts @@ -1,87 +1,88 @@ import { MemberExpression } from "../to-be-generated/MemberExpression" import { - Node, - Identifier, + ArrowFunctionExpression, + AstNode, + BlockStatement, CallExpression, - FunctionDeclaration, - MethodDefinition, + ClassDeclaration, + ClassDefinition, + ETSParameterExpression, EtsScript, ExpressionStatement, - ArrowFunctionExpression, - ClassDeclaration, BlockStatement, + FunctionDeclaration, FunctionExpression, - ETSParameterExpression, - VariableDeclaration, + Identifier, + MethodDefinition, ScriptFunction, StringLiteral, - ClassDefinition, StructDeclaration, + VariableDeclaration, } from "../types" -export function isIdentifier(node: Node): node is Identifier { +export function isIdentifier(node: AstNode): node is Identifier { return node instanceof Identifier } -export function isCallExpression(node: Node): node is CallExpression { +export function isCallExpression(node: AstNode): node is CallExpression { return node instanceof CallExpression } -export function isMemberExpression(node: Node): node is MemberExpression { +export function isMemberExpression(node: AstNode): node is MemberExpression { return node instanceof MemberExpression } -export function isFunctionDeclaration(node: Node): node is FunctionDeclaration { +export function isFunctionDeclaration(node: AstNode): node is FunctionDeclaration { return node instanceof FunctionDeclaration } -export function isMethodDefinition(node: Node): node is MethodDefinition { +export function isMethodDefinition(node: AstNode): node is MethodDefinition { return node instanceof MethodDefinition } -export function isEtsScript(node: Node): node is EtsScript { +export function isEtsScript(node: AstNode): node is EtsScript { return node instanceof EtsScript } -export function isExpressionStatement(node: Node): node is ExpressionStatement { +export function isExpressionStatement(node: AstNode): node is ExpressionStatement { return node instanceof ExpressionStatement } -export function isArrowFunctionExpression(node: Node): node is ArrowFunctionExpression { +export function isArrowFunctionExpression(node: AstNode): node is ArrowFunctionExpression { return node instanceof ArrowFunctionExpression } -export function isClassDeclaration(node: Node): node is ClassDeclaration { +export function isClassDeclaration(node: AstNode): node is ClassDeclaration { return node instanceof ClassDeclaration } -export function isStructDeclaration(node: Node): node is StructDeclaration { +export function isStructDeclaration(node: AstNode): node is StructDeclaration { return node instanceof StructDeclaration } -export function isBlockStatement(node: Node): node is BlockStatement { +export function isBlockStatement(node: AstNode): node is BlockStatement { return node instanceof BlockStatement } -export function isFunctionExpression(node: Node): node is FunctionExpression { +export function isFunctionExpression(node: AstNode): node is FunctionExpression { return node instanceof FunctionExpression } -export function isEtsParameterExpression(node: Node): node is ETSParameterExpression { +export function isEtsParameterExpression(node: AstNode): node is ETSParameterExpression { return node instanceof ETSParameterExpression } -export function isVariableDeclaration(node: Node): node is VariableDeclaration { +export function isVariableDeclaration(node: AstNode): node is VariableDeclaration { return node instanceof VariableDeclaration } -export function isScriptFunction(node: Node): node is ScriptFunction { +export function isScriptFunction(node: AstNode): node is ScriptFunction { return node instanceof ScriptFunction } -export function isStringLiteral(node: Node): node is StringLiteral { +export function isStringLiteral(node: AstNode): node is StringLiteral { return node instanceof StringLiteral } -export function isClassDefinition(node: Node): node is ClassDefinition { +export function isClassDefinition(node: AstNode): node is ClassDefinition { return node instanceof ClassDefinition } 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 a264572bb..6aeae4ba2 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 @@ -1,19 +1,34 @@ -import { KNativePointer as KPtr } from "@koalaui/interop" -import { Es2pandaAstNodeType } from "../../Es2pandaEnums" -import { assertValidPeer, Node } from "../types" -import { passNode, unpackNonNullableNode } from "../utilities/private" +/* + * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import global from "../static/global" +import { assertValidPeer, AstNode } from "../types" import { Es2pandaMemberExpressionKind } from "../../generated/Es2pandaEnums" +import { passNode, unpackNonNullableNode } from "../utilities/private" +import { KNativePointer } from "@koalaui/interop" +import { Es2pandaAstNodeType } from "../../Es2pandaEnums" -export class MemberExpression extends Node { - constructor(peer: KPtr) { +export class MemberExpression extends AstNode { + constructor(peer: KNativePointer) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION) super(peer) } static create( - object: Node, - property: Node, + object: AstNode, + property: AstNode, kind: Es2pandaMemberExpressionKind, computed: boolean, optional: boolean @@ -34,12 +49,14 @@ export class MemberExpression extends Node { return ` ` } - get object(): Node { + get object(): AstNode { return unpackNonNullableNode(global.generatedEs2panda._MemberExpressionObject(global.context, this.peer)) } - get property(): Node { + + get property(): AstNode { return unpackNonNullableNode(global.generatedEs2panda._MemberExpressionProperty(global.context, this.peer)) } + get kind(): Es2pandaMemberExpressionKind { return global.generatedEs2panda._MemberExpressionKindConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 1af2373d7..0548c64a1 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -15,39 +15,35 @@ import global from "./static/global" import { throwError } from "../utils" - -import { KBoolean, KInt, KNativePointer as KPtr, isNullPtr, nullptr } from "@koalaui/interop" +import { isNullPtr, KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/interop" import { - Es2pandaPrimitiveType, + Es2pandaContextState, + Es2pandaIdentifierFlags, + Es2pandaImportKinds, + Es2pandaMethodDefinitionKind, Es2pandaModifierFlags, + Es2pandaPrimitiveType, Es2pandaScriptFunctionFlags, - Es2pandaAstNodeType, - Es2pandaContextState, Es2pandaTokenType, - Es2pandaMethodDefinitionKind, Es2pandaVariableDeclarationKind, Es2pandaVariableDeclaratorFlag, - Es2pandaImportKinds, - Es2pandaMemberExpressionKind, - Es2pandaIdentifierFlags, -} from "." +} from "../generated/Es2pandaEnums" import { - unpackNonNullableNode, - unpackNode, passNode, - unpackNodeArray, passNodeArray, passString, - unpackString, passStringArray, - updatePeerByNode, resolveSource, + unpackNode, + unpackNodeArray, + unpackNonNullableNode, + unpackString, + updatePeerByNode, } from "./utilities/private" -import { - proceedToState, -} from "./utilities/public" +import { proceedToState } from "./utilities/public" +import { Es2pandaAstNodeType } from "../Es2pandaEnums" +import { KNativePointer } from "@idlizer/arkgen/tests/mini_skoala/build/utils" -export { nullptr } export const arrayOfNullptr = new BigUint64Array([nullptr]) export const allFlags: KInt = @@ -69,15 +65,15 @@ export function assertValidPeer(peer: KPtr, expectedKind: Es2pandaAstNodeType): } export abstract class ArktsObject { - protected constructor(peer: KPtr) { + protected constructor(peer: KNativePointer) { this.peer = peer } - readonly peer: KPtr + readonly peer: KNativePointer } -export abstract class Node extends ArktsObject { - protected constructor(peer: KPtr) { +export abstract class AstNode extends ArktsObject { + protected constructor(peer: KNativePointer) { if (isNullPtr(peer)) { throw new Error('trying to create new Node on NULLPTR') } @@ -88,21 +84,21 @@ export abstract class Node extends ArktsObject { readonly type: Es2pandaAstNodeType - public get originalPeer(): KPtr { + public get originalPeer(): KNativePointer { return global.generatedEs2panda._AstNodeOriginalNodeConst(global.context, this.peer) } - public set originalPeer(peer: KPtr) { + public set originalPeer(peer: KNativePointer) { global.generatedEs2panda._AstNodeSetOriginalNode(global.context, this.peer, peer) } - public getChildren(): readonly Node[] { + public getChildren(): readonly AstNode[] { return unpackNodeArray(global.es2panda._AstNodeChildren(global.context, this.peer)) } - public getSubtree(): readonly Node[] { + public getSubtree(): readonly AstNode[] { return this.getChildren().reduce( - (prev: readonly Node[], curr: Node): readonly Node[] => { + (prev: readonly AstNode[], curr: AstNode): readonly AstNode[] => { return prev.concat(curr.getSubtree()) }, [this] @@ -149,7 +145,7 @@ export abstract class Node extends ArktsObject { return unpackString(global.es2panda._AstNodeDumpModifiers(global.context, this.peer)) } - public get parent(): Node { + public get parent(): AstNode { const _parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer) if (_parent === nullptr) { throwError('BAD ACCESS: PARENT IS NULLPTR') @@ -157,7 +153,7 @@ export abstract class Node extends ArktsObject { return unpackNonNullableNode(_parent) } - public set parent(node: Node) { + public set parent(node: AstNode) { global.generatedEs2panda._AstNodeSetParent(global.context, this.peer, node.peer) } @@ -171,7 +167,7 @@ export abstract class Node extends ArktsObject { } } -export class UnsupportedNode extends Node { +export class UnsupportedNode extends AstNode { constructor(peer: KPtr) { super(peer) console.log(`WARNING: UNSUPPORTED NODE (arkts): ${Es2pandaAstNodeType[this.type]}`) @@ -235,7 +231,7 @@ export class Context extends ArktsObject { } } -export class EtsScript extends Node { +export class EtsScript extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE) super(peer) @@ -271,22 +267,22 @@ export class EtsScript extends Node { */ static updateByStatements( node: EtsScript, - statements: readonly Node[], + statements: readonly AstNode[], ): EtsScript { global.generatedEs2panda._BlockStatementSetStatements(global.context, node.peer, passNodeArray(statements), statements.length) return node } - get statements(): readonly Node[] { + get statements(): readonly AstNode[] { return unpackNodeArray(global.generatedEs2panda._BlockStatementStatements(global.context, this.peer)) } - set statements(nodes: readonly Node[]) { + set statements(nodes: readonly AstNode[]) { global.generatedEs2panda._BlockStatementSetStatements(global.context, this.peer, passNodeArray(nodes), nodes.length) } } -export class ExpressionStatement extends Node { +export class ExpressionStatement extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_EXPRESSION_STATEMENT) super(peer) @@ -294,7 +290,7 @@ export class ExpressionStatement extends Node { } static create( - expression: Node, + expression: AstNode, ): ExpressionStatement { return new ExpressionStatement( global.generatedEs2panda._CreateExpressionStatement( @@ -304,10 +300,10 @@ export class ExpressionStatement extends Node { ) } - readonly expression: Node + readonly expression: AstNode } -export class CallExpression extends Node { +export class CallExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION) super(peer) @@ -316,9 +312,9 @@ export class CallExpression extends Node { } static create( - expression: Node, + expression: AstNode, typeParamsDecl: TSTypeParameterDeclaration | undefined, - args: readonly Node[] | undefined + args: readonly AstNode[] | undefined ): CallExpression { return new CallExpression( global.generatedEs2panda._CreateCallExpression( @@ -333,20 +329,20 @@ export class CallExpression extends Node { ) } - readonly expression: Node // Expression - readonly arguments: readonly Node[] + readonly expression: AstNode // Expression + readonly arguments: readonly AstNode[] } -export class AssignmentExpression extends Node { +export class AssignmentExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION) super(peer) } static create( - left: Node, + left: AstNode, assignmentOperator: Es2pandaTokenType, - right: Node + right: AstNode ): AssignmentExpression { return new AssignmentExpression( global.generatedEs2panda._CreateAssignmentExpression( @@ -359,16 +355,16 @@ export class AssignmentExpression extends Node { } } -export class BinaryExpression extends Node { +export class BinaryExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION) super(peer) } static create( - left: Node, + left: AstNode, operatorType: Es2pandaTokenType, - right: Node + right: AstNode ): BinaryExpression { return new BinaryExpression( global.generatedEs2panda._CreateBinaryExpression( @@ -381,7 +377,7 @@ export class BinaryExpression extends Node { } } -export class ETSPrimitiveType extends Node { +export class ETSPrimitiveType extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PRIMITIVE_TYPE) super(peer) @@ -406,7 +402,7 @@ export class ETSPrimitiveType extends Node { readonly primitiveType: Es2pandaPrimitiveType } -export class ETSTypeReference extends Node { +export class ETSTypeReference extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE) super(peer) @@ -439,7 +435,7 @@ export class ETSTypeReference extends Node { // readonly typeRefPart: TypeReferencePart } -export class ETSTypeReferencePart extends Node { +export class ETSTypeReferencePart extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE_PART) super(peer) @@ -448,7 +444,7 @@ export class ETSTypeReferencePart extends Node { // TODO: support type params and prev static create( typeName: Identifier, - typeParamsDecl?: Node, + typeParamsDecl?: AstNode, ) { // typeName.setReference(true) // TODO: support type params and prev @@ -465,7 +461,7 @@ export class ETSTypeReferencePart extends Node { // readonly typeName: Identifier } -export class TSUnionType extends Node { +export class TSUnionType extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_TS_UNION_TYPE) super(peer) @@ -474,7 +470,7 @@ export class TSUnionType extends Node { static create( node: undefined | TSUnionType, - types: Node[], + types: AstNode[], ): TSUnionType { return new TSUnionType( updatePeerByNode( @@ -488,10 +484,10 @@ export class TSUnionType extends Node { ) } - readonly types: readonly Node[] + readonly types: readonly AstNode[] } -export class ETSUnionType extends Node { +export class ETSUnionType extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNION_TYPE) super(peer) @@ -499,7 +495,7 @@ export class ETSUnionType extends Node { } static create( - types: Node[], + types: AstNode[], ): ETSUnionType { return new ETSUnionType( global.es2panda._CreateETSUnionTypeIr( @@ -510,10 +506,10 @@ export class ETSUnionType extends Node { ) } - readonly types: readonly Node[] + readonly types: readonly AstNode[] } -export class ETSFunctionType extends Node { +export class ETSFunctionType extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_FUNCTION_TYPE) super(peer) @@ -533,7 +529,7 @@ export class ETSFunctionType extends Node { } } -export class Identifier extends Node { +export class Identifier extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER) super(peer) @@ -541,7 +537,7 @@ export class Identifier extends Node { static create( name: string, - typeAnnotation?: Node + typeAnnotation?: AstNode ): Identifier { if (typeAnnotation === undefined) { return new Identifier( @@ -575,7 +571,7 @@ export class Identifier extends Node { } } -export class StringLiteral extends Node { +export class StringLiteral extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_STRING_LITERAL) super(peer) @@ -600,7 +596,7 @@ export class StringLiteral extends Node { readonly str: string } -export class NumberLiteral extends Node { +export class NumberLiteral extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL) super(peer) @@ -639,8 +635,8 @@ export class FunctionSignature extends ArktsObject { static create( typeParamsDecl: TSTypeParameterDeclaration | undefined, - params: readonly Node[], - returnTypeAnnotation: Node | undefined, + params: readonly AstNode[], + returnTypeAnnotation: AstNode | undefined, ): FunctionSignature { return new FunctionSignature( global.es2panda._CreateFunctionSignature( @@ -655,11 +651,11 @@ export class FunctionSignature extends ArktsObject { } // readonly typeParamsDecl?: TSTypeParameterDeclaration - // readonly parameters: readonly Node[] - // readonly returnTypeAnnotation?: Node + // readonly parameters: readonly AstNode[] + // readonly returnTypeAnnotation?: AstNode } -export class ScriptFunction extends Node { +export class ScriptFunction extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION) super(peer) @@ -674,7 +670,7 @@ export class ScriptFunction extends Node { } static create( - body: Node | undefined, + body: AstNode | undefined, signature: FunctionSignature, functionFlags: Es2pandaScriptFunctionFlags, modifierFlags: Es2pandaModifierFlags, @@ -719,7 +715,7 @@ export class ScriptFunction extends Node { let hasReturn: boolean = false // TODO: goes through whole subtree, optimizable (unnecessary now) this.body.getSubtree().forEach( - (node: Node) => { + (node: AstNode) => { hasReturn = hasReturn || (node.type === Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT) } ) @@ -738,7 +734,7 @@ export class ScriptFunction extends Node { readonly ident?: Identifier } -export class ArrowFunctionExpression extends Node { +export class ArrowFunctionExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION) super(peer) @@ -759,7 +755,7 @@ export class ArrowFunctionExpression extends Node { readonly scriptFunction: ScriptFunction } -export class FunctionDeclaration extends Node { +export class FunctionDeclaration extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION) super(peer) @@ -792,15 +788,15 @@ export class FunctionDeclaration extends Node { } readonly scriptFunction: ScriptFunction - readonly parameters: readonly Node[] + readonly parameters: readonly AstNode[] readonly name?: Identifier readonly body?: BlockStatement readonly typeParamsDecl?: TSTypeParameterDeclaration - readonly returnType?: Node + readonly returnType?: AstNode readonly isAnon: boolean } -export class FunctionExpression extends Node { +export class FunctionExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION) super(peer) @@ -821,7 +817,7 @@ export class FunctionExpression extends Node { readonly scriptFunction: ScriptFunction } -export class BlockStatement extends Node { +export class BlockStatement extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT) super(peer) @@ -829,7 +825,7 @@ export class BlockStatement extends Node { } static create( - statements: readonly Node[], + statements: readonly AstNode[], ): BlockStatement { return new BlockStatement( global.generatedEs2panda._CreateBlockStatement( @@ -840,10 +836,10 @@ export class BlockStatement extends Node { ) } - readonly statements: readonly Node[] + readonly statements: readonly AstNode[] } -export class ETSParameterExpression extends Node { +export class ETSParameterExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PARAMETER_EXPRESSION) super(peer) @@ -851,7 +847,7 @@ export class ETSParameterExpression extends Node { static create( identifier: Identifier, - initializer: Node | undefined + initializer: AstNode | undefined ): ETSParameterExpression { return new ETSParameterExpression( global.generatedEs2panda._CreateETSParameterExpression( @@ -863,7 +859,7 @@ export class ETSParameterExpression extends Node { } } -export class TSTypeParameterDeclaration extends Node { +export class TSTypeParameterDeclaration extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION) super(peer) @@ -872,7 +868,7 @@ export class TSTypeParameterDeclaration extends Node { // TODO: think about valid type of parameters static create( - parameters: Node[], + parameters: AstNode[], ): TSTypeParameterDeclaration { return new TSTypeParameterDeclaration( global.generatedEs2panda._CreateTSTypeParameterDeclaration( @@ -888,7 +884,7 @@ export class TSTypeParameterDeclaration extends Node { readonly parameters: readonly TSTypeParameter[] } -export class TSTypeParameter extends Node { +export class TSTypeParameter extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER) super(peer) @@ -897,8 +893,8 @@ export class TSTypeParameter extends Node { static create( name: Identifier, - constraint: Node | undefined, - defaultType: Node | undefined, + constraint: AstNode | undefined, + defaultType: AstNode | undefined, modifierFlags: KInt, ): TSTypeParameter { const peer = global.generatedEs2panda._CreateTSTypeParameter( @@ -917,7 +913,7 @@ export class TSTypeParameter extends Node { readonly name: Identifier } -export class ReturnStatement extends Node { +export class ReturnStatement extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT) super(peer) @@ -927,7 +923,7 @@ export class ReturnStatement extends Node { } static create( - argument: Node, + argument: AstNode, ): ReturnStatement { return new ReturnStatement( global.es2panda._CreateReturnStatement1( @@ -937,19 +933,19 @@ export class ReturnStatement extends Node { ) } - readonly argument: Node | undefined + readonly argument: AstNode | undefined } -export class IfStatement extends Node { +export class IfStatement extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT) super(peer) } static create( - test: Node, - consequent: Node, - alternate?: Node + test: AstNode, + consequent: AstNode, + alternate?: AstNode ): IfStatement { return new IfStatement( global.generatedEs2panda._CreateIfStatement( @@ -962,7 +958,7 @@ export class IfStatement extends Node { } } -export class StructDeclaration extends Node { +export class StructDeclaration extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_STRUCT_DECLARATION) super(peer) @@ -985,7 +981,7 @@ export class StructDeclaration extends Node { } -export class ClassDeclaration extends Node { +export class ClassDeclaration extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION) super(peer) @@ -1006,7 +1002,7 @@ export class ClassDeclaration extends Node { readonly definition: ClassDefinition } -export class ClassDefinition extends Node { +export class ClassDefinition extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION) super(peer) @@ -1018,11 +1014,11 @@ export class ClassDefinition extends Node { static create( name: Identifier | undefined, - members: readonly Node[], + members: readonly AstNode[], modifiers: KInt, classFlags: KInt, typeParamsDecl: TSTypeParameterDeclaration | undefined, - superClass?: Node, + superClass?: AstNode, ): ClassDefinition { const peer = global.es2panda._CreateClassDefinition1( global.context, @@ -1040,12 +1036,12 @@ export class ClassDefinition extends Node { } readonly name: Identifier - readonly members: readonly Node[] + readonly members: readonly AstNode[] readonly typeParamsDecl?: TSTypeParameterDeclaration - readonly superClass?: Node + readonly superClass?: AstNode } -export class ClassStaticBlock extends Node { +export class ClassStaticBlock extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK) super(peer) @@ -1053,7 +1049,7 @@ export class ClassStaticBlock extends Node { // TODO: // static create( - // value: Node + // value: AstNode // ): ClassStaticBlock { // return new ClassStaticBlock( // nativeModule._CreateClassStaticBlock( @@ -1064,7 +1060,7 @@ export class ClassStaticBlock extends Node { // } } -export class MethodDefinition extends Node { +export class MethodDefinition extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION) super(peer) @@ -1074,8 +1070,8 @@ export class MethodDefinition extends Node { static create( kind: Es2pandaMethodDefinitionKind, - key: Node, - value: Node, + key: AstNode, + value: AstNode, modifiers: KInt, isComputed: boolean ): MethodDefinition { @@ -1095,15 +1091,15 @@ export class MethodDefinition extends Node { readonly name: Identifier } -export class ClassElement extends Node { +export class ClassElement extends AstNode { constructor(peer: KPtr) { super(peer) this.key = unpackNonNullableNode(global.generatedEs2panda._ClassElementKey(global.context, this.peer)) this.value = unpackNode(global.generatedEs2panda._ClassElementValue(global.context, this.peer)) } - readonly key: Node - readonly value?: Node + readonly key: AstNode + readonly value?: AstNode } export class ClassProperty extends ClassElement { @@ -1113,9 +1109,9 @@ export class ClassProperty extends ClassElement { } static create( - key: Node, - value: Node, - typeAnnotation: Node, + key: AstNode, + value: AstNode, + typeAnnotation: AstNode, modifiers: KInt, isComputed: boolean ): ClassProperty { @@ -1132,7 +1128,7 @@ export class ClassProperty extends ClassElement { } } -export class VariableDeclaration extends Node { +export class VariableDeclaration extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATION) super(peer) @@ -1160,7 +1156,7 @@ export class VariableDeclaration extends Node { readonly declarators: readonly VariableDeclarator[] } -export class VariableDeclarator extends Node { +export class VariableDeclarator extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATOR) super(peer) @@ -1170,7 +1166,7 @@ export class VariableDeclarator extends Node { static create( flag: Es2pandaVariableDeclaratorFlag, name: Identifier, - initializer: Node | undefined + initializer: AstNode | undefined ): VariableDeclarator { const peer = global.generatedEs2panda._CreateVariableDeclarator( global.context, @@ -1186,14 +1182,14 @@ export class VariableDeclarator extends Node { readonly name: Identifier } -export class ETSUndefinedType extends Node { +export class ETSUndefinedType extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNDEFINED_TYPE) super(peer) } } -export class SuperExpression extends Node { +export class SuperExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION) super(peer) @@ -1229,7 +1225,7 @@ export class ImportSource extends ArktsObject { } } -export class EtsImportDeclaration extends Node { +export class EtsImportDeclaration extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION) super(peer) @@ -1263,7 +1259,7 @@ export class EtsImportDeclaration extends Node { readonly hasDecl: boolean } -export class ImportSpecifier extends Node { +export class ImportSpecifier extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_IMPORT_SPECIFIER) super(peer) @@ -1283,7 +1279,7 @@ export class ImportSpecifier extends Node { } } -export class AnnotationUsageIr extends Node { +export class AnnotationUsageIr extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE) super(peer) @@ -1294,18 +1290,18 @@ export class AnnotationUsageIr extends Node { // TODO: // static create - readonly expr: Node + readonly expr: AstNode readonly properties: readonly ClassProperty[] } -export class TSTypeParameterInstantiation extends Node { +export class TSTypeParameterInstantiation extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_INSTANTIATION) super(peer) } static create( - parameters: readonly Node[], + parameters: readonly AstNode[], ): TSTypeParameterInstantiation { return new TSTypeParameterInstantiation( global.generatedEs2panda._CreateTSTypeParameterInstantiation( @@ -1317,17 +1313,17 @@ export class TSTypeParameterInstantiation extends Node { } } -export class TSInterfaceDeclaration extends Node { +export class TSInterfaceDeclaration extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_DECLARATION) super(peer) } static create( - extendsParams: readonly Node[], - id: Node, - typeParams: Node, - body: Node, + extendsParams: readonly AstNode[], + id: AstNode, + typeParams: AstNode, + body: AstNode, isStatic: KBoolean, isExternal: KBoolean, ): TSInterfaceDeclaration { @@ -1346,7 +1342,7 @@ export class TSInterfaceDeclaration extends Node { } } -export class UndefinedLiteral extends Node { +export class UndefinedLiteral extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL) 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 aec2954fa..a7ef7d2eb 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts @@ -13,90 +13,37 @@ * limitations under the License. */ -import * as arkts from ".." import global from "../static/global" import { throwError } from "../../utils" -import { KNativePointer, withString, withStringResult, withStringArray, KInt } from "@koalaui/interop" +import { KInt, KNativePointer, nullptr, withString, withStringArray, withStringResult } from "@koalaui/interop" import { NativePtrDecoder } from "./nativePtrDecoder" -import { - Es2pandaAstNodeType, - Es2pandaScriptFunctionFlags, -} from ".." import * as path from "node:path" +import { allFlags, ArktsObject, AstNode, StringLiteral } from "../types" +import { Es2pandaScriptFunctionFlags } from "../../generated/Es2pandaEnums" +import { factory } from "../factory/nodeFactory" +import { classByPeer } from "../class-by-peer" -export function classByPeer(peer: KNativePointer): arkts.Node { - const constructors = new Map([ - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE, arkts.EtsScript], - [Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER, arkts.Identifier], - [Es2pandaAstNodeType.AST_NODE_TYPE_STRING_LITERAL, arkts.StringLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL, arkts.NumberLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_EXPRESSION_STATEMENT, arkts.ExpressionStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION, arkts.FunctionDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION, arkts.ScriptFunction], - [Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT, arkts.BlockStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT, arkts.ReturnStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PARAMETER_EXPRESSION, arkts.ETSParameterExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE, arkts.ETSTypeReference], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE_PART, arkts.ETSTypeReferencePart], - [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION, arkts.TSTypeParameterDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PRIMITIVE_TYPE, arkts.ETSPrimitiveType], - [Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION, arkts.CallExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION, arkts.MemberExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER, arkts.TSTypeParameter], - [Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT, arkts.IfStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION, arkts.BinaryExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNION_TYPE, arkts.ETSUnionType], - [Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION, arkts.ArrowFunctionExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_STRUCT_DECLARATION, arkts.StructDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION, arkts.ClassDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION, arkts.ClassDefinition], - [Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION, arkts.MethodDefinition], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY, arkts.ClassProperty], - [Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, arkts.AssignmentExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATION, arkts.VariableDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATOR, arkts.VariableDeclarator], - [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION, arkts.FunctionExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_FUNCTION_TYPE, arkts.ETSFunctionType], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK, arkts.ClassStaticBlock], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNDEFINED_TYPE, arkts.ETSUndefinedType], - [Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL, arkts.UndefinedLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION, arkts.SuperExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION, arkts.EtsImportDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_IMPORT_SPECIFIER, arkts.ImportSpecifier], - [Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, arkts.AnnotationUsageIr], - ]) - - if (peer === arkts.nullptr) { - throwError('classByPeer: peer is NULLPTR') - } - const type = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) - const constructor = constructors.get(type) - return constructor !== undefined - ? new constructor(peer) - : new arkts.UnsupportedNode(peer) -} - -export function unpackNonNullableNode(peer: KNativePointer): T { - if (peer === arkts.nullptr) { +export function unpackNonNullableNode(peer: KNativePointer): T { + if (peer === nullptr) { throwError('peer is NULLPTR (maybe you should use unpackNode)') } return classByPeer(peer) as T } -export function unpackNode(peer: KNativePointer): T | undefined { - if (peer === arkts.nullptr) { +export function unpackNode(peer: KNativePointer): T | undefined { + if (peer === nullptr) { return undefined } return classByPeer(peer) as T } -export function passNode(node: arkts.Node | undefined): KNativePointer { - return node?.peer ?? arkts.nullptr +export function passNode(node: AstNode | undefined): KNativePointer { + return node?.peer ?? nullptr } // meaning unpackNonNullableNodeArray -export function unpackNodeArray(nodesPtr: KNativePointer): readonly T[] { - if (nodesPtr === arkts.nullptr) { +export function unpackNodeArray(nodesPtr: KNativePointer): readonly T[] { + if (nodesPtr === nullptr) { throwError('nodesPtr is NULLPTR (maybe you should use unpackNodeArray)') } return (new NativePtrDecoder()) @@ -104,21 +51,21 @@ export function unpackNodeArray(nodesPtr: KNativePointer): .map((peer: KNativePointer) => unpackNonNullableNode(peer)) } -export function passNodeArray(nodes: readonly arkts.Node[] | undefined): BigUint64Array { +export function passNodeArray(nodes: readonly AstNode[] | undefined): BigUint64Array { return new BigUint64Array( nodes?.map(node => BigInt(node.peer)) ?? [] ) } -export function unpackNonNullableObject(type: { new (peer: KNativePointer): T }, peer: KNativePointer): T { - if (peer === arkts.nullptr) { +export function unpackNonNullableObject(type: { new (peer: KNativePointer): T }, peer: KNativePointer): T { + if (peer === nullptr) { throwError('peer is NULLPTR (maybe you should use unpackObject)') } return new type(peer) } -export function unpackObject(type: { new (peer: KNativePointer): T }, peer: KNativePointer): T | undefined { - if (peer === arkts.nullptr) { +export function unpackObject(type: { new (peer: KNativePointer): T }, peer: KNativePointer): T | undefined { + if (peer === nullptr) { return undefined } return new type(peer) @@ -139,7 +86,7 @@ export function passStringArray(strings: readonly string[]): string[] { return withStringArray(strings, (it: string[]) => it) } -export function passNodeWithNewModifiers(node: T, modifiers: KInt): T { +export function passNodeWithNewModifiers(node: T, modifiers: KInt): T { return (unpackNonNullableNode(node.peer) as T).updateModifiers(modifiers) } @@ -151,8 +98,8 @@ export function scriptFunctionHasBody(peer: KNativePointer): boolean { // TODO: remove this // TODO: update scopes and other data -export function updatePeerByNode(peer: KNativePointer, original: T | undefined): KNativePointer { - if (peer === arkts.nullptr) { +export function updatePeerByNode(peer: KNativePointer, original: T | undefined): KNativePointer { + if (peer === nullptr) { throwError('updatePeerByNode called on NULLPTR') } if (original === undefined) { @@ -161,28 +108,28 @@ export function updatePeerByNode(peer: KNativePointer, ori global.generatedEs2panda._AstNodeSetOriginalNode(global.context, peer, original.peer) global.generatedEs2panda._AstNodeSetParent(global.context, peer, global.generatedEs2panda._AstNodeParent(global.context, original.peer)) global.es2panda._AstNodeUpdateChildren(global.context, peer) - global.generatedEs2panda._AstNodeClearModifier(global.context, peer, arkts.allFlags) + global.generatedEs2panda._AstNodeClearModifier(global.context, peer, allFlags) global.generatedEs2panda._AstNodeAddModifier(global.context, peer, original.modifiers) global.es2panda._AstNodeUpdateChildren(global.context, peer) return peer } // TODO: update scopes and other data -export function updateNodeByNode(node: T, original: arkts.Node): T { - if (original.peer === arkts.nullptr) { +export function updateNodeByNode(node: T, original: AstNode): T { + if (original.peer === nullptr) { throwError('update called on NULLPTR') } global.generatedEs2panda._AstNodeSetOriginalNode(global.context, node.peer, original.peer) global.generatedEs2panda._AstNodeSetParent(global.context, node.peer, global.generatedEs2panda._AstNodeParent(global.context, original.peer)) global.es2panda._AstNodeUpdateChildren(global.context, node.peer) - global.generatedEs2panda._AstNodeClearModifier(global.context, node.peer, arkts.allFlags) + global.generatedEs2panda._AstNodeClearModifier(global.context, node.peer, allFlags) global.generatedEs2panda._AstNodeAddModifier(global.context, node.peer, original.modifiers) global.es2panda._AstNodeUpdateChildren(global.context, node.peer) return node } -export function resolveSource(source: arkts.StringLiteral): arkts.StringLiteral { - return arkts.factory.createStringLiteral( +export function resolveSource(source: StringLiteral): StringLiteral { + return factory.createStringLiteral( path.resolve(source.str).toString() ) } diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts index d784151da..eeaa5e46f 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -15,11 +15,11 @@ import global from "../static/global" import { throwError } from "../../utils" -import * as arkts from "../../arkts-api" -import { KNativePointer, withString, withStringArray, withStringResult } from "@koalaui/interop" -import { - Es2pandaContextState, -} from ".." +import { KNativePointer, nullptr, withStringResult } from "@koalaui/interop" +import { AnnotationUsageIr, AstNode } from "../types" +import { Es2pandaContextState } from "src/generated/Es2pandaEnums" +import { unpackNodeArray, unpackNonNullableNode } from "./private" +import { isClassDefinition, isFunctionDeclaration, isScriptFunction } from "../factory/nodeTests" export function proceedToState(state: Es2pandaContextState): void { if (state <= global.es2panda._ContextState(global.context)) { @@ -44,46 +44,46 @@ export function startChecker(): boolean { return global.es2panda._CheckerStartChecker(global.context) } -export function recheckSubtree(node: arkts.Node): void { +export function recheckSubtree(node: AstNode): void { global.es2panda._AstNodeRecheck(global.context, node.peer) } -export function rebindSubtree(node: arkts.Node): void { +export function rebindSubtree(node: AstNode): void { global.es2panda._AstNodeRebind(global.context, node.peer) } -export function getDecl(node: arkts.Node): arkts.Node | undefined { +export function getDecl(node: AstNode): AstNode | undefined { let decl: KNativePointer = node.peer decl = global.es2panda._AstNodeVariableConst(global.context, decl) - if (decl === arkts.nullptr) { + if (decl === nullptr) { return undefined } decl = global.es2panda._VariableDeclaration(global.context, decl) - if (decl === arkts.nullptr) { + if (decl === nullptr) { return undefined } decl = global.es2panda._DeclNode(global.context, decl) - if (decl === arkts.nullptr) { + if (decl === nullptr) { return undefined } - return arkts.unpackNonNullableNode(decl) + return unpackNonNullableNode(decl) } -export function getAnnotations(node: arkts.Node): readonly arkts.AnnotationUsageIr[] { - if (!arkts.isFunctionDeclaration(node) && !arkts.isScriptFunction(node) && !arkts.isClassDefinition(node)) { +export function getAnnotations(node: AstNode): readonly AnnotationUsageIr[] { + if (!isFunctionDeclaration(node) && !isScriptFunction(node) && !isClassDefinition(node)) { throwError('for now annotations allowed only for: functionDeclaration, scriptFunction, classDefinition') } - return arkts.unpackNodeArray(global.es2panda._AnnotationAllowedAnnotations(global.context, node.peer, arkts.nullptr)) + return unpackNodeArray(global.es2panda._AnnotationAllowedAnnotations(global.context, node.peer, nullptr)) } -export function getOriginalNode(node: arkts.Node): arkts.Node { +export function getOriginalNode(node: AstNode): AstNode { if (node === undefined) { // TODO: fix this throwError('there is no arkts pair of ts node (unable to getOriginalNode)') } - if (node.originalPeer === arkts.nullptr) { + if (node.originalPeer === nullptr) { return node } - return arkts.unpackNonNullableNode(node.originalPeer) + return unpackNonNullableNode(node.originalPeer) } diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index 5d584cdfb..041c2978b 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -1,15 +1,43 @@ -import * as arkts from "./types" +/* + * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { factory } from "./factory/nodeFactory" import { - Es2pandaMethodDefinitionKind, - Es2pandaModifierFlags, + AstNode, + BlockStatement, + CallExpression, + ClassDeclaration, + ClassDefinition, + EtsScript, + ExpressionStatement, + FunctionDeclaration, + FunctionSignature, + MethodDefinition, + StructDeclaration +} from "./types" +import { Es2pandaClassDefinitionModifiers, -} from "." + Es2pandaMethodDefinitionKind, + Es2pandaModifierFlags +} from "../generated/Es2pandaEnums" +import { nullptr } from "@koalaui/interop" -type Visitor = (node: arkts.Node) => arkts.Node +type Visitor = (node: AstNode) => AstNode // TODO: rethink (remove as) -function nodeVisitor(node: T, visitor: Visitor): T { +function nodeVisitor(node: T, visitor: Visitor): T { if (node === undefined) { return node } @@ -17,7 +45,7 @@ function nodeVisitor(node: T, visitor: Visitor } // TODO: rethink (remove as) -function nodesVisitor(nodes: TIn, visitor: Visitor): T[] | TIn { +function nodesVisitor(nodes: TIn, visitor: Visitor): T[] | TIn { if (nodes === undefined) { return nodes } @@ -25,16 +53,16 @@ function nodesVisitor void>, state: arkts.Es2pandaContextState, dumpAst: boolean): arkts.Node { +function insertPlugin(pluginsByState: Map void>, state: arkts.Es2pandaContextState, dumpAst: boolean): arkts.AstNode { arkts.proceedToState(state) const script = arkts.EtsScript.fromContext() if (script === undefined) { @@ -55,7 +70,7 @@ function insertPlugin(pluginsByState: Map void>, dumpAst: boolean ): void { +function invokeWithPlugins(configPath: string, filePath: string, outputPath: string, pluginsByState: Map void>, dumpAst: boolean ): void { const source = fs.readFileSync(filePath).toString() const sdk = process.env.PANDA_SDK_PATH ?? withWarning( defaultPandaSdk, @@ -115,14 +130,14 @@ function loadPlugin(configDir: string, jsonPlugin: any) { return require(plugin).default() } -function selectPlugins(configDir: string, plugins: any[], stage: string): ((arg: arkts.Node) => arkts.Node)|undefined { +function selectPlugins(configDir: string, plugins: any[], stage: string): ((arg: arkts.AstNode) => arkts.AstNode)|undefined { const selected = plugins .filter(it => (it.stage == stage)) .map(it => loadPlugin(configDir, it)) if (selected.length == 0) { return undefined } else { - return (ast: arkts.Node) => selected.reduce( + return (ast: arkts.AstNode) => selected.reduce( (it, transform) => transform(it), ast ) @@ -134,7 +149,7 @@ function stateName(value: arkts.Es2pandaContextState): string { } function readAndSortPlugins(configDir: string, plugins: any[]) { - const pluginsByState = new Map void>() + const pluginsByState = new Map void>() Object.values(arkts.Es2pandaContextState) .filter(it => typeof it == "number") // enum values are numbers and strings together diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts deleted file mode 100644 index c93541481..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class AnnotatedAstNode extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts deleted file mode 100644 index a4ef2be0a..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class AnnotatedExpression extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts deleted file mode 100644 index b4f40014c..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class AnnotatedStatement extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts deleted file mode 100644 index ec853f5a2..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class AnnotationDeclaration extends Node { -} \ 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 deleted file mode 100644 index f9721fbf6..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class AnnotationUsage extends Node { -} \ 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 deleted file mode 100644 index 95f33b97b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ArrayExpression extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts deleted file mode 100644 index 43f756284..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ArrowFunctionExpression extends Node { -} \ 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 deleted file mode 100644 index c725a9f4a..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class AssertStatement extends Node { -} \ 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 deleted file mode 100644 index b4faff3e3..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class AssignmentExpression extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/AstNode.ts deleted file mode 100644 index a97c034d8..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/AstNode.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class AstNode extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts deleted file mode 100644 index c0d2227a5..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class AwaitExpression extends Node { -} \ 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 deleted file mode 100644 index 6d8417884..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class BigIntLiteral extends Node { -} \ 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 deleted file mode 100644 index 3cf1245b3..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class BinaryExpression extends Node { -} \ 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 deleted file mode 100644 index 636af2fa1..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class BlockExpression extends Node { -} \ 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 deleted file mode 100644 index 43ee41c9b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class BlockStatement extends Node { -} \ 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 deleted file mode 100644 index eab8961dd..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class BooleanLiteral extends Node { -} \ 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 deleted file mode 100644 index 4ce8afede..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class BreakStatement extends Node { -} \ 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 deleted file mode 100644 index fb40fc1c3..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class CallExpression extends Node { -} \ 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 deleted file mode 100644 index c3c7cdd77..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class CatchClause extends Node { -} \ 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 deleted file mode 100644 index a4519f2b3..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ChainExpression extends Node { -} \ 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 deleted file mode 100644 index 0526e403c..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class CharLiteral extends Node { -} \ 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 deleted file mode 100644 index 474eec36c..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ClassDeclaration extends Node { -} \ 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 deleted file mode 100644 index 53f039042..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ClassDefinition extends Node { -} \ 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 deleted file mode 100644 index 1162e5c03..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ClassElement extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts deleted file mode 100644 index cc9ebf3ea..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ClassExpression extends Node { -} \ 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 deleted file mode 100644 index c8ff65010..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ClassProperty extends Node { -} \ 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 deleted file mode 100644 index d911d563c..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ClassStaticBlock extends Node { -} \ 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 deleted file mode 100644 index 5d0b0f036..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ConditionalExpression extends Node { -} \ 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 deleted file mode 100644 index ea608c7db..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ContinueStatement extends Node { -} \ 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 deleted file mode 100644 index 5684cf79c..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class DebuggerStatement extends Node { -} \ 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 deleted file mode 100644 index 5591a7c9f..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class Decorator extends Node { -} \ 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 deleted file mode 100644 index 2ffd483ac..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class DirectEvalExpression extends Node { -} \ 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 deleted file mode 100644 index 64097c561..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class DoWhileStatement extends Node { -} \ 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 deleted file mode 100644 index 7f1bfb2c7..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSClassLiteral extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts deleted file mode 100644 index c1ffb306d..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSFunctionType extends Node { -} \ 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 deleted file mode 100644 index 81fc1b281..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSImportDeclaration extends Node { -} \ 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 deleted file mode 100644 index 932304627..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSLaunchExpression extends Node { -} \ 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 deleted file mode 100644 index ca63d66c5..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSModule extends Node { -} \ 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 deleted file mode 100644 index 6c157cd1b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSNewArrayInstanceExpression extends Node { -} \ 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 deleted file mode 100644 index 9dadcd4f8..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSNewClassInstanceExpression extends Node { -} \ 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 deleted file mode 100644 index ae3d0b32e..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSNewMultiDimArrayInstanceExpression extends Node { -} \ 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 deleted file mode 100644 index b5730c9e4..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSNullType extends Node { -} \ 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 deleted file mode 100644 index e45a0c7ff..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSPackageDeclaration extends Node { -} \ 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 deleted file mode 100644 index bc6dc84d7..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSParameterExpression extends Node { -} \ 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 deleted file mode 100644 index c637f1d16..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSPrimitiveType extends Node { -} \ 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 deleted file mode 100644 index 105c62ac7..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSReExportDeclaration extends Node { -} \ 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 deleted file mode 100644 index 1754892e3..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSStructDeclaration extends Node { -} \ 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 deleted file mode 100644 index a8208a28b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSTuple extends Node { -} \ 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 deleted file mode 100644 index 49749e7dd..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSTypeReference extends Node { -} \ 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 deleted file mode 100644 index b4f074a2b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSTypeReferencePart extends Node { -} \ 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 deleted file mode 100644 index a6c121b8f..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSUndefinedType extends Node { -} \ 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 deleted file mode 100644 index cc9147190..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSUnionType extends Node { -} \ 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 deleted file mode 100644 index 5077d3a74..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ETSWildcardType extends Node { -} \ 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 deleted file mode 100644 index 34d74c714..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class EmptyStatement extends Node { -} \ 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 deleted file mode 100644 index 526829873..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ExportAllDeclaration extends Node { -} \ 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 deleted file mode 100644 index a94503916..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ExportDefaultDeclaration extends Node { -} \ 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 deleted file mode 100644 index ef49bc1c4..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ExportNamedDeclaration extends Node { -} \ 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 deleted file mode 100644 index 1ef1f21fb..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ExportSpecifier extends Node { -} \ 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 deleted file mode 100644 index e0c2d235a..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/Expression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class Expression extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts deleted file mode 100644 index e34396667..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ExpressionStatement extends Node { -} \ 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 deleted file mode 100644 index 11cfefc89..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ForInStatement extends Node { -} \ 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 deleted file mode 100644 index 408b87f79..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ForOfStatement extends Node { -} \ 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 deleted file mode 100644 index 48a94c122..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ForUpdateStatement extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts deleted file mode 100644 index 3430b82f3..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class FunctionDeclaration extends Node { -} \ 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 deleted file mode 100644 index 3fc5685e2..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class FunctionExpression extends Node { -} \ 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 deleted file mode 100644 index 5ad4d3c47..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class Identifier extends Node { -} \ 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 deleted file mode 100644 index 8bd0e33e3..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class IfStatement extends Node { -} \ 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 deleted file mode 100644 index 93918bd86..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ImportDeclaration extends Node { -} \ 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 deleted file mode 100644 index 7a70b644b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ImportDefaultSpecifier extends Node { -} \ 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 deleted file mode 100644 index b055ed3db..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ImportExpression extends Node { -} \ 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 deleted file mode 100644 index f51d33a4b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ImportNamespaceSpecifier extends Node { -} \ 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 deleted file mode 100644 index bda983926..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ImportSpecifier extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts deleted file mode 100644 index f2d535de8..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class LabelledStatement extends Node { -} \ 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 deleted file mode 100644 index 6dee82956..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/Literal.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class Literal extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts deleted file mode 100644 index 490a587a8..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class LoopStatement extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts deleted file mode 100644 index b6ace4c47..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class MaybeOptionalExpression extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts deleted file mode 100644 index f6921bf58..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class MemberExpression extends Node { -} \ 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 deleted file mode 100644 index f3f57c0ee..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class MetaProperty extends Node { -} \ 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 deleted file mode 100644 index 8e7e6fe88..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class MethodDefinition extends Node { -} \ 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 deleted file mode 100644 index 6c86cf8bb..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class NamedType extends Node { -} \ 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 deleted file mode 100644 index 67fffa65a..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class NewExpression extends Node { -} \ 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 deleted file mode 100644 index c71efedf7..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class NullLiteral extends Node { -} \ 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 deleted file mode 100644 index 8f040b578..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class NumberLiteral extends Node { -} \ 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 deleted file mode 100644 index c15280859..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ObjectExpression extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts deleted file mode 100644 index 460e2203d..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class OmittedExpression extends Node { -} \ 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 deleted file mode 100644 index e4e5a769b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class OpaqueTypeNode extends Node { -} \ 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 deleted file mode 100644 index e9ad0e15c..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class PrefixAssertionExpression extends Node { -} \ 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 deleted file mode 100644 index 07050946f..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/Property.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class Property extends Node { -} \ 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 deleted file mode 100644 index 664eb5852..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class RegExpLiteral extends Node { -} \ 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 deleted file mode 100644 index 0ac98e389..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ReturnStatement extends Node { -} \ 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 deleted file mode 100644 index 9be650d01..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ScriptFunction extends Node { -} \ 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 deleted file mode 100644 index 658a71371..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class SequenceExpression extends Node { -} \ 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 deleted file mode 100644 index 1f1658e4a..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class SpreadElement extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts deleted file mode 100644 index 638090d72..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class Statement extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts deleted file mode 100644 index 520013971..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class StringLiteral extends Node { -} \ 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 deleted file mode 100644 index 9784764f5..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class SuperExpression extends Node { -} \ 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 deleted file mode 100644 index 761b4484d..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class SwitchCaseStatement extends Node { -} \ 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 deleted file mode 100644 index 2501607b8..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class SwitchStatement extends Node { -} \ 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 deleted file mode 100644 index a74eceb80..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSAnyKeyword extends Node { -} \ 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 deleted file mode 100644 index b8998d97d..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSArrayType extends Node { -} \ 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 deleted file mode 100644 index 29da23975..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSAsExpression extends Node { -} \ 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 deleted file mode 100644 index cfa0851ff..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSBigintKeyword extends Node { -} \ 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 deleted file mode 100644 index 5061ce255..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSBooleanKeyword extends Node { -} \ 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 deleted file mode 100644 index 150b14818..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSClassImplements extends Node { -} \ 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 deleted file mode 100644 index 91dfcc4dc..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSConditionalType extends Node { -} \ 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 deleted file mode 100644 index 4ea16a7b6..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSConstructorType extends Node { -} \ 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 deleted file mode 100644 index 590647ce3..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSEnumDeclaration extends Node { -} \ 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 deleted file mode 100644 index a4456b8b0..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSEnumMember extends Node { -} \ 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 deleted file mode 100644 index b79040a86..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSExternalModuleReference extends Node { -} \ 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 deleted file mode 100644 index 9c9597fc8..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSFunctionType extends Node { -} \ 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 deleted file mode 100644 index 339cf8b7d..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSImportEqualsDeclaration extends Node { -} \ 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 deleted file mode 100644 index fb8ec8468..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSImportType extends Node { -} \ 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 deleted file mode 100644 index 1565462ef..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSIndexSignature extends Node { -} \ 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 deleted file mode 100644 index 948746c0b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSIndexedAccessType extends Node { -} \ 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 deleted file mode 100644 index 7b5990c7d..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSInferType extends Node { -} \ 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 deleted file mode 100644 index 8f4816c58..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSInterfaceBody extends Node { -} \ 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 deleted file mode 100644 index cf885b2cd..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSInterfaceDeclaration extends Node { -} \ 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 deleted file mode 100644 index 79c5e5aa4..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSInterfaceHeritage extends Node { -} \ 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 deleted file mode 100644 index 2612650a5..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSIntersectionType extends Node { -} \ 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 deleted file mode 100644 index be794facf..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSLiteralType extends Node { -} \ 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 deleted file mode 100644 index 3b2156b91..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSMappedType extends Node { -} \ 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 deleted file mode 100644 index 3493aa2ce..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSMethodSignature extends Node { -} \ 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 deleted file mode 100644 index 8a278e3a2..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSModuleBlock extends Node { -} \ 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 deleted file mode 100644 index 38cf33c75..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSModuleDeclaration extends Node { -} \ 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 deleted file mode 100644 index a1ecba832..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSNamedTupleMember extends Node { -} \ 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 deleted file mode 100644 index 55550999b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSNeverKeyword extends Node { -} \ 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 deleted file mode 100644 index 260d1b43c..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSNonNullExpression extends Node { -} \ 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 deleted file mode 100644 index 2d7b08d55..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSNullKeyword extends Node { -} \ 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 deleted file mode 100644 index 1ff7f14e1..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSNumberKeyword extends Node { -} \ 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 deleted file mode 100644 index eb1546746..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSObjectKeyword extends Node { -} \ 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 deleted file mode 100644 index e0243020e..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSParameterProperty extends Node { -} \ 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 deleted file mode 100644 index 69dae9eb5..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSParenthesizedType extends Node { -} \ 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 deleted file mode 100644 index 2fc25cd0b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSPropertySignature extends Node { -} \ 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 deleted file mode 100644 index 00eca1c67..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSQualifiedName extends Node { -} \ 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 deleted file mode 100644 index bd5c23a63..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSSignatureDeclaration extends Node { -} \ 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 deleted file mode 100644 index f96ab200b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSStringKeyword extends Node { -} \ 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 deleted file mode 100644 index 145af4da1..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSThisType extends Node { -} \ 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 deleted file mode 100644 index 7ebd2d950..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTupleType extends Node { -} \ 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 deleted file mode 100644 index 6cbbd1ae5..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTypeAliasDeclaration extends Node { -} \ 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 deleted file mode 100644 index 3100c48c7..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTypeAssertion extends Node { -} \ 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 deleted file mode 100644 index 4d5bb62b2..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTypeLiteral extends Node { -} \ 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 deleted file mode 100644 index b8af0d59e..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTypeOperator extends Node { -} \ 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 deleted file mode 100644 index e67de36bc..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTypeParameter extends Node { -} \ 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 deleted file mode 100644 index c1620b923..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTypeParameterDeclaration extends Node { -} \ 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 deleted file mode 100644 index 27ecc8ffd..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTypeParameterInstantiation extends Node { -} \ 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 deleted file mode 100644 index 5e7935e9b..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTypePredicate extends Node { -} \ 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 deleted file mode 100644 index 1a6855faa..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTypeQuery extends Node { -} \ 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 deleted file mode 100644 index 30ae5d6ea..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSTypeReference extends Node { -} \ 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 deleted file mode 100644 index afe66a6db..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSUndefinedKeyword extends Node { -} \ 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 deleted file mode 100644 index f977ecb52..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSUnionType extends Node { -} \ 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 deleted file mode 100644 index ce59aa35e..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSUnknownKeyword extends Node { -} \ 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 deleted file mode 100644 index cd8488295..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TSVoidKeyword extends Node { -} \ 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 deleted file mode 100644 index ea08698b5..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TaggedTemplateExpression extends Node { -} \ 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 deleted file mode 100644 index c1d2fa021..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TemplateElement extends Node { -} \ 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 deleted file mode 100644 index bbcd44992..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TemplateLiteral extends Node { -} \ 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 deleted file mode 100644 index caec4d27e..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ThisExpression extends Node { -} \ 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 deleted file mode 100644 index c796d2a64..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class ThrowStatement extends Node { -} \ 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 deleted file mode 100644 index e564d8356..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TryStatement extends Node { -} \ 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 deleted file mode 100644 index 31294e1f2..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TypeNode extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts deleted file mode 100644 index 6bb9cd060..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TypedAstNode extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts deleted file mode 100644 index f1668eee3..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TypedStatement extends Node { -} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts deleted file mode 100644 index 38b12352a..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class TypeofExpression extends Node { -} \ 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 deleted file mode 100644 index 48ee2ce2d..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class UnaryExpression extends Node { -} \ 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 deleted file mode 100644 index abec619cd..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class UndefinedLiteral extends Node { -} \ 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 deleted file mode 100644 index 67daf1a27..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class UpdateExpression extends Node { -} \ 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 deleted file mode 100644 index 57823d11a..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class VariableDeclaration extends Node { -} \ 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 deleted file mode 100644 index 349ea041d..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class VariableDeclarator extends Node { -} \ 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 deleted file mode 100644 index caa647efb..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class WhileStatement extends Node { -} \ 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 deleted file mode 100644 index 4627861f4..000000000 --- a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - global, - passNode, - unpackNonNullableNode, - Es2pandaMemberExpressionKind, - assertValidPeer, - Node, - Es2pandaAstNodeType, - KNativePointer -} from "../../reexport-for-generated" - -export class YieldExpression extends Node { -} \ 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 680410e83..a177d3dac 100644 --- a/arkoala-arkts/libarkts/src/reexport-for-generated.ts +++ b/arkoala-arkts/libarkts/src/reexport-for-generated.ts @@ -15,8 +15,8 @@ export { KNativePointer } from "@koalaui/interop" export { Es2pandaAstNodeType } from "./Es2pandaEnums" -export { assertValidPeer, Node } from "./arkts-api//types" +export { assertValidPeer } from "./arkts-api//types" export { passNode, unpackNonNullableNode } from "./arkts-api/utilities/private" -import global from "./arkts-api/static/global" -export { global } +export { default } from "./arkts-api/static/global" export { Es2pandaMemberExpressionKind } from "./generated/Es2pandaEnums" +export { AstNode } from "./arkts-api/types" diff --git a/arkoala-arkts/libarkts/src/ts-api/factory/nodeTests.ts b/arkoala-arkts/libarkts/src/ts-api/factory/nodeTests.ts index eed8a6703..94820ba97 100644 --- a/arkoala-arkts/libarkts/src/ts-api/factory/nodeTests.ts +++ b/arkoala-arkts/libarkts/src/ts-api/factory/nodeTests.ts @@ -1,40 +1,27 @@ -import { - SyntaxKind, -} from "@koalaui/ets-tsc" +import { SyntaxKind, } from "@koalaui/ets-tsc" import { - Node, - Identifier, - StringLiteral, - FunctionDeclaration, + ArrowFunction, Block, - KeywordTypeNode, - PropertyAccessExpression, - ParameterDeclaration, - ReturnStatement, - IfStatement, - ExpressionStatement, CallExpression, - ArrowFunction, - TypeReferenceNode, - BinaryExpression, - BinaryOperatorToken, ClassDeclaration, + ExpressionStatement, + FunctionDeclaration, + FunctionExpression, FunctionTypeNode, - TypeNode, - Expression, - Statement, - SourceFile, - ClassElement, + GetAccessorDeclaration, + Identifier, MethodDeclaration, - FunctionExpression, - VariableDeclaration, - VariableDeclarationList, + MethodSignature, + Node, + ParameterDeclaration, + PropertyAccessExpression, PropertyDeclaration, PropertySignature, - MethodSignature, - GetAccessorDeclaration, SetAccessorDeclaration, + SourceFile, + VariableDeclaration, + VariableDeclarationList, VariableStatement, } from "../types" diff --git a/arkoala-arkts/libarkts/src/ts-api/types.ts b/arkoala-arkts/libarkts/src/ts-api/types.ts index 88774f765..13a3fb64c 100644 --- a/arkoala-arkts/libarkts/src/ts-api/types.ts +++ b/arkoala-arkts/libarkts/src/ts-api/types.ts @@ -19,9 +19,9 @@ export interface TransformationContext {} export interface Program {} // TODO: remove U type param -export type NodeArray, U extends arkts.Node | undefined = arkts.Node | undefined> = ts.NodeArray +export type NodeArray, U extends arkts.AstNode | undefined = arkts.AstNode | undefined> = ts.NodeArray -export abstract class Node implements ts.Node { +export abstract class Node implements ts.Node { constructor(node: T) { this.node = node } @@ -133,7 +133,7 @@ export class Modifier extends Node { kind: ModifierSyntaxKind } -export abstract class Expression extends Node implements ts.Expression { +export abstract class Expression extends Node implements ts.Expression { // TODO: support minimal interface _expressionBrand: any } @@ -235,7 +235,7 @@ export class PrivateIdentifier extends Node implements ts.Priv _declarationBrand: any } -export abstract class Statement extends Node implements ts.Statement { +export abstract class Statement extends Node implements ts.Statement { // brands _statementBrand: any } @@ -285,7 +285,7 @@ export class SourceFile extends Node implements ts.SourceFile { _declarationBrand: any } -export abstract class LeftHandSideExpression extends Node implements ts.LeftHandSideExpression, Expression { +export abstract class LeftHandSideExpression extends Node implements ts.LeftHandSideExpression, Expression { // brands _leftHandSideExpressionBrand: any _updateExpressionBrand: any @@ -384,7 +384,7 @@ export class ClassDeclaration extends Node implements ts _statementBrand: any } -export abstract class ClassElement extends Node implements ts.ClassElement { +export abstract class ClassElement extends Node implements ts.ClassElement { // brands _declarationBrand: any _classElementBrand: any @@ -405,9 +405,9 @@ export type DeclarationName = // | BindingPattern // | EntityNameExpression; -export interface Declaration extends Node {} +export interface Declaration extends Node {} -export abstract class NamedDeclaration extends Node implements ts.NamedDeclaration, Declaration { +export abstract class NamedDeclaration extends Node implements ts.NamedDeclaration, Declaration { readonly name?: DeclarationName; // brands @@ -429,8 +429,8 @@ export interface FunctionLikeDeclarationBase extends SignatureDeclarationBase { // export type FunctionLikeDeclaration = FunctionDeclaration | MethodDeclaration | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ConstructorDeclaration | FunctionExpression | ArrowFunction; export type FunctionLikeDeclaration = FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | FunctionExpression | ArrowFunction; -export class MethodSignature extends Node implements ts.MethodSignature, SignatureDeclarationBase { - constructor(node: arkts.Node) { +export class MethodSignature extends Node implements ts.MethodSignature, SignatureDeclarationBase { + constructor(node: arkts.AstNode) { super(node) } @@ -493,9 +493,9 @@ export class ConstructorDeclaration extends Node impleme _declarationBrand: any } -// TODO: specify arkts.Node type -export class PropertySignature extends Node implements ts.TypeElement { - constructor(node: arkts.Node) { +// TODO: specify arkts.AstNode type +export class PropertySignature extends Node implements ts.TypeElement { + constructor(node: arkts.AstNode) { super(node) } @@ -507,9 +507,9 @@ export class PropertySignature extends Node implements ts.TypeElemen _declarationBrand: any } -// TODO: specify arkts.Node type -export class PropertyDeclaration extends Node implements ts.PropertyDeclaration, ClassElement { - constructor(node: arkts.Node) { +// TODO: specify arkts.AstNode type +export class PropertyDeclaration extends Node implements ts.PropertyDeclaration, ClassElement { + constructor(node: arkts.AstNode) { super(node) } @@ -523,9 +523,9 @@ export class PropertyDeclaration extends Node implements ts.Property _declarationBrand: any } -// TODO: specify arkts.Node type -export class GetAccessorDeclaration extends Node implements ts.GetAccessorDeclaration, FunctionLikeDeclarationBase, ClassElement { - constructor(node: arkts.Node) { +// TODO: specify arkts.AstNode type +export class GetAccessorDeclaration extends Node implements ts.GetAccessorDeclaration, FunctionLikeDeclarationBase, ClassElement { + constructor(node: arkts.AstNode) { super(node) } @@ -545,9 +545,9 @@ export class GetAccessorDeclaration extends Node implements ts.GetAc _objectLiteralBrand: any } -// TODO: specify arkts.Node type -export class SetAccessorDeclaration extends Node implements ts.SetAccessorDeclaration, FunctionLikeDeclarationBase, ClassElement { - constructor(node: arkts.Node) { +// TODO: specify arkts.AstNode type +export class SetAccessorDeclaration extends Node implements ts.SetAccessorDeclaration, FunctionLikeDeclarationBase, ClassElement { + constructor(node: arkts.AstNode) { super(node) } @@ -633,7 +633,7 @@ export class TypeParameterDeclaration extends Node implem _declarationBrand: any } -export abstract class TypeNode extends Node implements ts.TypeNode { +export abstract class TypeNode extends Node implements ts.TypeNode { // brands _typeNodeBrand: any } @@ -649,8 +649,8 @@ export class KeywordTypeNode extends Node implements ts.TypeReferenceNode, TypeNode { - constructor(node: arkts.Node) { +export class TypeReferenceNode extends Node implements ts.TypeReferenceNode, TypeNode { + constructor(node: arkts.AstNode) { super(node) } @@ -663,8 +663,8 @@ export class TypeReferenceNode extends Node implements ts.TypeRefere _typeNodeBrand: any } -export class FunctionTypeNode extends Node implements ts.FunctionTypeNode, TypeNode, SignatureDeclarationBase { - constructor(node: arkts.Node) { +export class FunctionTypeNode extends Node implements ts.FunctionTypeNode, TypeNode, SignatureDeclarationBase { + constructor(node: arkts.AstNode) { super(node) } @@ -911,8 +911,8 @@ export class ImportSpecifier extends Node implements ts.Import _declarationBrand: any } -export class UnsupportedNode extends Node implements ts.Node { - constructor(node: arkts.Node) { +export class UnsupportedNode extends Node implements ts.Node { + constructor(node: arkts.AstNode) { super(node) } diff --git a/arkoala-arkts/libarkts/src/ts-api/utilities/private.ts b/arkoala-arkts/libarkts/src/ts-api/utilities/private.ts index d3720c585..718fd9768 100644 --- a/arkoala-arkts/libarkts/src/ts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/ts-api/utilities/private.ts @@ -37,7 +37,7 @@ export function todo(): any { } type kindTypes = - | { new (node: arkts.Node): ts.Node } + | { new (node: arkts.AstNode): ts.Node } | { new (node: arkts.Identifier): ts.Identifier } | { new (node: arkts.EtsScript): ts.SourceFile } | { new (node: arkts.StringLiteral): ts.StringLiteral } @@ -61,7 +61,7 @@ type kindTypes = | { new (node: arkts.VariableDeclarator): ts.VariableDeclaration } | { new (node: arkts.VariableDeclaration): ts.VariableStatement } -export function classByEtsNode(node: arkts.Node) { +export function classByEtsNode(node: arkts.AstNode) { const types = new Map([ [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE, ts.SourceFile], @@ -98,33 +98,33 @@ export function classByEtsNode(node: arkts.Node) { // TODO: add checks for casts in functions below -export function unpackNode >(node: U): T -export function unpackNode >(node: U): T | undefined -export function unpackNode >(node: U): T | undefined { +export function unpackNode >(node: U): T +export function unpackNode >(node: U): T | undefined +export function unpackNode >(node: U): T | undefined { if (node === undefined) { return undefined } return (new (classByEtsNode(node))(node as any)) as T } -export function passNode(node: ts.Node): T -export function passNode(node: ts.Node | undefined): T | undefined -export function passNode(node: ts.Node | undefined): T | undefined { +export function passNode(node: ts.Node): T +export function passNode(node: ts.Node | undefined): T | undefined +export function passNode(node: ts.Node | undefined): T | undefined { if (node === undefined) { return undefined } return (node.node as T) ?? throwError('trying to pass non-compatible node') } -export function unpackNodeArray >(nodes: readonly U[]): ts.NodeArray -export function unpackNodeArray >(nodes: readonly U[] | undefined): ts.NodeArray | undefined -export function unpackNodeArray >(nodes: readonly U[] | undefined): ts.NodeArray | undefined { - return nodes?.map((node: U) => unpackNode(node)) as ReadonlyArray > as ts.NodeArray +export function unpackNodeArray >(nodes: readonly U[]): ts.NodeArray +export function unpackNodeArray >(nodes: readonly U[] | undefined): ts.NodeArray | undefined +export function unpackNodeArray >(nodes: readonly U[] | undefined): ts.NodeArray | undefined { + return nodes?.map((node: U) => unpackNode(node)) as ReadonlyArray > as ts.NodeArray } -export function passNodeArray(nodes: readonly ts.Node[]): T[] -export function passNodeArray(nodes: readonly ts.Node[] | undefined): T[] | undefined -export function passNodeArray(nodes: readonly ts.Node[] | undefined): T[] | undefined { +export function passNodeArray(nodes: readonly ts.Node[]): T[] +export function passNodeArray(nodes: readonly ts.Node[] | undefined): T[] | undefined +export function passNodeArray(nodes: readonly ts.Node[] | undefined): T[] | undefined { return nodes?.map((node: ts.Node) => passNode(node)) } diff --git a/arkoala-arkts/libarkts/src/ts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/ts-api/utilities/public.ts index ffc2a6f47..51cdd4e32 100644 --- a/arkoala-arkts/libarkts/src/ts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/ts-api/utilities/public.ts @@ -16,14 +16,10 @@ import global from "../../arkts-api/static/global" import { throwError } from "../../utils" import * as ts from "../." -import * as arkts from "../../arkts-api" -import { KNativePointer, withString, withStringArray, withStringResult } from "@koalaui/interop" +import { KNativePointer, nullptr } from "@koalaui/interop" +import { unpackNonNullableNode } from "../../arkts-api" -import { proceedToState } from "../../arkts-api/utilities/public" -export { proceedToState } - -import { startChecker } from "../../arkts-api/utilities/public" -export { startChecker } +export { proceedToState, startChecker } from "../../arkts-api" // TODO: like in arkts utils export function getDecl(node: ts.Node): ts.Node | undefined { @@ -32,18 +28,18 @@ export function getDecl(node: ts.Node): ts.Node | undefined { } let decl: KNativePointer = node.node.peer decl = global.es2panda._AstNodeVariableConst(global.context, decl) - if (decl === arkts.nullptr) { + if (decl === nullptr) { return undefined } decl = global.es2panda._VariableDeclaration(global.context, decl) - if (decl === arkts.nullptr) { + if (decl === nullptr) { return undefined } decl = global.es2panda._DeclNode(global.context, decl) - if (decl === arkts.nullptr) { + if (decl === nullptr) { return undefined } - return ts.unpackNode(arkts.unpackNonNullableNode(decl)) + return ts.unpackNode(unpackNonNullableNode(decl)) } // TODO: like in arkts utils @@ -52,8 +48,8 @@ export function getOriginalNode(node: ts.Node): ts.Node { // TODO: fix this throwError('there is no arkts pair of ts node (unable to getOriginalNode)') } - if (node.node.originalPeer === arkts.nullptr) { + if (node.node.originalPeer === nullptr) { return node } - return ts.unpackNode(arkts.unpackNonNullableNode(node.node.originalPeer)) + return ts.unpackNode(unpackNonNullableNode(node.node.originalPeer)) } diff --git a/arkoala-arkts/libarkts/src/ts-api/visitor/visitor.ts b/arkoala-arkts/libarkts/src/ts-api/visitor/visitor.ts index 7790966af..76c81da9b 100644 --- a/arkoala-arkts/libarkts/src/ts-api/visitor/visitor.ts +++ b/arkoala-arkts/libarkts/src/ts-api/visitor/visitor.ts @@ -1,4 +1,18 @@ -import global from "../../arkts-api/static/global" +/* + * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { throwError } from "../../utils" import * as ts from "../." -- Gitee From 3605bb6ac166f78e5c383d2585f12a0babf1cc82 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 4 Feb 2025 20:28:56 +0300 Subject: [PATCH 2/7] works Signed-off-by: naumovdmitrii --- .../libarkts/src/arkts-api/class-by-peer.ts | 2 +- .../src/arkts-api/factory/nodeFactory.ts | 335 +++++++++++------- .../src/arkts-api/factory/nodeTests.ts | 4 +- arkoala-arkts/libarkts/src/arkts-api/index.ts | 1 + .../src/arkts-api/peers/ArktsObject.ts | 24 ++ .../libarkts/src/arkts-api/peers/AstNode.ts | 120 +++++++ .../to-be-generated/MemberExpression.ts | 3 +- arkoala-arkts/libarkts/src/arkts-api/types.ts | 108 +----- .../src/arkts-api/utilities/private.ts | 4 +- .../src/arkts-api/utilities/public.ts | 5 +- .../libarkts/src/arkts-api/visitor.ts | 2 +- .../libarkts/src/reexport-for-generated.ts | 3 +- 12 files changed, 378 insertions(+), 233 deletions(-) create mode 100644 arkoala-arkts/libarkts/src/arkts-api/peers/ArktsObject.ts create mode 100644 arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts 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 363d76453..77be9caf0 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,6 @@ import { AnnotationUsageIr, ArrowFunctionExpression, AssignmentExpression, - AstNode, BinaryExpression, BlockStatement, CallExpression, @@ -59,6 +58,7 @@ 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" export function classByPeer(peer: KNativePointer): AstNode { const constructors = new Map([ diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts index aed751ff3..ff36ada6f 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts @@ -14,10 +14,8 @@ */ import { updateNodeByNode } from "../utilities/private" -import { MemberExpression } from "../to-be-generated/MemberExpression" import { ArrowFunctionExpression, - AstNode, BinaryExpression, BlockStatement, CallExpression, @@ -51,6 +49,8 @@ import { VariableDeclaration, VariableDeclarator } from "../types" +import { MemberExpression } from "../to-be-generated/MemberExpression" +import { AstNode } from "../peers/AstNode" function compose( create: (...args: ARGS) => T, @@ -60,121 +60,218 @@ function compose( } export const factory = { - /** - * @see TS_INTERFACE - * @arg text: string - */ - createIdentifier: Identifier.create, - updateIdentifier: compose(Identifier.create), - - /** - * @see TS_INTERFACE - * @arg expression: Expression, - * @arg typeArguments: readonly TypeNode[] | undefined, - * @arg argumentsArray: readonly Expression[] | undefined, - */ - createCallExpression: CallExpression.create, - updateCallExpression: compose(CallExpression.create), - - createExpressionStatement: ExpressionStatement.create, - updateExpressionStatement: compose(ExpressionStatement.create), - - createMemberExpression: MemberExpression.create, - updateMemberExpression: compose(MemberExpression.create), - - createEtsScript: EtsScript.createFromSource, - updateEtsScript: EtsScript.updateByStatements, - - createFunctionDeclaration: FunctionDeclaration.create, - updateFunctionDeclaration: compose(FunctionDeclaration.create), - - createBlock: BlockStatement.create, - updateBlock: compose(BlockStatement.create), - - createArrowFunction: ArrowFunctionExpression.create, - updateArrowFunction: compose(ArrowFunctionExpression.create), - - createScriptFunction: ScriptFunction.create, - updateScriptFunction: compose(ScriptFunction.create), - - createStringLiteral: StringLiteral.create, - updateStringLiteral: compose(StringLiteral.create), - - createNumericLiteral: NumberLiteral.create, - updateNumericLiteral: compose(NumberLiteral.create), - - createParameterDeclaration: ETSParameterExpression.create, - updateParameterDeclaration: compose(ETSParameterExpression.create), - - createTypeParameter: TSTypeParameter.create, - updateTypeParameter: compose(TSTypeParameter.create), - - createTypeParameterDeclaration: TSTypeParameterDeclaration.create, - updateTypeParameterDeclaration: compose(TSTypeParameterDeclaration.create), - - createPrimitiveType: ETSPrimitiveType.create, - updatePrimitiveType: compose(ETSPrimitiveType.create), - - createTypeReference: ETSTypeReference.create, - updateTypeReference: compose(ETSTypeReference.create), - - createTypeReferenceFromId: ETSTypeReference.createFromId, - updateTypeReferenceFromId: compose(ETSTypeReference.createFromId), - - createTypeReferencePart: ETSTypeReferencePart.create, - updateTypeReferencePart: compose(ETSTypeReferencePart.create), - - createImportDeclaration: EtsImportDeclaration.create, - updateImportDeclaration: compose(EtsImportDeclaration.create), - - createImportSpecifier: ImportSpecifier.create, - updateImportSpecifier: compose(ImportSpecifier.create), - - // createImportSource: ImportSource.create, - // updateImportSource: compose(ImportSource.create), - - createVariableDeclaration: VariableDeclaration.create, - updateVariableDeclaration: compose(VariableDeclaration.create), - - createVariableDeclarator: VariableDeclarator.create, - updateVariableDeclarator: compose(VariableDeclarator.create), - - createUnionType: ETSUnionType.create, - updateUnionType: compose(ETSUnionType.create), - - createReturnStatement: ReturnStatement.create, - updateReturnStatement: compose(ReturnStatement.create), - - createIfStatement: IfStatement.create, - updateIfStatement: compose(IfStatement.create), - - createBinaryExpression: BinaryExpression.create, - updateBinaryExpression: compose(BinaryExpression.create), - - createClassDeclaration: ClassDeclaration.create, - updateClassDeclaration: compose(ClassDeclaration.create), - - createStructDeclaration: StructDeclaration.create, - updateStructDeclaration: compose(StructDeclaration.create), - - createClassDefinition: ClassDefinition.create, - updateClassDefinition: compose(ClassDefinition.create), - - createFunctionType: ETSFunctionType.create, - updateFunctionType: compose(ETSFunctionType.create), - - createFunctionExpression: FunctionExpression.create, - updateFunctionExpression: compose(FunctionExpression.create), - - createMethodDefinition: MethodDefinition.create, - updateMethodDefinition: compose(MethodDefinition.create), - - createSuperExpression: SuperExpression.create, - updateSuperExpression: compose(SuperExpression.create), - - createTSTypeParameterInstantiation: TSTypeParameterInstantiation.create, - updateTSTypeParameterInstantiation: compose(TSTypeParameterInstantiation.create), - - createInterfaceDeclaration: TSInterfaceDeclaration.create, - updateInterfaceDeclaration: compose(TSInterfaceDeclaration.create), + get createIdentifier() { + return Identifier.create + }, + get updateIdentifier() { + return compose(Identifier.create) + }, + get createCallExpression() { + return CallExpression.create + }, + get updateCallExpression() { + return compose(CallExpression.create) + }, + get createExpressionStatement() { + return ExpressionStatement.create + }, + get updateExpressionStatement() { + return compose(ExpressionStatement.create) + }, + get createMemberExpression() { + return MemberExpression.create + }, + get updateMemberExpression() { + return compose(MemberExpression.create) + }, + get createEtsScript() { + return EtsScript.createFromSource + }, + get updateEtsScript() { + return EtsScript.updateByStatements + }, + get createFunctionDeclaration() { + return FunctionDeclaration.create + }, + get updateFunctionDeclaration() { + return compose(FunctionDeclaration.create) + }, + get createBlock() { + return BlockStatement.create + }, + get updateBlock() { + return compose(BlockStatement.create) + }, + get createArrowFunction() { + return ArrowFunctionExpression.create + }, + get updateArrowFunction() { + return compose(ArrowFunctionExpression.create) + }, + get createScriptFunction() { + return ScriptFunction.create + }, + get updateScriptFunction() { + return compose(ScriptFunction.create) + }, + get createStringLiteral() { + return StringLiteral.create + }, + get updateStringLiteral() { + return compose(StringLiteral.create) + }, + get createNumericLiteral() { + return NumberLiteral.create + }, + get updateNumericLiteral() { + return compose(NumberLiteral.create) + }, + get createParameterDeclaration() { + return ETSParameterExpression.create + }, + get updateParameterDeclaration() { + return compose(ETSParameterExpression.create) + }, + get createTypeParameter() { + return TSTypeParameter.create + }, + get updateTypeParameter() { + return compose(TSTypeParameter.create) + }, + get createTypeParameterDeclaration() { + return TSTypeParameterDeclaration.create + }, + get updateTypeParameterDeclaration() { + return compose(TSTypeParameterDeclaration.create) + }, + get createPrimitiveType() { + return ETSPrimitiveType.create + }, + get updatePrimitiveType() { + return compose(ETSPrimitiveType.create) + }, + get createTypeReference() { + return ETSTypeReference.create + }, + get updateTypeReference() { + return compose(ETSTypeReference.create) + }, + get createTypeReferenceFromId() { + return ETSTypeReference.createFromId + }, + get updateTypeReferenceFromId() { + return compose(ETSTypeReference.createFromId) + }, + get createTypeReferencePart() { + return ETSTypeReferencePart.create + }, + get updateTypeReferencePart() { + return compose(ETSTypeReferencePart.create) + }, + get createImportDeclaration() { + return EtsImportDeclaration.create + }, + get updateImportDeclaration() { + return compose(EtsImportDeclaration.create) + }, + get createImportSpecifier() { + return ImportSpecifier.create + }, + get updateImportSpecifier() { + return compose(ImportSpecifier.create) + }, + +// create ImportSource: ImportSource.create, +// update ImportSource: compose(ImportSource.create), + + get createVariableDeclaration() { + return VariableDeclaration.create + }, + get updateVariableDeclaration() { + return compose(VariableDeclaration.create) + }, + get createVariableDeclarator() { + return VariableDeclarator.create + }, + get updateVariableDeclarator() { + return compose(VariableDeclarator.create) + }, + get createUnionType() { + return ETSUnionType.create + }, + get updateUnionType() { + return compose(ETSUnionType.create) + }, + get createReturnStatement() { + return ReturnStatement.create + }, + get updateReturnStatement() { + return compose(ReturnStatement.create) + }, + get createIfStatement() { + return IfStatement.create + }, + get updateIfStatement() { + return compose(IfStatement.create) + }, + get createBinaryExpression() { + return BinaryExpression.create + }, + get updateBinaryExpression() { + return compose(BinaryExpression.create) + }, + get createClassDeclaration() { + return ClassDeclaration.create + }, + get updateClassDeclaration() { + return compose(ClassDeclaration.create) + }, + get createStructDeclaration() { + return StructDeclaration.create + }, + get updateStructDeclaration() { + return compose(StructDeclaration.create) + }, + get createClassDefinition() { + return ClassDefinition.create + }, + get updateClassDefinition() { + return compose(ClassDefinition.create) + }, + get createFunctionType() { + return ETSFunctionType.create + }, + get updateFunctionType() { + return compose(ETSFunctionType.create) + }, + get createFunctionExpression() { + return FunctionExpression.create + }, + get updateFunctionExpression() { + return compose(FunctionExpression.create) + }, + get createMethodDefinition() { + return MethodDefinition.create + }, + get updateMethodDefinition() { + return compose(MethodDefinition.create) + }, + get createSuperExpression() { + return SuperExpression.create + }, + get updateSuperExpression() { + return compose(SuperExpression.create) + }, + get createTSTypeParameterInstantiation() { + return TSTypeParameterInstantiation.create + }, + get updateTSTypeParameterInstantiation() { + return compose(TSTypeParameterInstantiation.create) + }, + get createInterfaceDeclaration() { + return TSInterfaceDeclaration.create + }, + get updateInterfaceDeclaration() { + return compose(TSInterfaceDeclaration.create) + }, } diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts index cbdf8c603..07750fe2f 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts @@ -1,7 +1,5 @@ -import { MemberExpression } from "../to-be-generated/MemberExpression" import { ArrowFunctionExpression, - AstNode, BlockStatement, CallExpression, ClassDeclaration, @@ -18,6 +16,8 @@ import { StructDeclaration, VariableDeclaration, } from "../types" +import { MemberExpression } from "../to-be-generated/MemberExpression" +import { AstNode } from "../peers/AstNode" export function isIdentifier(node: AstNode): node is Identifier { return node instanceof Identifier diff --git a/arkoala-arkts/libarkts/src/arkts-api/index.ts b/arkoala-arkts/libarkts/src/arkts-api/index.ts index d6fa621d0..3dc418d30 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/index.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/index.ts @@ -22,4 +22,5 @@ export * from "./utilities/public" export * from "./factory/nodeFactory" export * from "./factory/nodeTests" export * from "./visitor" +export * from "./peers/AstNode" export * from "./to-be-generated/MemberExpression" diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/ArktsObject.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/ArktsObject.ts new file mode 100644 index 000000000..b748966d9 --- /dev/null +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/ArktsObject.ts @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { KNativePointer } from "@koalaui/interop" + +export abstract class ArktsObject { + protected constructor(peer: KNativePointer) { + this.peer = peer + } + + readonly peer: KNativePointer +} diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts new file mode 100644 index 000000000..7e21e8224 --- /dev/null +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { KNativePointer } from "@idlizer/arkgen/tests/mini_skoala/build/utils" +import global from "../static/global" +import { Es2pandaAstNodeType } from "../../Es2pandaEnums" +import { unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private" +import { throwError } from "../../utils" +import { Es2pandaModifierFlags } from "../../generated/Es2pandaEnums" +import { allFlags } from "../types" +import { KInt } from "@koalaui/arkts-loader/src/loader" +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') + } + 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) + } + + public set originalPeer(peer: KNativePointer) { + global.generatedEs2panda._AstNodeSetOriginalNode(global.context, this.peer, peer) + } + + public getChildren(): readonly AstNode[] { + return unpackNodeArray(global.es2panda._AstNodeChildren(global.context, this.peer)) + } + + public getSubtree(): readonly AstNode[] { + return this.getChildren().reduce( + (prev: readonly AstNode[], curr: AstNode): readonly AstNode[] => { + return prev.concat(curr.getSubtree()) + }, + [this] + ) + } + + public updateChildren(): void { + if (this.peer === nullptr) { + throwError('updateChildren called on NULLPTR') + } + global.es2panda._AstNodeUpdateChildren(global.context, this.peer) + } + + public updateModifiers(modifierFlags: KInt | undefined): this { + global.generatedEs2panda._AstNodeClearModifier(global.context, this.peer, allFlags) + global.generatedEs2panda._AstNodeAddModifier(global.context, this.peer, modifierFlags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE) + return this + } + + public dump(indentation: number = 0): string { + const children = this.getChildren() + .map((it) => it.dump(indentation + 1)) + const msg = + `${indentation}_` + + Es2pandaAstNodeType[this.type] + + ` ` + + this.dumpMessage() + return "> " + " ".repeat(4 * indentation) + msg + "\n" + children.join("") + } + + protected dumpMessage(): string { + return `` + } + + public dumpJson(): string { + return unpackString(global.generatedEs2panda._AstNodeDumpJSONConst(global.context, this.peer)) + } + + public dumpSrc(): string { + return unpackString(global.generatedEs2panda._AstNodeDumpEtsSrcConst(global.context, this.peer)) + } + + public dumpModifiers(): string { + return unpackString(global.es2panda._AstNodeDumpModifiers(global.context, this.peer)) + } + + public get parent(): AstNode { + const _parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer) + if (_parent === nullptr) { + throwError('BAD ACCESS: PARENT IS NULLPTR') + } + return unpackNonNullableNode(_parent) + } + + public set parent(node: AstNode) { + global.generatedEs2panda._AstNodeSetParent(global.context, this.peer, node.peer) + } + + public get modifiers(): KInt { + return global.generatedEs2panda._AstNodeModifiers(global.context, this.peer) + } + + public set modifiers(flags: KInt | undefined) { + global.generatedEs2panda._AstNodeClearModifier(global.context, this.peer, allFlags) + global.generatedEs2panda._AstNodeAddModifier(global.context, this.peer, flags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE) + } +} 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 6aeae4ba2..099c0059f 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,11 +14,12 @@ */ import global from "../static/global" -import { assertValidPeer, AstNode } from "../types" +import { assertValidPeer } from "../types" import { Es2pandaMemberExpressionKind } from "../../generated/Es2pandaEnums" import { passNode, unpackNonNullableNode } from "../utilities/private" import { KNativePointer } from "@koalaui/interop" import { Es2pandaAstNodeType } from "../../Es2pandaEnums" +import { AstNode } from "../peers/AstNode" export class MemberExpression extends AstNode { constructor(peer: KNativePointer) { diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 0548c64a1..8a0e97e66 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -15,7 +15,7 @@ import global from "./static/global" import { throwError } from "../utils" -import { isNullPtr, KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/interop" +import { KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/interop" import { Es2pandaContextState, Es2pandaIdentifierFlags, @@ -42,7 +42,8 @@ import { } from "./utilities/private" import { proceedToState } from "./utilities/public" import { Es2pandaAstNodeType } from "../Es2pandaEnums" -import { KNativePointer } from "@idlizer/arkgen/tests/mini_skoala/build/utils" +import { AstNode } from "./peers/AstNode" +import { ArktsObject } from "./peers/ArktsObject" export const arrayOfNullptr = new BigUint64Array([nullptr]) @@ -64,109 +65,6 @@ export function assertValidPeer(peer: KPtr, expectedKind: Es2pandaAstNodeType): } } -export abstract class ArktsObject { - protected constructor(peer: KNativePointer) { - this.peer = peer - } - - readonly peer: KNativePointer -} - -export abstract class AstNode extends ArktsObject { - protected constructor(peer: KNativePointer) { - if (isNullPtr(peer)) { - throw new Error('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) - } - - public set originalPeer(peer: KNativePointer) { - global.generatedEs2panda._AstNodeSetOriginalNode(global.context, this.peer, peer) - } - - public getChildren(): readonly AstNode[] { - return unpackNodeArray(global.es2panda._AstNodeChildren(global.context, this.peer)) - } - - public getSubtree(): readonly AstNode[] { - return this.getChildren().reduce( - (prev: readonly AstNode[], curr: AstNode): readonly AstNode[] => { - return prev.concat(curr.getSubtree()) - }, - [this] - ) - } - - public updateChildren(): void { - if (this.peer === nullptr) { - throwError('updateChildren called on NULLPTR') - } - global.es2panda._AstNodeUpdateChildren(global.context, this.peer) - } - - public updateModifiers(modifierFlags: KInt | undefined): this { - global.generatedEs2panda._AstNodeClearModifier(global.context, this.peer, allFlags) - global.generatedEs2panda._AstNodeAddModifier(global.context, this.peer, modifierFlags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE) - return this - } - - public dump(indentation: number = 0): string { - const children = this.getChildren() - .map((it) => it.dump(indentation + 1)) - const msg = - `${indentation}_` - + Es2pandaAstNodeType[this.type] - + ` ` - + this.dumpMessage() - return "> " + " ".repeat(4 * indentation) + msg + "\n" + children.join("") - } - - protected dumpMessage(): string { - return `` - } - - public dumpJson(): string { - return unpackString(global.generatedEs2panda._AstNodeDumpJSONConst(global.context, this.peer)) - } - - public dumpSrc(): string { - return unpackString(global.generatedEs2panda._AstNodeDumpEtsSrcConst(global.context, this.peer)) - } - - public dumpModifiers(): string { - return unpackString(global.es2panda._AstNodeDumpModifiers(global.context, this.peer)) - } - - public get parent(): AstNode { - const _parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer) - if (_parent === nullptr) { - throwError('BAD ACCESS: PARENT IS NULLPTR') - } - return unpackNonNullableNode(_parent) - } - - public set parent(node: AstNode) { - global.generatedEs2panda._AstNodeSetParent(global.context, this.peer, node.peer) - } - - public get modifiers(): KInt { - return global.generatedEs2panda._AstNodeModifiers(global.context, this.peer) - } - - public set modifiers(flags: KInt | undefined) { - global.generatedEs2panda._AstNodeClearModifier(global.context, this.peer, allFlags) - global.generatedEs2panda._AstNodeAddModifier(global.context, this.peer, flags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE) - } -} - 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 a7ef7d2eb..45de241b5 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts @@ -18,10 +18,12 @@ 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, ArktsObject, AstNode, StringLiteral } from "../types" +import { allFlags, StringLiteral } from "../types" import { Es2pandaScriptFunctionFlags } from "../../generated/Es2pandaEnums" import { factory } from "../factory/nodeFactory" import { classByPeer } from "../class-by-peer" +import { AstNode } from "../peers/AstNode" +import { ArktsObject } from "../peers/ArktsObject" 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 eeaa5e46f..53edacac7 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -16,10 +16,11 @@ import global from "../static/global" import { throwError } from "../../utils" import { KNativePointer, nullptr, withStringResult } from "@koalaui/interop" -import { AnnotationUsageIr, AstNode } from "../types" -import { Es2pandaContextState } from "src/generated/Es2pandaEnums" +import { AnnotationUsageIr } from "../types" import { unpackNodeArray, unpackNonNullableNode } from "./private" import { isClassDefinition, isFunctionDeclaration, isScriptFunction } from "../factory/nodeTests" +import { Es2pandaContextState } from "../../generated/Es2pandaEnums" +import { AstNode } from "../peers/AstNode" export function proceedToState(state: Es2pandaContextState): void { if (state <= global.es2panda._ContextState(global.context)) { diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index 041c2978b..7838dd0dd 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -15,7 +15,6 @@ import { factory } from "./factory/nodeFactory" import { - AstNode, BlockStatement, CallExpression, ClassDeclaration, @@ -33,6 +32,7 @@ import { Es2pandaModifierFlags } from "../generated/Es2pandaEnums" import { nullptr } from "@koalaui/interop" +import { AstNode } from "./peers/AstNode" type Visitor = (node: AstNode) => AstNode diff --git a/arkoala-arkts/libarkts/src/reexport-for-generated.ts b/arkoala-arkts/libarkts/src/reexport-for-generated.ts index a177d3dac..5da944cb0 100644 --- a/arkoala-arkts/libarkts/src/reexport-for-generated.ts +++ b/arkoala-arkts/libarkts/src/reexport-for-generated.ts @@ -19,4 +19,5 @@ export { assertValidPeer } from "./arkts-api//types" export { passNode, unpackNonNullableNode } from "./arkts-api/utilities/private" export { default } from "./arkts-api/static/global" export { Es2pandaMemberExpressionKind } from "./generated/Es2pandaEnums" -export { AstNode } from "./arkts-api/types" +export { AstNode } from "./arkts-api/peers/AstNode" +export { MemberExpression } from "./arkts-api/to-be-generated/MemberExpression" -- Gitee From 6e188cb2f174a3ed28570ed0c060dfb9552d9391 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 4 Feb 2025 20:35:50 +0300 Subject: [PATCH 3/7] works Signed-off-by: naumovdmitrii --- arkoala-arkts/libarkts/src/arkts-api/index.ts | 2 + .../libarkts/src/arkts-api/peers/Config.ts | 52 ++++++++++++++++ .../libarkts/src/arkts-api/peers/Context.ts | 44 ++++++++++++++ arkoala-arkts/libarkts/src/arkts-api/types.ts | 60 +------------------ arkoala-arkts/libarkts/src/es2panda.ts | 43 ++++++------- 5 files changed, 122 insertions(+), 79 deletions(-) create mode 100644 arkoala-arkts/libarkts/src/arkts-api/peers/Config.ts create mode 100644 arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts diff --git a/arkoala-arkts/libarkts/src/arkts-api/index.ts b/arkoala-arkts/libarkts/src/arkts-api/index.ts index 3dc418d30..8e444fc04 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/index.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/index.ts @@ -23,4 +23,6 @@ export * from "./factory/nodeFactory" export * from "./factory/nodeTests" export * from "./visitor" export * from "./peers/AstNode" +export * from "./peers/Config" +export * from "./peers/Context" export * from "./to-be-generated/MemberExpression" diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/Config.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/Config.ts new file mode 100644 index 000000000..49759ee01 --- /dev/null +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/Config.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { ArktsObject } from "./ArktsObject" +import global from "../static/global" +import { passStringArray } from "../utilities/private" +import { KNativePointer } from "@koalaui/interop" + +export class Config extends ArktsObject { + constructor(peer: KNativePointer) { + super(peer) + // TODO: wait for getter from api + this.path = `` + } + + static create( + input: readonly string[] + ): Config { + return new Config( + global.es2panda._CreateConfig(input.length, passStringArray(input)) + ) + } + + static createDefault(): Config { + if (global.configIsInitialized()) { + console.warn(`Config already initialized`) + return new Config( + global.config + ) + } + return new Config( + global.es2panda._CreateConfig( + 4, + passStringArray(["", "--arktsconfig", "./arktsconfig.json", global.filePath]) + ) + ) + } + + readonly path: string +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts new file mode 100644 index 000000000..b2c9e130d --- /dev/null +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { ArktsObject } from "./ArktsObject" +import global from "../static/global" +import { throwError } from "../../utils" +import { passString } from "../utilities/private" +import { KNativePointer } from "@koalaui/interop" + +export class Context extends ArktsObject { + constructor(peer: KNativePointer) { + super(peer) + } + + // TODO: + // static create + + static createFromString( + source: string + ): Context { + if (!global.configIsInitialized()) { + throwError(`Config not initialized`) + } + return new Context( + global.es2panda._CreateContextFromString( + global.config, + passString(source), + passString(global.filePath) + ) + ) + } +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 8a0e97e66..66ebaf5e7 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -32,7 +32,6 @@ import { passNode, passNodeArray, passString, - passStringArray, resolveSource, unpackNode, unpackNodeArray, @@ -44,6 +43,8 @@ import { proceedToState } from "./utilities/public" import { Es2pandaAstNodeType } from "../Es2pandaEnums" import { AstNode } from "./peers/AstNode" import { ArktsObject } from "./peers/ArktsObject" +import { Config } from "./peers/Config" +import { Context } from "./peers/Context" export const arrayOfNullptr = new BigUint64Array([nullptr]) @@ -72,63 +73,6 @@ export class UnsupportedNode extends AstNode { } } -export class Config extends ArktsObject { - constructor(peer: KPtr) { - super(peer) - // TODO: wait for getter from api - this.path = `` - } - - static create( - input: readonly string[] - ): Config { - return new Config( - global.es2panda._CreateConfig(input.length, passStringArray(input)) - ) - } - - static createDefault(): Config { - if (global.configIsInitialized()) { - console.warn(`Config already initialized`) - return new Config( - global.config - ) - } - return new Config( - global.es2panda._CreateConfig( - 4, - passStringArray(["", "--arktsconfig", "./arktsconfig.json", global.filePath]) - ) - ) - } - - readonly path: string -} - -export class Context extends ArktsObject { - constructor(peer: KPtr) { - super(peer) - } - - // TODO: - // static create - - static createFromString( - source: string - ): Context { - if (!global.configIsInitialized()) { - throwError(`Config not initialized`) - } - return new Context( - global.es2panda._CreateContextFromString( - global.config, - passString(source), - passString(global.filePath) - ) - ) - } -} - export class EtsScript extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE) diff --git a/arkoala-arkts/libarkts/src/es2panda.ts b/arkoala-arkts/libarkts/src/es2panda.ts index fe80796a4..d74e85860 100644 --- a/arkoala-arkts/libarkts/src/es2panda.ts +++ b/arkoala-arkts/libarkts/src/es2panda.ts @@ -15,10 +15,11 @@ import * as fs from "node:fs" import * as path from "node:path" -import * as arkts from "./arkts-api" import global from "./arkts-api/static/global" import { Command } from "commander" import { throwError, withWarning } from "./utils" +import { Es2pandaContextState } from "./generated/Es2pandaEnums" +import { AstNode, Config, Context, EtsScript, proceedToState } from "./arkts-api" function parseCommandLineArgs() { const commander = new Command() @@ -47,9 +48,9 @@ function parseCommandLineArgs() { return { filePath, configPath, outputPath, dumpAst } } -function insertPlugin(pluginsByState: Map void>, state: arkts.Es2pandaContextState, dumpAst: boolean): arkts.AstNode { - arkts.proceedToState(state) - const script = arkts.EtsScript.fromContext() +function insertPlugin(pluginsByState: Map void>, state: Es2pandaContextState, dumpAst: boolean): AstNode { + proceedToState(state) + const script = EtsScript.fromContext() if (script === undefined) { throwError(`Failed to receive ast from es2panda`) } @@ -70,15 +71,15 @@ function insertPlugin(pluginsByState: Map void>, dumpAst: boolean ): void { +function invokeWithPlugins(configPath: string, filePath: string, outputPath: string, pluginsByState: Map void>, dumpAst: boolean ): void { const source = fs.readFileSync(filePath).toString() const sdk = process.env.PANDA_SDK_PATH ?? withWarning( defaultPandaSdk, @@ -87,7 +88,7 @@ function invokeWithPlugins(configPath: string, filePath: string, outputPath: str const stdlib = `${sdk}/ets/stdlib` global.filePath = filePath - global.config = arkts.Config.create([ + global.config = Config.create([ '_', '--arktsconfig', configPath, @@ -100,24 +101,24 @@ function invokeWithPlugins(configPath: string, filePath: string, outputPath: str '--output', outputPath ]).peer - global.context = arkts.Context.createFromString(source).peer + global.context = Context.createFromString(source).peer console.log("PLUGINS: ", pluginsByState.size, pluginsByState) if (pluginsByState.size == 0 ) { - arkts.proceedToState(arkts.Es2pandaContextState.ES2PANDA_STATE_BIN_GENERATED) + proceedToState(Es2pandaContextState.ES2PANDA_STATE_BIN_GENERATED) return } // ComponentTransformer - const parsedTransform = insertPlugin(pluginsByState, arkts.Es2pandaContextState.ES2PANDA_STATE_PARSED, dumpAst) + const parsedTransform = insertPlugin(pluginsByState, Es2pandaContextState.ES2PANDA_STATE_PARSED, dumpAst) // TODO: Normally we need just to proceede to a given state, // but the compiler crashes now, so we restart - restartCompilerUptoState(parsedTransform, arkts.Es2pandaContextState.ES2PANDA_STATE_CHECKED) + restartCompilerUptoState(parsedTransform, Es2pandaContextState.ES2PANDA_STATE_CHECKED) // BuilderLambdaTransformer - const checkedTransform = insertPlugin(pluginsByState, arkts.Es2pandaContextState.ES2PANDA_STATE_CHECKED, dumpAst) - restartCompilerUptoState(checkedTransform, arkts.Es2pandaContextState.ES2PANDA_STATE_BIN_GENERATED) + const checkedTransform = insertPlugin(pluginsByState, Es2pandaContextState.ES2PANDA_STATE_CHECKED, dumpAst) + restartCompilerUptoState(checkedTransform, Es2pandaContextState.ES2PANDA_STATE_BIN_GENERATED) } function loadPlugin(configDir: string, jsonPlugin: any) { @@ -130,28 +131,28 @@ function loadPlugin(configDir: string, jsonPlugin: any) { return require(plugin).default() } -function selectPlugins(configDir: string, plugins: any[], stage: string): ((arg: arkts.AstNode) => arkts.AstNode)|undefined { +function selectPlugins(configDir: string, plugins: any[], stage: string): ((arg: AstNode) => AstNode)|undefined { const selected = plugins .filter(it => (it.stage == stage)) .map(it => loadPlugin(configDir, it)) if (selected.length == 0) { return undefined } else { - return (ast: arkts.AstNode) => selected.reduce( + return (ast: AstNode) => selected.reduce( (it, transform) => transform(it), ast ) } } -function stateName(value: arkts.Es2pandaContextState): string { - return arkts.Es2pandaContextState[value].substring("ES2PANDA_STATE_".length) +function stateName(value: Es2pandaContextState): string { + return Es2pandaContextState[value].substring("ES2PANDA_STATE_".length) } function readAndSortPlugins(configDir: string, plugins: any[]) { - const pluginsByState = new Map void>() + const pluginsByState = new Map void>() - Object.values(arkts.Es2pandaContextState) + Object.values(Es2pandaContextState) .filter(it => typeof it == "number") // enum values are numbers and strings together .forEach(it => { const selected = selectPlugins(configDir, plugins, stateName(it as number).toLowerCase()) -- Gitee From e11c948212f576d3a95e4a3cbc924638fb7f77cf Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 4 Feb 2025 20:55:39 +0300 Subject: [PATCH 4/7] pretty es2panda.ts, remove default export global Signed-off-by: naumovdmitrii --- .../libarkts/src/arkts-api/class-by-peer.ts | 2 +- .../libarkts/src/arkts-api/peers/AstNode.ts | 2 +- .../libarkts/src/arkts-api/peers/Config.ts | 2 +- .../libarkts/src/arkts-api/peers/Context.ts | 2 +- .../libarkts/src/arkts-api/static/global.ts | 2 +- .../to-be-generated/MemberExpression.ts | 2 +- arkoala-arkts/libarkts/src/arkts-api/types.ts | 2 +- .../arkts-api/utilities/nativePtrDecoder.ts | 2 +- .../src/arkts-api/utilities/private.ts | 2 +- .../src/arkts-api/utilities/public.ts | 2 +- arkoala-arkts/libarkts/src/es2panda.ts | 35 +++++++++---------- .../libarkts/src/reexport-for-generated.ts | 2 +- .../libarkts/src/ts-api/utilities/public.ts | 2 +- arkoala-arkts/libarkts/test/test-util.ts | 2 +- 14 files changed, 29 insertions(+), 32 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 77be9caf0..859c4d57a 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts @@ -56,7 +56,7 @@ import { import { Es2pandaAstNodeType } from "../Es2pandaEnums" import { MemberExpression } from "./to-be-generated/MemberExpression" import { throwError } from "../utils" -import global from "./static/global" +import { global } from "./static/global" import { KNativePointer, nullptr } from "@koalaui/interop" import { AstNode } from "./peers/AstNode" diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts index 7e21e8224..0b38bb4c9 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts @@ -14,7 +14,7 @@ */ import { KNativePointer } from "@idlizer/arkgen/tests/mini_skoala/build/utils" -import global from "../static/global" +import { global } from "../static/global" import { Es2pandaAstNodeType } from "../../Es2pandaEnums" import { unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private" import { throwError } from "../../utils" diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/Config.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/Config.ts index 49759ee01..ca7984740 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/Config.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/Config.ts @@ -14,7 +14,7 @@ */ import { ArktsObject } from "./ArktsObject" -import global from "../static/global" +import { global } from "../static/global" import { passStringArray } from "../utilities/private" import { KNativePointer } from "@koalaui/interop" diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts index b2c9e130d..07fede2a8 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts @@ -14,7 +14,7 @@ */ import { ArktsObject } from "./ArktsObject" -import global from "../static/global" +import { global } from "../static/global" import { throwError } from "../../utils" import { passString } from "../utilities/private" import { KNativePointer } from "@koalaui/interop" diff --git a/arkoala-arkts/libarkts/src/arkts-api/static/global.ts b/arkoala-arkts/libarkts/src/arkts-api/static/global.ts index 963bde426..97d82523d 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/static/global.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/static/global.ts @@ -19,7 +19,7 @@ import { initEs2panda, Es2pandaNativeModule, initGeneratedEs2panda } from "../.. import { Es2pandaNativeModule as GeneratedEs2pandaNativeModule } from "../../generated/Es2pandaNativeModule" import { initInterop, InteropNativeModule } from "../../InteropNativeModule" -export default class global { +export class global { public static filePath: string = "./plugins/input/main.sts" private static _config?: KNativePointer 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 099c0059f..790405568 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,7 +13,7 @@ * limitations under the License. */ -import global from "../static/global" +import { global } from "../static/global" import { assertValidPeer } from "../types" import { Es2pandaMemberExpressionKind } from "../../generated/Es2pandaEnums" import { passNode, unpackNonNullableNode } from "../utilities/private" diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 66ebaf5e7..a9bf80f46 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import global from "./static/global" +import { global } from "./static/global" import { throwError } from "../utils" import { KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/interop" import { diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/nativePtrDecoder.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/nativePtrDecoder.ts index ee70e57c5..1bb8900b4 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/nativePtrDecoder.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/nativePtrDecoder.ts @@ -24,7 +24,7 @@ import { providePlatformDefinedData, withByteArray } from "@koalaui/interop" -import global from "../static/global" +import { global } from "../static/global" class NativeString extends NativeStringBase { constructor(ptr: pointer) { diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts index 45de241b5..ea90f7282 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import global from "../static/global" +import { global } from "../static/global" import { throwError } from "../../utils" import { KInt, KNativePointer, nullptr, withString, withStringArray, withStringResult } from "@koalaui/interop" import { NativePtrDecoder } from "./nativePtrDecoder" diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts index 53edacac7..2d8ba52e9 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import global from "../static/global" +import { global } from "../static/global" import { throwError } from "../../utils" import { KNativePointer, nullptr, withStringResult } from "@koalaui/interop" import { AnnotationUsageIr } from "../types" diff --git a/arkoala-arkts/libarkts/src/es2panda.ts b/arkoala-arkts/libarkts/src/es2panda.ts index d74e85860..4912a2029 100644 --- a/arkoala-arkts/libarkts/src/es2panda.ts +++ b/arkoala-arkts/libarkts/src/es2panda.ts @@ -15,7 +15,7 @@ import * as fs from "node:fs" import * as path from "node:path" -import global from "./arkts-api/static/global" +import { global } from "./arkts-api/static/global" import { Command } from "commander" import { throwError, withWarning } from "./utils" import { Es2pandaContextState } from "./generated/Es2pandaEnums" @@ -43,7 +43,7 @@ function parseCommandLineArgs() { throw new Error(`Arktsconfig path doesn't exist: ${configPath}`) } - const dumpAst = !!commander.dumpPluginAst + const dumpAst = commander.dumpPluginAst ?? false return { filePath, configPath, outputPath, dumpAst } } @@ -93,7 +93,6 @@ function invokeWithPlugins(configPath: string, filePath: string, outputPath: str '--arktsconfig', configPath, filePath, - // Always assume this option unconditionally '--extension', 'sts', '--stdlib', @@ -112,8 +111,8 @@ function invokeWithPlugins(configPath: string, filePath: string, outputPath: str // ComponentTransformer const parsedTransform = insertPlugin(pluginsByState, Es2pandaContextState.ES2PANDA_STATE_PARSED, dumpAst) - // TODO: Normally we need just to proceede to a given state, - // but the compiler crashes now, so we restart + // TODO: Normally we need just to proceed to a given state, + // but the compiler crashes now, so we restart restartCompilerUptoState(parsedTransform, Es2pandaContextState.ES2PANDA_STATE_CHECKED) // BuilderLambdaTransformer @@ -131,18 +130,14 @@ function loadPlugin(configDir: string, jsonPlugin: any) { return require(plugin).default() } -function selectPlugins(configDir: string, plugins: any[], stage: string): ((arg: AstNode) => AstNode)|undefined { +function selectPlugins(configDir: string, plugins: any[], stage: string): ((arg: AstNode) => AstNode) { const selected = plugins .filter(it => (it.stage == stage)) .map(it => loadPlugin(configDir, it)) - if (selected.length == 0) { - return undefined - } else { - return (ast: AstNode) => selected.reduce( - (it, transform) => transform(it), - ast - ) - } + return (ast: AstNode) => selected.reduce( + (it, transform) => transform(it), + ast + ) } function stateName(value: Es2pandaContextState): string { @@ -153,12 +148,14 @@ function readAndSortPlugins(configDir: string, plugins: any[]) { const pluginsByState = new Map void>() Object.values(Es2pandaContextState) - .filter(it => typeof it == "number") // enum values are numbers and strings together + .filter(it => typeof it === "number") .forEach(it => { - const selected = selectPlugins(configDir, plugins, stateName(it as number).toLowerCase()) - if (selected) pluginsByState.set( - it as number, - selected + if (typeof it !== "number") { + throwError(`Non-number es2panda enum: ${typeof it}`) + } + pluginsByState.set( + it, + selectPlugins(configDir, plugins, stateName(it).toLowerCase()) ) }) diff --git a/arkoala-arkts/libarkts/src/reexport-for-generated.ts b/arkoala-arkts/libarkts/src/reexport-for-generated.ts index 5da944cb0..781be826e 100644 --- a/arkoala-arkts/libarkts/src/reexport-for-generated.ts +++ b/arkoala-arkts/libarkts/src/reexport-for-generated.ts @@ -17,7 +17,7 @@ export { KNativePointer } from "@koalaui/interop" export { Es2pandaAstNodeType } from "./Es2pandaEnums" export { assertValidPeer } from "./arkts-api//types" export { passNode, unpackNonNullableNode } from "./arkts-api/utilities/private" -export { default } from "./arkts-api/static/global" +export { global } from "./arkts-api/static/global" export { Es2pandaMemberExpressionKind } from "./generated/Es2pandaEnums" export { AstNode } from "./arkts-api/peers/AstNode" export { MemberExpression } from "./arkts-api/to-be-generated/MemberExpression" diff --git a/arkoala-arkts/libarkts/src/ts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/ts-api/utilities/public.ts index 51cdd4e32..85d666f55 100644 --- a/arkoala-arkts/libarkts/src/ts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/ts-api/utilities/public.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import global from "../../arkts-api/static/global" +import { global } from "../../arkts-api/static/global" import { throwError } from "../../utils" import * as ts from "../." import { KNativePointer, nullptr } from "@koalaui/interop" diff --git a/arkoala-arkts/libarkts/test/test-util.ts b/arkoala-arkts/libarkts/test/test-util.ts index 0898cad4b..3d85b1ea1 100644 --- a/arkoala-arkts/libarkts/test/test-util.ts +++ b/arkoala-arkts/libarkts/test/test-util.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import global from "../src/arkts-api/static/global" +import { global } from "../src/arkts-api/static/global" import * as ts from "../src/ts-api" import * as arkts from "../src/arkts-api" -- Gitee From b835cbcc2f585beefd6f679cb8797d7a5122e23c Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 4 Feb 2025 21:04:14 +0300 Subject: [PATCH 5/7] bring back peers Signed-off-by: naumovdmitrii --- .../plugins/src/component-transformer.ts | 2 +- .../src/generated/peers/AnnotatedAstNode.ts | 28 +++++++++++++++++++ .../generated/peers/AnnotatedExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/AnnotatedStatement.ts | 28 +++++++++++++++++++ .../generated/peers/AnnotationDeclaration.ts | 28 +++++++++++++++++++ .../src/generated/peers/AnnotationUsage.ts | 28 +++++++++++++++++++ .../src/generated/peers/ArrayExpression.ts | 28 +++++++++++++++++++ .../peers/ArrowFunctionExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/AssertStatement.ts | 28 +++++++++++++++++++ .../generated/peers/AssignmentExpression.ts | 28 +++++++++++++++++++ .../libarkts/src/generated/peers/AstNode.ts | 26 +++++++++++++++++ .../src/generated/peers/AwaitExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/BigIntLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/BinaryExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/BlockExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/BlockStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/BooleanLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/BreakStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/CallExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/CatchClause.ts | 28 +++++++++++++++++++ .../src/generated/peers/ChainExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/CharLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/ClassDeclaration.ts | 28 +++++++++++++++++++ .../src/generated/peers/ClassDefinition.ts | 28 +++++++++++++++++++ .../src/generated/peers/ClassElement.ts | 28 +++++++++++++++++++ .../src/generated/peers/ClassExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/ClassProperty.ts | 28 +++++++++++++++++++ .../src/generated/peers/ClassStaticBlock.ts | 28 +++++++++++++++++++ .../generated/peers/ConditionalExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/ContinueStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/DebuggerStatement.ts | 28 +++++++++++++++++++ .../libarkts/src/generated/peers/Decorator.ts | 28 +++++++++++++++++++ .../generated/peers/DirectEvalExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/DoWhileStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/ETSClassLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/ETSFunctionType.ts | 28 +++++++++++++++++++ .../generated/peers/ETSImportDeclaration.ts | 28 +++++++++++++++++++ .../generated/peers/ETSLaunchExpression.ts | 28 +++++++++++++++++++ .../libarkts/src/generated/peers/ETSModule.ts | 28 +++++++++++++++++++ .../peers/ETSNewArrayInstanceExpression.ts | 28 +++++++++++++++++++ .../peers/ETSNewClassInstanceExpression.ts | 28 +++++++++++++++++++ .../ETSNewMultiDimArrayInstanceExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/ETSNullType.ts | 28 +++++++++++++++++++ .../generated/peers/ETSPackageDeclaration.ts | 28 +++++++++++++++++++ .../generated/peers/ETSParameterExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/ETSPrimitiveType.ts | 28 +++++++++++++++++++ .../generated/peers/ETSReExportDeclaration.ts | 28 +++++++++++++++++++ .../generated/peers/ETSStructDeclaration.ts | 28 +++++++++++++++++++ .../libarkts/src/generated/peers/ETSTuple.ts | 28 +++++++++++++++++++ .../src/generated/peers/ETSTypeReference.ts | 28 +++++++++++++++++++ .../generated/peers/ETSTypeReferencePart.ts | 28 +++++++++++++++++++ .../src/generated/peers/ETSUndefinedType.ts | 28 +++++++++++++++++++ .../src/generated/peers/ETSUnionType.ts | 28 +++++++++++++++++++ .../src/generated/peers/ETSWildcardType.ts | 28 +++++++++++++++++++ .../src/generated/peers/EmptyStatement.ts | 28 +++++++++++++++++++ .../generated/peers/ExportAllDeclaration.ts | 28 +++++++++++++++++++ .../peers/ExportDefaultDeclaration.ts | 28 +++++++++++++++++++ .../generated/peers/ExportNamedDeclaration.ts | 28 +++++++++++++++++++ .../src/generated/peers/ExportSpecifier.ts | 28 +++++++++++++++++++ .../src/generated/peers/Expression.ts | 28 +++++++++++++++++++ .../generated/peers/ExpressionStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/ForInStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/ForOfStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/ForUpdateStatement.ts | 28 +++++++++++++++++++ .../generated/peers/FunctionDeclaration.ts | 28 +++++++++++++++++++ .../src/generated/peers/FunctionExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/Identifier.ts | 28 +++++++++++++++++++ .../src/generated/peers/IfStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/ImportDeclaration.ts | 28 +++++++++++++++++++ .../generated/peers/ImportDefaultSpecifier.ts | 28 +++++++++++++++++++ .../src/generated/peers/ImportExpression.ts | 28 +++++++++++++++++++ .../peers/ImportNamespaceSpecifier.ts | 28 +++++++++++++++++++ .../src/generated/peers/ImportSpecifier.ts | 28 +++++++++++++++++++ .../src/generated/peers/LabelledStatement.ts | 28 +++++++++++++++++++ .../libarkts/src/generated/peers/Literal.ts | 28 +++++++++++++++++++ .../src/generated/peers/LoopStatement.ts | 28 +++++++++++++++++++ .../peers/MaybeOptionalExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/MemberExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/MetaProperty.ts | 28 +++++++++++++++++++ .../src/generated/peers/MethodDefinition.ts | 28 +++++++++++++++++++ .../libarkts/src/generated/peers/NamedType.ts | 28 +++++++++++++++++++ .../src/generated/peers/NewExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/NullLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/NumberLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/ObjectExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/OmittedExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/OpaqueTypeNode.ts | 28 +++++++++++++++++++ .../peers/PrefixAssertionExpression.ts | 28 +++++++++++++++++++ .../libarkts/src/generated/peers/Property.ts | 28 +++++++++++++++++++ .../src/generated/peers/RegExpLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/ReturnStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/ScriptFunction.ts | 28 +++++++++++++++++++ .../src/generated/peers/SequenceExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/SpreadElement.ts | 28 +++++++++++++++++++ .../libarkts/src/generated/peers/Statement.ts | 28 +++++++++++++++++++ .../src/generated/peers/StringLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/SuperExpression.ts | 28 +++++++++++++++++++ .../generated/peers/SwitchCaseStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/SwitchStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSAnyKeyword.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSArrayType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSAsExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSBigintKeyword.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSBooleanKeyword.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSClassImplements.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSConditionalType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSConstructorType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSEnumDeclaration.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSEnumMember.ts | 28 +++++++++++++++++++ .../peers/TSExternalModuleReference.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSFunctionType.ts | 28 +++++++++++++++++++ .../peers/TSImportEqualsDeclaration.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSImportType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSIndexSignature.ts | 28 +++++++++++++++++++ .../generated/peers/TSIndexedAccessType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSInferType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSInterfaceBody.ts | 28 +++++++++++++++++++ .../generated/peers/TSInterfaceDeclaration.ts | 28 +++++++++++++++++++ .../generated/peers/TSInterfaceHeritage.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSIntersectionType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSLiteralType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSMappedType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSMethodSignature.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSModuleBlock.ts | 28 +++++++++++++++++++ .../generated/peers/TSModuleDeclaration.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSNamedTupleMember.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSNeverKeyword.ts | 28 +++++++++++++++++++ .../generated/peers/TSNonNullExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSNullKeyword.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSNumberKeyword.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSObjectKeyword.ts | 28 +++++++++++++++++++ .../generated/peers/TSParameterProperty.ts | 28 +++++++++++++++++++ .../generated/peers/TSParenthesizedType.ts | 28 +++++++++++++++++++ .../generated/peers/TSPropertySignature.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSQualifiedName.ts | 28 +++++++++++++++++++ .../generated/peers/TSSignatureDeclaration.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSStringKeyword.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSThisType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSTupleType.ts | 28 +++++++++++++++++++ .../generated/peers/TSTypeAliasDeclaration.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSTypeAssertion.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSTypeLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSTypeOperator.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSTypeParameter.ts | 28 +++++++++++++++++++ .../peers/TSTypeParameterDeclaration.ts | 28 +++++++++++++++++++ .../peers/TSTypeParameterInstantiation.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSTypePredicate.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSTypeQuery.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSTypeReference.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSUndefinedKeyword.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSUnionType.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSUnknownKeyword.ts | 28 +++++++++++++++++++ .../src/generated/peers/TSVoidKeyword.ts | 28 +++++++++++++++++++ .../peers/TaggedTemplateExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/TemplateElement.ts | 28 +++++++++++++++++++ .../src/generated/peers/TemplateLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/ThisExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/ThrowStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/TryStatement.ts | 28 +++++++++++++++++++ .../libarkts/src/generated/peers/TypeNode.ts | 28 +++++++++++++++++++ .../src/generated/peers/TypedAstNode.ts | 28 +++++++++++++++++++ .../src/generated/peers/TypedStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/TypeofExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/UnaryExpression.ts | 28 +++++++++++++++++++ .../src/generated/peers/UndefinedLiteral.ts | 28 +++++++++++++++++++ .../src/generated/peers/UpdateExpression.ts | 28 +++++++++++++++++++ .../generated/peers/VariableDeclaration.ts | 28 +++++++++++++++++++ .../src/generated/peers/VariableDeclarator.ts | 28 +++++++++++++++++++ .../src/generated/peers/WhileStatement.ts | 28 +++++++++++++++++++ .../src/generated/peers/YieldExpression.ts | 28 +++++++++++++++++++ 170 files changed, 4731 insertions(+), 1 deletion(-) create mode 100644 arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/AstNode.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/Decorator.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/Expression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/Identifier.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/Literal.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/NamedType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/Property.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/Statement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts create mode 100644 arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts diff --git a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts index b8ca0dba6..099f0590d 100644 --- a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts @@ -32,7 +32,7 @@ export class ComponentTransformer extends AbstractVisitor { [ arkts.factory.createImportSpecifier( arkts.factory.createIdentifier('StructBase'), - arkts.nullptr + nullptr // TODO: wtf ) ], arkts.Es2pandaImportKinds.IMPORT_KINDS_TYPE, diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts new file mode 100644 index 000000000..e9ad73edc --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class AnnotatedAstNode extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts new file mode 100644 index 000000000..da6f80322 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class AnnotatedExpression extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts new file mode 100644 index 000000000..1990319f9 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class AnnotatedStatement extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts new file mode 100644 index 000000000..cc03397cf --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class AnnotationDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..7a621f6f7 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class AnnotationUsage extends AstNode { +} \ 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 new file mode 100644 index 000000000..70ffeff70 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ArrayExpression extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts new file mode 100644 index 000000000..e5373a0c0 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ArrowFunctionExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..9174be879 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class AssertStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..751a2411d --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class AssignmentExpression extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/AstNode.ts new file mode 100644 index 000000000..25a24324c --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/AstNode.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + diff --git a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts new file mode 100644 index 000000000..ce4ba5fc4 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class AwaitExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..640adaea9 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class BigIntLiteral extends AstNode { +} \ 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 new file mode 100644 index 000000000..146aea630 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class BinaryExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..ff62ee51e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class BlockExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..138ed00b9 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class BlockStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..bc7df11a3 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class BooleanLiteral extends AstNode { +} \ 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 new file mode 100644 index 000000000..001439e73 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class BreakStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..d1765c0e2 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class CallExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..f448fb637 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class CatchClause extends AstNode { +} \ 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 new file mode 100644 index 000000000..099a8fccb --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ChainExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..8d8462b88 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class CharLiteral extends AstNode { +} \ 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 new file mode 100644 index 000000000..75dfb532f --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ClassDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..acbafd3c4 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ClassDefinition extends AstNode { +} \ 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 new file mode 100644 index 000000000..daca5b448 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ClassElement extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts new file mode 100644 index 000000000..f6203358d --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ClassExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..049c3c908 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ClassProperty extends AstNode { +} \ 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 new file mode 100644 index 000000000..251f2931e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ClassStaticBlock extends AstNode { +} \ 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 new file mode 100644 index 000000000..95c762154 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ConditionalExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..0fe3287b9 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ContinueStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..c4fdb067d --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class DebuggerStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..cad7f83e9 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class Decorator extends AstNode { +} \ 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 new file mode 100644 index 000000000..b1c87f100 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class DirectEvalExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..b25177488 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class DoWhileStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..33487f928 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSClassLiteral extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts new file mode 100644 index 000000000..047bada0e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSFunctionType extends AstNode { +} \ 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 new file mode 100644 index 000000000..38bcc0ece --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSImportDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..5a0ce6280 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSLaunchExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..2842a9a80 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSModule extends AstNode { +} \ 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 new file mode 100644 index 000000000..12b0e5017 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSNewArrayInstanceExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..bb0452a04 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSNewClassInstanceExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..23233fc80 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSNewMultiDimArrayInstanceExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..918f435aa --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSNullType extends AstNode { +} \ 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 new file mode 100644 index 000000000..c918c9b1d --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSPackageDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..b2910fbb2 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSParameterExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..7f8403d25 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSPrimitiveType extends AstNode { +} \ 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 new file mode 100644 index 000000000..8783356a4 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSReExportDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..907a3ad5e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSStructDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..90605b1d2 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSTuple extends AstNode { +} \ 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 new file mode 100644 index 000000000..41121ca81 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSTypeReference extends AstNode { +} \ 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 new file mode 100644 index 000000000..2ec89f021 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSTypeReferencePart extends AstNode { +} \ 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 new file mode 100644 index 000000000..d4cc3db1f --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSUndefinedType extends AstNode { +} \ 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 new file mode 100644 index 000000000..87deca03e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSUnionType extends AstNode { +} \ 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 new file mode 100644 index 000000000..d427ccd79 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ETSWildcardType extends AstNode { +} \ 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 new file mode 100644 index 000000000..21d441a53 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class EmptyStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..b3603633a --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ExportAllDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..2e0cf4457 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ExportDefaultDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..27cdb7b7b --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ExportNamedDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..614a859fd --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ExportSpecifier extends AstNode { +} \ 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 new file mode 100644 index 000000000..8e1f479ce --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/Expression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class Expression extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts new file mode 100644 index 000000000..c48137e45 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ExpressionStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..5eaa68a03 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ForInStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..63bf7fd47 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ForOfStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..914da6ffd --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ForUpdateStatement extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts new file mode 100644 index 000000000..36a432873 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class FunctionDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..3c6ddf3a2 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class FunctionExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..f21d42510 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class Identifier extends AstNode { +} \ 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 new file mode 100644 index 000000000..b27ddefad --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class IfStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..bd15deb13 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ImportDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..bb0e364a1 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ImportDefaultSpecifier extends AstNode { +} \ 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 new file mode 100644 index 000000000..a837d3385 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ImportExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..ba16feb35 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ImportNamespaceSpecifier extends AstNode { +} \ 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 new file mode 100644 index 000000000..611a6b1d8 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ImportSpecifier extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts new file mode 100644 index 000000000..d54feff7b --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class LabelledStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..dedaf507b --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/Literal.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class Literal extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts new file mode 100644 index 000000000..4dcdc0718 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class LoopStatement extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts new file mode 100644 index 000000000..368d349d1 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class MaybeOptionalExpression extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts new file mode 100644 index 000000000..d16611eab --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class MemberExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..2be94ca46 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class MetaProperty extends AstNode { +} \ 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 new file mode 100644 index 000000000..2918a4144 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class MethodDefinition extends AstNode { +} \ 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 new file mode 100644 index 000000000..6ff015e30 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class NamedType extends AstNode { +} \ 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 new file mode 100644 index 000000000..424203244 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class NewExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..37e51ed23 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class NullLiteral extends AstNode { +} \ 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 new file mode 100644 index 000000000..8f8f507f5 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class NumberLiteral extends AstNode { +} \ 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 new file mode 100644 index 000000000..a5d822e12 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ObjectExpression extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts new file mode 100644 index 000000000..4b08487b4 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class OmittedExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..e21fac823 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class OpaqueTypeNode extends AstNode { +} \ 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 new file mode 100644 index 000000000..9f62e4ff8 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class PrefixAssertionExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..90320bbc0 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/Property.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class Property extends AstNode { +} \ 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 new file mode 100644 index 000000000..422fe0b52 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class RegExpLiteral extends AstNode { +} \ 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 new file mode 100644 index 000000000..f9d90e7ed --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ReturnStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..8d49e05c6 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ScriptFunction extends AstNode { +} \ 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 new file mode 100644 index 000000000..ec6fb06f9 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class SequenceExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..a82389f3f --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class SpreadElement extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts new file mode 100644 index 000000000..09cafa323 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class Statement extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts new file mode 100644 index 000000000..c999fa7d0 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class StringLiteral extends AstNode { +} \ 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 new file mode 100644 index 000000000..9b59d3343 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class SuperExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..1ea6bc23f --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class SwitchCaseStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..d9cc84679 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class SwitchStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..64e79c7cb --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSAnyKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..92a074c8d --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSArrayType extends AstNode { +} \ 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 new file mode 100644 index 000000000..7086aa1fa --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSAsExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..e17e6776e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSBigintKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..79131e973 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSBooleanKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..2c5337e7c --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSClassImplements extends AstNode { +} \ 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 new file mode 100644 index 000000000..af84e887c --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSConditionalType extends AstNode { +} \ 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 new file mode 100644 index 000000000..695defc74 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSConstructorType extends AstNode { +} \ 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 new file mode 100644 index 000000000..afe5edc92 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSEnumDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..e4ce7d0c1 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSEnumMember extends AstNode { +} \ 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 new file mode 100644 index 000000000..e6a0c3ae1 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSExternalModuleReference extends AstNode { +} \ 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 new file mode 100644 index 000000000..5941d1e72 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSFunctionType extends AstNode { +} \ 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 new file mode 100644 index 000000000..0dc8b32c3 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSImportEqualsDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..26a3e3adc --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSImportType extends AstNode { +} \ 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 new file mode 100644 index 000000000..f2c518e31 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSIndexSignature extends AstNode { +} \ 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 new file mode 100644 index 000000000..97e91bd65 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSIndexedAccessType extends AstNode { +} \ 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 new file mode 100644 index 000000000..8a4485df1 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSInferType extends AstNode { +} \ 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 new file mode 100644 index 000000000..bf0ecf83c --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSInterfaceBody extends AstNode { +} \ 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 new file mode 100644 index 000000000..59fb42730 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSInterfaceDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..3f887eed5 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSInterfaceHeritage extends AstNode { +} \ 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 new file mode 100644 index 000000000..9cfd644ce --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSIntersectionType extends AstNode { +} \ 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 new file mode 100644 index 000000000..660721a09 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSLiteralType extends AstNode { +} \ 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 new file mode 100644 index 000000000..26d43d12d --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSMappedType extends AstNode { +} \ 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 new file mode 100644 index 000000000..4fbce646f --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSMethodSignature extends AstNode { +} \ 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 new file mode 100644 index 000000000..8fb777499 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSModuleBlock extends AstNode { +} \ 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 new file mode 100644 index 000000000..eb5c2b6dd --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSModuleDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..0f9e8290d --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSNamedTupleMember extends AstNode { +} \ 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 new file mode 100644 index 000000000..4ee2c0bc3 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSNeverKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..2baabd617 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSNonNullExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..9f5380151 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSNullKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..3b217200e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSNumberKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..cfa373de2 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSObjectKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..cacc62e0b --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSParameterProperty extends AstNode { +} \ 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 new file mode 100644 index 000000000..c4844a58b --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSParenthesizedType extends AstNode { +} \ 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 new file mode 100644 index 000000000..6a39f235a --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSPropertySignature extends AstNode { +} \ 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 new file mode 100644 index 000000000..3175f1f9f --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSQualifiedName extends AstNode { +} \ 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 new file mode 100644 index 000000000..d6f0f152e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSSignatureDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..9fdaa842a --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSStringKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..98b32e00b --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSThisType extends AstNode { +} \ 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 new file mode 100644 index 000000000..de9751166 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTupleType extends AstNode { +} \ 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 new file mode 100644 index 000000000..81c16119a --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTypeAliasDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..a4ca07ceb --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTypeAssertion extends AstNode { +} \ 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 new file mode 100644 index 000000000..dc7cdd1f8 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTypeLiteral extends AstNode { +} \ 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 new file mode 100644 index 000000000..80ee0f825 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTypeOperator extends AstNode { +} \ 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 new file mode 100644 index 000000000..6118baa7e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTypeParameter extends AstNode { +} \ 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 new file mode 100644 index 000000000..09661ce9a --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTypeParameterDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..1ddd27bef --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTypeParameterInstantiation extends AstNode { +} \ 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 new file mode 100644 index 000000000..b5fcc03b6 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTypePredicate extends AstNode { +} \ 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 new file mode 100644 index 000000000..3497c85be --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTypeQuery extends AstNode { +} \ 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 new file mode 100644 index 000000000..3a82700cd --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSTypeReference extends AstNode { +} \ 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 new file mode 100644 index 000000000..b1a7c2ce0 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSUndefinedKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..bd7eca681 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSUnionType extends AstNode { +} \ 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 new file mode 100644 index 000000000..77080315b --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSUnknownKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..9f74d5bd7 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TSVoidKeyword extends AstNode { +} \ 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 new file mode 100644 index 000000000..12694a960 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TaggedTemplateExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..70ccee8a9 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TemplateElement extends AstNode { +} \ 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 new file mode 100644 index 000000000..d83888b76 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TemplateLiteral extends AstNode { +} \ 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 new file mode 100644 index 000000000..7d1f0629e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ThisExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..7e1cd64ed --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class ThrowStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..86060a396 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TryStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..99670655b --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TypeNode extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts new file mode 100644 index 000000000..284ee4882 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TypedAstNode extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts new file mode 100644 index 000000000..b2800a3f7 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TypedStatement extends AstNode { +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts new file mode 100644 index 000000000..a694b2b02 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class TypeofExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..6f651eb85 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class UnaryExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..7d07c339e --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class UndefinedLiteral extends AstNode { +} \ 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 new file mode 100644 index 000000000..c1ef6622f --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class UpdateExpression extends AstNode { +} \ 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 new file mode 100644 index 000000000..2be92a761 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class VariableDeclaration extends AstNode { +} \ 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 new file mode 100644 index 000000000..41a192fd9 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class VariableDeclarator extends AstNode { +} \ 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 new file mode 100644 index 000000000..ca65798bd --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class WhileStatement extends AstNode { +} \ 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 new file mode 100644 index 000000000..fa850dffc --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { + global, + passNode, + unpackNonNullableNode, + Es2pandaMemberExpressionKind, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +export class YieldExpression extends AstNode { +} \ No newline at end of file -- Gitee From e6da7db82ca6cedbf9344ed637d7f23c0ec985da Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 5 Feb 2025 11:11:36 +0300 Subject: [PATCH 6/7] fix imp-ort + madge Signed-off-by: naumovdmitrii --- arkoala-arkts/libarkts/package.json | 1 - arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index cd25984e6..321065a95 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -11,7 +11,6 @@ "./build/*" ], "dependencies": { - "madge": "^8.0.0" }, "scripts": { "clean": "rimraf build native/build*", diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts index 0b38bb4c9..99ff70be6 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts @@ -20,7 +20,7 @@ import { unpackNodeArray, unpackNonNullableNode, unpackString } from "../utiliti import { throwError } from "../../utils" import { Es2pandaModifierFlags } from "../../generated/Es2pandaEnums" import { allFlags } from "../types" -import { KInt } from "@koalaui/arkts-loader/src/loader" +import { KInt } from "@koalaui/interop" import { isNullPtr, nullptr } from "@koalaui/interop" import { ArktsObject } from "./ArktsObject" -- Gitee From d8b73886c363196cac015ef8d34e6bf30ad6e35d Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 5 Feb 2025 11:39:27 +0300 Subject: [PATCH 7/7] fix imp-ort + madge Signed-off-by: naumovdmitrii --- arkoala-arkts/libarkts/src/es2panda.ts | 12 +++++------- arkoala-arkts/libarkts/src/utils.ts | 6 +++++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/arkoala-arkts/libarkts/src/es2panda.ts b/arkoala-arkts/libarkts/src/es2panda.ts index 4912a2029..95788d6eb 100644 --- a/arkoala-arkts/libarkts/src/es2panda.ts +++ b/arkoala-arkts/libarkts/src/es2panda.ts @@ -17,7 +17,7 @@ import * as fs from "node:fs" import * as path from "node:path" import { global } from "./arkts-api/static/global" import { Command } from "commander" -import { throwError, withWarning } from "./utils" +import { isNumber, throwError, withWarning } from "./utils" import { Es2pandaContextState } from "./generated/Es2pandaEnums" import { AstNode, Config, Context, EtsScript, proceedToState } from "./arkts-api" @@ -124,8 +124,9 @@ function loadPlugin(configDir: string, jsonPlugin: any) { const pluginPath = jsonPlugin.transform ?? throwError(`arktsconfig plugins objects should specify transform`) /** TODO: read and pass plugin options */ const options = jsonPlugin.options ?? {} - const plugin = (pluginPath.startsWith(".") || pluginPath.startsWith("/")) ? - path.resolve(configDir, pluginPath) : pluginPath + const plugin = (pluginPath.startsWith(".") || pluginPath.startsWith("/")) + ? path.resolve(configDir, pluginPath) + : pluginPath return require(plugin).default() } @@ -148,11 +149,8 @@ function readAndSortPlugins(configDir: string, plugins: any[]) { const pluginsByState = new Map void>() Object.values(Es2pandaContextState) - .filter(it => typeof it === "number") + .filter(isNumber) .forEach(it => { - if (typeof it !== "number") { - throwError(`Non-number es2panda enum: ${typeof it}`) - } pluginsByState.set( it, selectPlugins(configDir, plugins, stateName(it).toLowerCase()) diff --git a/arkoala-arkts/libarkts/src/utils.ts b/arkoala-arkts/libarkts/src/utils.ts index eef3d501f..20dc342e5 100644 --- a/arkoala-arkts/libarkts/src/utils.ts +++ b/arkoala-arkts/libarkts/src/utils.ts @@ -20,4 +20,8 @@ export function throwError(error: string): never { export function withWarning(value: T, message: string): T { console.warn(message) return value -} \ No newline at end of file +} + +export function isNumber(value: any): value is number { + return typeof value === `number` +} -- Gitee