@abaplint/core 2.100.3 → 2.100.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/src/registry.js
CHANGED
|
@@ -2066,11 +2066,12 @@ ${indentation} output = ${topTarget}.`;
|
|
|
2066
2066
|
body += indentation + structureName + "-" + b.concatTokens() + ".\n";
|
|
2067
2067
|
}
|
|
2068
2068
|
else if (b.get() instanceof Expressions.Source) {
|
|
2069
|
-
|
|
2069
|
+
// note: it wont work with APPEND for Hashed/Sorted Tables, so use INSERT,
|
|
2070
|
+
body += indentation + "INSERT " + b.concatTokens() + ` INTO TABLE ${uniqueName}.\n`;
|
|
2070
2071
|
skip = true;
|
|
2071
2072
|
}
|
|
2072
2073
|
else if (b.get() instanceof Expressions.ValueBodyLines) {
|
|
2073
|
-
body += indentation + "
|
|
2074
|
+
body += indentation + "INSERT " + b.concatTokens() + ` INTO TABLE ${uniqueName}.\n`;
|
|
2074
2075
|
skip = true;
|
|
2075
2076
|
}
|
|
2076
2077
|
else if (b.concatTokens() === ")") {
|
|
@@ -2079,7 +2080,7 @@ ${indentation} output = ${topTarget}.`;
|
|
|
2079
2080
|
added = true;
|
|
2080
2081
|
}
|
|
2081
2082
|
if (skip === false) {
|
|
2082
|
-
body += indentation + `
|
|
2083
|
+
body += indentation + `INSERT ${structureName} INTO TABLE ${uniqueName}.\n`;
|
|
2083
2084
|
}
|
|
2084
2085
|
}
|
|
2085
2086
|
previous = b;
|
|
@@ -49,7 +49,16 @@ IF condition1.
|
|
|
49
49
|
...
|
|
50
50
|
ELSEIF condition2.
|
|
51
51
|
...
|
|
52
|
-
ENDIF
|
|
52
|
+
ENDIF.
|
|
53
|
+
|
|
54
|
+
CASE variable.
|
|
55
|
+
WHEN value1.
|
|
56
|
+
...
|
|
57
|
+
WHEN value2.
|
|
58
|
+
IF condition2.
|
|
59
|
+
...
|
|
60
|
+
ENDIF.
|
|
61
|
+
ENDCASE.`,
|
|
53
62
|
tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Quickfix],
|
|
54
63
|
};
|
|
55
64
|
}
|
|
@@ -48,13 +48,15 @@ class TypesNaming extends _abap_rule_1.ABAPRule {
|
|
|
48
48
|
if (stat.get() instanceof Statements.Type && nesting === 0) {
|
|
49
49
|
expr = stat.findFirstExpression(Expressions.NamespaceSimpleName);
|
|
50
50
|
}
|
|
51
|
-
else if (stat.get() instanceof Statements.TypeBegin
|
|
51
|
+
else if (stat.get() instanceof Statements.TypeBegin
|
|
52
|
+
|| stat.get() instanceof Statements.TypeEnumBegin) {
|
|
52
53
|
if (nesting === 0) {
|
|
53
54
|
expr = stat.findFirstExpression(Expressions.NamespaceSimpleName);
|
|
54
55
|
}
|
|
55
56
|
nesting = nesting + 1;
|
|
56
57
|
}
|
|
57
|
-
else if (stat.get() instanceof Statements.TypeEnd
|
|
58
|
+
else if (stat.get() instanceof Statements.TypeEnd
|
|
59
|
+
|| stat.get() instanceof Statements.TypeEnumEnd) {
|
|
58
60
|
nesting = nesting - 1;
|
|
59
61
|
continue;
|
|
60
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.100.
|
|
3
|
+
"version": "2.100.5",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@microsoft/api-extractor": "^7.34.9",
|
|
52
52
|
"@types/chai": "^4.3.5",
|
|
53
53
|
"@types/mocha": "^10.0.1",
|
|
54
|
-
"@types/node": "^20.1
|
|
54
|
+
"@types/node": "^20.2.1",
|
|
55
55
|
"chai": "^4.3.7",
|
|
56
56
|
"eslint": "^8.40.0",
|
|
57
57
|
"mocha": "^10.2.0",
|