@abaplint/transpiler-cli 2.13.3 → 2.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bundle.js +16 -4
- package/package.json +3 -3
- package/schema.json +0 -219
package/build/bundle.js
CHANGED
|
@@ -23385,7 +23385,7 @@ class BasicTypes {
|
|
|
23385
23385
|
}
|
|
23386
23386
|
}
|
|
23387
23387
|
this.input.scope.addReference(token, typ, _reference_1.ReferenceType.TypeReference, this.input.filename);
|
|
23388
|
-
return typ.getType();
|
|
23388
|
+
return this.cloneType(typ.getType(), qualifiedName);
|
|
23389
23389
|
}
|
|
23390
23390
|
const type = (_a = this.input.scope.findTypePoolType(chainText)) === null || _a === void 0 ? void 0 : _a.getType();
|
|
23391
23391
|
if (type) {
|
|
@@ -54949,7 +54949,7 @@ class Registry {
|
|
|
54949
54949
|
}
|
|
54950
54950
|
static abaplintVersion() {
|
|
54951
54951
|
// magic, see build script "version.sh"
|
|
54952
|
-
return "2.118.
|
|
54952
|
+
return "2.118.8";
|
|
54953
54953
|
}
|
|
54954
54954
|
getDDICReferences() {
|
|
54955
54955
|
return this.ddicReferences;
|
|
@@ -86306,7 +86306,7 @@ class Rearranger {
|
|
|
86306
86306
|
return;
|
|
86307
86307
|
}
|
|
86308
86308
|
let splitAt;
|
|
86309
|
-
//
|
|
86309
|
+
// lowest precedence: +, - (skip **, *, /, MOD, DIV)
|
|
86310
86310
|
for (let i = arith.length - 1; i >= 0; i--) {
|
|
86311
86311
|
const a = arith[i];
|
|
86312
86312
|
const concat = a.concatTokens().toUpperCase();
|
|
@@ -86320,7 +86320,19 @@ class Rearranger {
|
|
|
86320
86320
|
splitAt = a;
|
|
86321
86321
|
break;
|
|
86322
86322
|
}
|
|
86323
|
-
//
|
|
86323
|
+
// medium precedence: *, /, MOD, DIV (skip only **)
|
|
86324
|
+
if (splitAt === undefined) {
|
|
86325
|
+
for (let i = arith.length - 1; i >= 0; i--) {
|
|
86326
|
+
const a = arith[i];
|
|
86327
|
+
const concat = a.concatTokens().toUpperCase();
|
|
86328
|
+
if (concat === "**") {
|
|
86329
|
+
continue;
|
|
86330
|
+
}
|
|
86331
|
+
splitAt = a;
|
|
86332
|
+
break;
|
|
86333
|
+
}
|
|
86334
|
+
}
|
|
86335
|
+
// fallback: all ** operators
|
|
86324
86336
|
if (splitAt === undefined) {
|
|
86325
86337
|
splitAt = arith[arith.length - 1];
|
|
86326
86338
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.4",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@abaplint/core": "^2.118.
|
|
31
|
-
"@abaplint/transpiler": "^2.13.
|
|
30
|
+
"@abaplint/core": "^2.118.8",
|
|
31
|
+
"@abaplint/transpiler": "^2.13.4",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.12.0",
|
|
34
34
|
"@types/progress": "^2.0.7",
|
package/schema.json
DELETED
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$ref": "#/definitions/ITranspilerConfig",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"ITranspilerConfig": {
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"properties": {
|
|
8
|
-
"exclude_filter": {
|
|
9
|
-
"description": "list of regex, case insensitive",
|
|
10
|
-
"items": {
|
|
11
|
-
"type": "string"
|
|
12
|
-
},
|
|
13
|
-
"type": "array",
|
|
14
|
-
"uniqueItems": true
|
|
15
|
-
},
|
|
16
|
-
"input_filter": {
|
|
17
|
-
"description": "list of regex, case insensitive, empty gives all files, positive list",
|
|
18
|
-
"items": {
|
|
19
|
-
"type": "string"
|
|
20
|
-
},
|
|
21
|
-
"type": "array",
|
|
22
|
-
"uniqueItems": true
|
|
23
|
-
},
|
|
24
|
-
"input_folder": {
|
|
25
|
-
"anyOf": [
|
|
26
|
-
{
|
|
27
|
-
"type": "string"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"items": {
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
"type": "array"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"libs": {
|
|
38
|
-
"items": {
|
|
39
|
-
"additionalProperties": false,
|
|
40
|
-
"properties": {
|
|
41
|
-
"exclude_filter": {
|
|
42
|
-
"description": "list of regex, case insensitive",
|
|
43
|
-
"items": {
|
|
44
|
-
"type": "string"
|
|
45
|
-
},
|
|
46
|
-
"type": "array",
|
|
47
|
-
"uniqueItems": true
|
|
48
|
-
},
|
|
49
|
-
"files": {
|
|
50
|
-
"anyOf": [
|
|
51
|
-
{
|
|
52
|
-
"type": "string"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"items": {
|
|
56
|
-
"type": "string"
|
|
57
|
-
},
|
|
58
|
-
"type": "array"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
"folder": {
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
|
-
"url": {
|
|
66
|
-
"type": "string"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"type": "object"
|
|
70
|
-
},
|
|
71
|
-
"type": "array"
|
|
72
|
-
},
|
|
73
|
-
"options": {
|
|
74
|
-
"$ref": "#/definitions/ITranspilerOptions"
|
|
75
|
-
},
|
|
76
|
-
"output_folder": {
|
|
77
|
-
"type": "string"
|
|
78
|
-
},
|
|
79
|
-
"write_source_map": {
|
|
80
|
-
"type": "boolean"
|
|
81
|
-
},
|
|
82
|
-
"write_unit_tests": {
|
|
83
|
-
"type": "boolean"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"required": [
|
|
87
|
-
"input_folder",
|
|
88
|
-
"output_folder",
|
|
89
|
-
"options"
|
|
90
|
-
],
|
|
91
|
-
"type": "object"
|
|
92
|
-
},
|
|
93
|
-
"ITranspilerOptions": {
|
|
94
|
-
"additionalProperties": false,
|
|
95
|
-
"properties": {
|
|
96
|
-
"addCommonJS": {
|
|
97
|
-
"description": "adds common js modules",
|
|
98
|
-
"type": "boolean"
|
|
99
|
-
},
|
|
100
|
-
"addFilenames": {
|
|
101
|
-
"description": "adds filenames as comments in the output js",
|
|
102
|
-
"type": "boolean"
|
|
103
|
-
},
|
|
104
|
-
"ignoreSourceMap": {
|
|
105
|
-
"description": "ignore source map",
|
|
106
|
-
"type": "boolean"
|
|
107
|
-
},
|
|
108
|
-
"ignoreSyntaxCheck": {
|
|
109
|
-
"description": "ignore syntax check, used for internal testing",
|
|
110
|
-
"type": "boolean"
|
|
111
|
-
},
|
|
112
|
-
"importProg": {
|
|
113
|
-
"description": "import programs",
|
|
114
|
-
"type": "boolean"
|
|
115
|
-
},
|
|
116
|
-
"keywords": {
|
|
117
|
-
"description": "list of keywords to rename, if not supplied default will be used",
|
|
118
|
-
"items": {
|
|
119
|
-
"type": "string"
|
|
120
|
-
},
|
|
121
|
-
"type": "array"
|
|
122
|
-
},
|
|
123
|
-
"populateTables": {
|
|
124
|
-
"additionalProperties": false,
|
|
125
|
-
"description": "populate tables, all tables are populated if undefined and they exist",
|
|
126
|
-
"properties": {
|
|
127
|
-
"reposrc": {
|
|
128
|
-
"description": "insert into REPOSRC, skips if equals false",
|
|
129
|
-
"type": "boolean"
|
|
130
|
-
},
|
|
131
|
-
"seosubco": {
|
|
132
|
-
"description": "insert into SEOSUBCO, skips if equals false",
|
|
133
|
-
"type": "boolean"
|
|
134
|
-
},
|
|
135
|
-
"seosubcodf": {
|
|
136
|
-
"description": "insert into SEOSUBCODF, skips if equals false",
|
|
137
|
-
"type": "boolean"
|
|
138
|
-
},
|
|
139
|
-
"seosubcotx": {
|
|
140
|
-
"description": "insert into SEOSUBCOTX, skips if equals false",
|
|
141
|
-
"type": "boolean"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"type": "object"
|
|
145
|
-
},
|
|
146
|
-
"setup": {
|
|
147
|
-
"additionalProperties": false,
|
|
148
|
-
"description": "extra setup script to be executed during initialization",
|
|
149
|
-
"properties": {
|
|
150
|
-
"filename": {
|
|
151
|
-
"type": "string"
|
|
152
|
-
},
|
|
153
|
-
"postFunction": {
|
|
154
|
-
"type": "string"
|
|
155
|
-
},
|
|
156
|
-
"preFunction": {
|
|
157
|
-
"type": "string"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"required": [
|
|
161
|
-
"filename"
|
|
162
|
-
],
|
|
163
|
-
"type": "object"
|
|
164
|
-
},
|
|
165
|
-
"skip": {
|
|
166
|
-
"$ref": "#/definitions/TestMethodList",
|
|
167
|
-
"description": "list of unit tests to skip"
|
|
168
|
-
},
|
|
169
|
-
"skipVersionCheck": {
|
|
170
|
-
"description": "skips version check, not recommended",
|
|
171
|
-
"type": "boolean"
|
|
172
|
-
},
|
|
173
|
-
"unknownTypes": {
|
|
174
|
-
"$ref": "#/definitions/UnknownTypesEnum",
|
|
175
|
-
"description": "sets behavior for unknown types, either fail at compile- or run-time"
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
"type": "object"
|
|
179
|
-
},
|
|
180
|
-
"TestMethodList": {
|
|
181
|
-
"items": {
|
|
182
|
-
"additionalProperties": false,
|
|
183
|
-
"properties": {
|
|
184
|
-
"class": {
|
|
185
|
-
"pattern": "^[a-zA-Z0-9_\\/]+$",
|
|
186
|
-
"type": "string"
|
|
187
|
-
},
|
|
188
|
-
"method": {
|
|
189
|
-
"pattern": "^[a-zA-Z0-9_\\/]+$",
|
|
190
|
-
"type": "string"
|
|
191
|
-
},
|
|
192
|
-
"note": {
|
|
193
|
-
"type": "string"
|
|
194
|
-
},
|
|
195
|
-
"object": {
|
|
196
|
-
"pattern": "^[a-zA-Z0-9_\\/]+$",
|
|
197
|
-
"type": "string"
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
"required": [
|
|
201
|
-
"object",
|
|
202
|
-
"class",
|
|
203
|
-
"method"
|
|
204
|
-
],
|
|
205
|
-
"type": "object"
|
|
206
|
-
},
|
|
207
|
-
"type": "array",
|
|
208
|
-
"uniqueItems": true
|
|
209
|
-
},
|
|
210
|
-
"UnknownTypesEnum": {
|
|
211
|
-
"enum": [
|
|
212
|
-
"compileError",
|
|
213
|
-
"runtimeError"
|
|
214
|
-
],
|
|
215
|
-
"type": "string"
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|