@abaplint/core 2.113.3 → 2.113.5
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/abaplint.d.ts +6 -0
- package/build/src/abap/2_statements/expressions/select_loop.js +1 -1
- package/build/src/abap/flow/selection_events.js +1 -0
- package/build/src/abap/flow/statement_flow.js +1 -0
- package/build/src/objects/data_element.js +12 -0
- package/build/src/registry.js +1 -1
- package/package.json +3 -3
package/build/abaplint.d.ts
CHANGED
|
@@ -1565,6 +1565,12 @@ declare class DataElement extends AbstractObject {
|
|
|
1565
1565
|
};
|
|
1566
1566
|
setDirty(): void;
|
|
1567
1567
|
getDomainName(): string | undefined;
|
|
1568
|
+
getTexts(): {
|
|
1569
|
+
short?: string;
|
|
1570
|
+
medium?: string;
|
|
1571
|
+
long?: string;
|
|
1572
|
+
heading?: string;
|
|
1573
|
+
} | undefined;
|
|
1568
1574
|
parseType(reg: IRegistry): AbstractType;
|
|
1569
1575
|
parse(): {
|
|
1570
1576
|
updated: boolean;
|
|
@@ -19,7 +19,7 @@ class SelectLoop extends combi_1.Expression {
|
|
|
19
19
|
const packTab = (0, combi_1.seq)(pack, _1.SQLIntoTable);
|
|
20
20
|
const into = (0, combi_1.altPrio)(sql_into_structure_1.SQLIntoStructure, _1.SQLIntoList);
|
|
21
21
|
const perm = (0, combi_1.per)(_1.SQLFrom, where, sql_up_to_1.SQLUpTo, sql_order_by_1.SQLOrderBy, sql_having_1.SQLHaving, _1.SQLClient, bypass, _1.SQLGroupBy, _1.SQLForAllEntries, (0, combi_1.alt)(tab, into, packTab));
|
|
22
|
-
const strict = (0, combi_1.seq)(_1.SQLFrom, (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields), where, into, sql_up_to_1.SQLUpTo);
|
|
22
|
+
const strict = (0, combi_1.seq)(_1.SQLFrom, (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields), (0, combi_1.optPrio)((0, combi_1.seq)(where, into, sql_up_to_1.SQLUpTo)));
|
|
23
23
|
const ret = (0, combi_1.seq)("SELECT", (0, combi_1.altPrio)((0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), sql_field_list_loop_1.SQLFieldListLoop, perm), strict), (0, combi_1.optPrio)(sql_hints_1.SQLHints));
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
@@ -222,6 +222,7 @@ class StatementFlow {
|
|
|
222
222
|
graph.addEdge(loopName, graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.false);
|
|
223
223
|
}
|
|
224
224
|
else if (type instanceof Structures.Data
|
|
225
|
+
|| type instanceof Structures.Constants
|
|
225
226
|
|| type instanceof Structures.Types) {
|
|
226
227
|
// these doesnt affect control flow, so just take the first statement
|
|
227
228
|
const statement = n.getFirstStatement();
|
|
@@ -14,6 +14,7 @@ class DataElement extends _abstract_object_1.AbstractObject {
|
|
|
14
14
|
}
|
|
15
15
|
getDescription() {
|
|
16
16
|
var _a;
|
|
17
|
+
this.parse();
|
|
17
18
|
return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.description;
|
|
18
19
|
}
|
|
19
20
|
getAllowedNaming() {
|
|
@@ -31,6 +32,11 @@ class DataElement extends _abstract_object_1.AbstractObject {
|
|
|
31
32
|
this.parse();
|
|
32
33
|
return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.domname;
|
|
33
34
|
}
|
|
35
|
+
getTexts() {
|
|
36
|
+
var _a;
|
|
37
|
+
this.parse();
|
|
38
|
+
return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.texts;
|
|
39
|
+
}
|
|
34
40
|
parseType(reg) {
|
|
35
41
|
const references = [];
|
|
36
42
|
let lookup = undefined;
|
|
@@ -89,6 +95,12 @@ class DataElement extends _abstract_object_1.AbstractObject {
|
|
|
89
95
|
datatype: dd04v === null || dd04v === void 0 ? void 0 : dd04v.DATATYPE,
|
|
90
96
|
leng: dd04v === null || dd04v === void 0 ? void 0 : dd04v.LENG,
|
|
91
97
|
decimals: dd04v === null || dd04v === void 0 ? void 0 : dd04v.DECIMALS,
|
|
98
|
+
texts: {
|
|
99
|
+
short: dd04v === null || dd04v === void 0 ? void 0 : dd04v.SCRTEXT_S,
|
|
100
|
+
medium: dd04v === null || dd04v === void 0 ? void 0 : dd04v.SCRTEXT_M,
|
|
101
|
+
long: dd04v === null || dd04v === void 0 ? void 0 : dd04v.SCRTEXT_L,
|
|
102
|
+
heading: dd04v === null || dd04v === void 0 ? void 0 : dd04v.REPTEXT,
|
|
103
|
+
},
|
|
92
104
|
};
|
|
93
105
|
const end = Date.now();
|
|
94
106
|
return { updated: true, runtime: end - start };
|
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.5",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@microsoft/api-extractor": "^7.47.7",
|
|
54
54
|
"@types/chai": "^4.3.19",
|
|
55
55
|
"@types/mocha": "^10.0.7",
|
|
56
|
-
"@types/node": "^22.5.
|
|
56
|
+
"@types/node": "^22.5.4",
|
|
57
57
|
"chai": "^4.5.0",
|
|
58
58
|
"eslint": "^9.9.1",
|
|
59
59
|
"mocha": "^10.7.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.5.4"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"fast-xml-parser": "^4.
|
|
66
|
+
"fast-xml-parser": "^4.5.0",
|
|
67
67
|
"json5": "^2.2.3",
|
|
68
68
|
"vscode-languageserver-types": "^3.17.5"
|
|
69
69
|
}
|