@idlizer/arktscgen 2.1.10-arktscgen-5 → 2.1.10-arktscgen-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/libarkts-copy/generator/options.json5 +24 -47
- package/build/libarkts-copy/native/meson.build +29 -13
- package/build/libarkts-copy/native/meson_options.txt +9 -3
- package/build/libarkts-copy/native/mingw.cross +2 -0
- package/build/libarkts-copy/native/src/{bridges.cc → bridges.cpp} +31 -92
- package/build/libarkts-copy/native/src/{common.cc → common.cpp} +240 -107
- package/build/libarkts-copy/native/src/common.h +22 -22
- package/build/libarkts-copy/native/src/{memoryTracker.cc → memoryTracker.cpp} +45 -32
- package/build/libarkts-copy/package.json +13 -11
- package/build/libarkts-copy/src/Es2pandaNativeModule.ts +10 -63
- package/build/libarkts-copy/src/arkts-api/AbstractVisitor.ts +9 -3
- package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +10 -7
- package/build/libarkts-copy/src/arkts-api/ProgramProvider.ts +14 -5
- package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +19 -1
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +4 -0
- package/build/libarkts-copy/src/arkts-api/index.ts +0 -2
- package/build/libarkts-copy/src/arkts-api/node-cache.ts +12 -3
- package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/OverloadDeclaration.ts +29 -0
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +4 -4
- package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +0 -16
- package/build/libarkts-copy/src/arkts-api/peers/Config.ts +1 -1
- package/build/libarkts-copy/src/arkts-api/peers/Context.ts +9 -9
- package/build/libarkts-copy/src/arkts-api/plugins.ts +113 -15
- package/build/libarkts-copy/src/arkts-api/static/global.ts +1 -4
- package/build/libarkts-copy/src/arkts-api/static/profiler.ts +5 -5
- package/build/libarkts-copy/src/arkts-api/utilities/performance.ts +2 -1
- package/build/libarkts-copy/src/arkts-api/utilities/private.ts +11 -43
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +41 -9
- package/build/libarkts-copy/src/arkts-api/visitor.ts +4 -25
- package/build/libarkts-copy/src/checkSdk.ts +1 -1
- package/build/libarkts-copy/src/index.ts +1 -2
- package/build/libarkts-copy/src/memo-node-cache.ts +143 -0
- package/build/libarkts-copy/src/plugin-utils.ts +72 -40
- package/build/libarkts-copy/src/reexport-for-generated.ts +3 -1
- package/build/libarkts-copy/src/tracer.ts +2 -2
- package/build/libarkts-copy/src/utils.ts +10 -14
- package/build/libarkts-copy/tsconfig.json +0 -3
- package/lib/index.js +5517 -10446
- package/package.json +9 -7
- package/templates/{bridges.cc → bridges.cpp} +1 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +0 -45
- package/build/libarkts-copy/src/arkts-api/peers/DiagnosticKind.ts +0 -23
- package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +0 -1250
- package/build/libarkts-copy/src/ts-api/factory/nodeTests.ts +0 -125
- package/build/libarkts-copy/src/ts-api/index.ts +0 -27
- package/build/libarkts-copy/src/ts-api/static/enums.ts +0 -18
- package/build/libarkts-copy/src/ts-api/types.ts +0 -1075
- package/build/libarkts-copy/src/ts-api/utilities/private.ts +0 -292
- package/build/libarkts-copy/src/ts-api/utilities/public.ts +0 -55
- package/build/libarkts-copy/src/ts-api/visitor/visitor.ts +0 -139
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import { SyntaxKind } from '@koalaui/ets-tsc';
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
ArrowFunction,
|
|
20
|
-
Block,
|
|
21
|
-
CallExpression,
|
|
22
|
-
ClassDeclaration,
|
|
23
|
-
ExpressionStatement,
|
|
24
|
-
FunctionDeclaration,
|
|
25
|
-
FunctionExpression,
|
|
26
|
-
FunctionTypeNode,
|
|
27
|
-
GetAccessorDeclaration,
|
|
28
|
-
Identifier,
|
|
29
|
-
MethodDeclaration,
|
|
30
|
-
MethodSignature,
|
|
31
|
-
Node,
|
|
32
|
-
ParameterDeclaration,
|
|
33
|
-
PropertyAccessExpression,
|
|
34
|
-
PropertyDeclaration,
|
|
35
|
-
PropertySignature,
|
|
36
|
-
SetAccessorDeclaration,
|
|
37
|
-
SourceFile,
|
|
38
|
-
VariableDeclaration,
|
|
39
|
-
VariableDeclarationList,
|
|
40
|
-
VariableStatement,
|
|
41
|
-
} from '../types';
|
|
42
|
-
|
|
43
|
-
export function isIdentifier(node: Node): node is Identifier {
|
|
44
|
-
return node.kind === SyntaxKind.Identifier;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function isCallExpression(node: Node): node is CallExpression {
|
|
48
|
-
return node.kind === SyntaxKind.CallExpression;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function isPropertyAccessExpression(node: Node): node is PropertyAccessExpression {
|
|
52
|
-
return node.kind === SyntaxKind.PropertyAccessExpression;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function isFunctionDeclaration(node: Node): node is FunctionDeclaration {
|
|
56
|
-
return node.kind === SyntaxKind.FunctionDeclaration;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function isMethodDeclaration(node: Node): node is MethodDeclaration {
|
|
60
|
-
return node.kind === SyntaxKind.MethodDeclaration;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function isSourceFile(node: Node): node is SourceFile {
|
|
64
|
-
return node.kind === SyntaxKind.SourceFile;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function isExpressionStatement(node: Node): node is ExpressionStatement {
|
|
68
|
-
return node.kind === SyntaxKind.ExpressionStatement;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function isArrowFunction(node: Node): node is ArrowFunction {
|
|
72
|
-
return node.kind === SyntaxKind.ArrowFunction;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function isClassDeclaration(node: Node): node is ClassDeclaration {
|
|
76
|
-
return node.kind === SyntaxKind.ClassDeclaration;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function isBlock(node: Node): node is Block {
|
|
80
|
-
return node.kind === SyntaxKind.Block;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function isFunctionExpression(node: Node): node is FunctionExpression {
|
|
84
|
-
return node.kind === SyntaxKind.FunctionExpression;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function isParameter(node: Node): node is ParameterDeclaration {
|
|
88
|
-
return node.kind === SyntaxKind.Parameter;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function isVariableDeclaration(node: Node): node is VariableDeclaration {
|
|
92
|
-
return node.kind === SyntaxKind.VariableDeclaration;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function isVariableDeclarationList(node: Node): node is VariableDeclarationList {
|
|
96
|
-
return node.kind === SyntaxKind.VariableDeclarationList;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function isPropertyDeclaration(node: Node): node is PropertyDeclaration {
|
|
100
|
-
return node.kind === SyntaxKind.PropertyDeclaration;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function isPropertySignature(node: Node): node is PropertySignature {
|
|
104
|
-
return node.kind === SyntaxKind.PropertySignature;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export function isFunctionTypeNode(node: Node): node is FunctionTypeNode {
|
|
108
|
-
return node.kind === SyntaxKind.FunctionType;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function isMethodSignature(node: Node): node is MethodSignature {
|
|
112
|
-
return node.kind === SyntaxKind.MethodSignature;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function isGetAccessorDeclaration(node: Node): node is GetAccessorDeclaration {
|
|
116
|
-
return node.kind === SyntaxKind.GetAccessor;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export function isSetAccessorDeclaration(node: Node): node is SetAccessorDeclaration {
|
|
120
|
-
return node.kind === SyntaxKind.SetAccessor;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export function isVariableStatement(node: Node): node is VariableStatement {
|
|
124
|
-
return node.kind === SyntaxKind.VariableStatement;
|
|
125
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
// Improve: remove private export
|
|
17
|
-
export * from './utilities/private';
|
|
18
|
-
export * from './utilities/public';
|
|
19
|
-
export * from './types';
|
|
20
|
-
export * from './factory/nodeFactory';
|
|
21
|
-
export * from './factory/nodeTests';
|
|
22
|
-
export { visitEachChild } from './visitor/visitor';
|
|
23
|
-
export { SyntaxKind, NodeFlags } from './static/enums';
|
|
24
|
-
|
|
25
|
-
// from ArkTS api
|
|
26
|
-
export * from '../arkts-api/static/global';
|
|
27
|
-
export { Es2pandaContextState as ContextState, Es2pandaPrimitiveType as Es2pandaPrimitiveType } from '../arkts-api';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
export { SyntaxKind } from '@koalaui/ets-tsc';
|
|
17
|
-
export { TokenSyntaxKind } from '@koalaui/ets-tsc';
|
|
18
|
-
export { NodeFlags } from '@koalaui/ets-tsc';
|