@abaplint/core 2.113.99 → 2.113.101
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.
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Convert = void 0;
|
|
4
4
|
const combi_1 = require("../combi");
|
|
5
5
|
const expressions_1 = require("../expressions");
|
|
6
|
+
const version_1 = require("../../../version");
|
|
6
7
|
class Convert {
|
|
7
8
|
getMatcher() {
|
|
8
9
|
const intoTime = (0, combi_1.seq)("TIME", expressions_1.Target);
|
|
@@ -14,10 +15,12 @@ class Convert {
|
|
|
14
15
|
const dat = (0, combi_1.seq)("DATE", expressions_1.Source);
|
|
15
16
|
const tim = (0, combi_1.seq)("TIME", expressions_1.Source);
|
|
16
17
|
const stamp = (0, combi_1.seq)("INTO TIME STAMP", expressions_1.Target);
|
|
18
|
+
const intoutc = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("INTO UTCLONG", expressions_1.Target));
|
|
17
19
|
const invert = (0, combi_1.seq)("INTO INVERTED-DATE", expressions_1.Target);
|
|
18
|
-
const date = (0, combi_1.seq)((0, combi_1.per)(dat, tim), (0, combi_1.per)(daylight, stamp, zone, invert));
|
|
20
|
+
const date = (0, combi_1.seq)((0, combi_1.per)(dat, tim), (0, combi_1.per)(daylight, stamp, zone, invert, intoutc));
|
|
19
21
|
const inv = (0, combi_1.seq)("INVERTED-DATE", expressions_1.Source, "INTO DATE", expressions_1.Target);
|
|
20
|
-
|
|
22
|
+
const utclong = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("UTCLONG", expressions_1.Source, (0, combi_1.per)(zone, into, daylight)));
|
|
23
|
+
return (0, combi_1.seq)("CONVERT", (0, combi_1.alt)(time, date, inv, utclong));
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
exports.Convert = Convert;
|
|
@@ -42,7 +42,12 @@ class MethodSource {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
if (context instanceof basic_1.VoidType) {
|
|
45
|
-
|
|
45
|
+
while (children.length > 0) {
|
|
46
|
+
const current = children.shift();
|
|
47
|
+
if (current instanceof nodes_1.ExpressionNode && current.get() instanceof Expressions.Dynamic) {
|
|
48
|
+
new dynamic_1.Dynamic().runSyntax(current, input);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
46
51
|
return context;
|
|
47
52
|
}
|
|
48
53
|
while (children.length > 0) {
|
|
@@ -242,6 +242,13 @@ class StatementFlow {
|
|
|
242
242
|
graph.addEdge(current, name, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
243
243
|
graph.addEdge(name, graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
244
244
|
}
|
|
245
|
+
else if (type instanceof Structures.TestSeam) {
|
|
246
|
+
const name = StatementFlow.buildName(n.getFirstStatement());
|
|
247
|
+
const sub = this.traverseBody(this.findBody(n), context);
|
|
248
|
+
graph.addEdge(current, name, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
249
|
+
graph.addGraph(name, sub, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
250
|
+
graph.addEdge(sub.getEnd(), graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
251
|
+
}
|
|
245
252
|
else if (type instanceof Structures.AtFirst
|
|
246
253
|
|| type instanceof Structures.AtLast
|
|
247
254
|
|| type instanceof Structures.At
|
|
@@ -321,7 +328,8 @@ class StatementFlow {
|
|
|
321
328
|
graph.addEdge(caseName, graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
322
329
|
}
|
|
323
330
|
}
|
|
324
|
-
else if (type instanceof Structures.Define
|
|
331
|
+
else if (type instanceof Structures.Define
|
|
332
|
+
|| type instanceof Structures.TestInjection) {
|
|
325
333
|
// do nothing
|
|
326
334
|
}
|
|
327
335
|
else {
|
|
@@ -6,7 +6,7 @@ const combi_1 = require("../../abap/2_statements/combi");
|
|
|
6
6
|
class CDSCast extends combi_1.Expression {
|
|
7
7
|
getRunnable() {
|
|
8
8
|
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.optPrio)((0, combi_1.seq)(".", _1.CDSName)));
|
|
9
|
-
return (0, combi_1.seq)("CAST", "(", (0, combi_1.altPrio)(_1.CDSFunction, _1.CDSCase, _1.CDSAggregate, CDSCast, _1.CDSString,
|
|
9
|
+
return (0, combi_1.seq)("CAST", "(", (0, combi_1.altPrio)(_1.CDSFunction, _1.CDSCase, _1.CDSAggregate, _1.CDSArithmetics, CDSCast, _1.CDSString, name), "AS", _1.CDSType, (0, combi_1.optPrio)((0, combi_1.seq)("PRESERVING", "TYPE")), ")");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
exports.CDSCast = CDSCast;
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.101",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://abaplint.org",
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@microsoft/api-extractor": "^7.49.
|
|
53
|
+
"@microsoft/api-extractor": "^7.49.2",
|
|
54
54
|
"@types/chai": "^4.3.20",
|
|
55
55
|
"@types/mocha": "^10.0.10",
|
|
56
|
-
"@types/node": "^22.
|
|
56
|
+
"@types/node": "^22.12.0",
|
|
57
57
|
"chai": "^4.5.0",
|
|
58
58
|
"eslint": "^9.19.0",
|
|
59
59
|
"mocha": "^11.1.0",
|