@abaplint/core 2.93.74 → 2.93.76
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/abap/2_statements/expressions/select_loop.js +2 -1
- package/build/src/abap/5_syntax/basic_types.js +2 -2
- package/build/src/abap/5_syntax/expressions/attribute_chain.js +1 -1
- package/build/src/abap/5_syntax/expressions/attribute_name.js +1 -1
- package/build/src/abap/5_syntax/expressions/field_chain.js +1 -1
- package/build/src/abap/5_syntax/expressions/method_source.js +1 -1
- package/build/src/abap/5_syntax/expressions/target.js +6 -4
- package/build/src/abap/5_syntax/statements/create_object.js +1 -1
- package/build/src/registry.js +1 -1
- package/package.json +5 -5
|
@@ -16,7 +16,8 @@ class SelectLoop extends combi_1.Expression {
|
|
|
16
16
|
const bypass = "BYPASSING BUFFER";
|
|
17
17
|
const pack = (0, combi_1.seq)("PACKAGE SIZE", _1.SQLSource);
|
|
18
18
|
const tab = (0, combi_1.seq)(_1.SQLIntoTable, (0, combi_1.alt)(pack, (0, combi_1.seq)(_1.SQLFrom, pack), (0, combi_1.seq)(pack, _1.SQLFrom)));
|
|
19
|
-
const
|
|
19
|
+
const packTab = (0, combi_1.seq)(pack, _1.SQLIntoTable);
|
|
20
|
+
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, sql_into_structure_1.SQLIntoStructure, packTab));
|
|
20
21
|
const strict = (0, combi_1.seq)(_1.SQLFrom, "FIELDS", sql_field_list_1.SQLFieldList, where, sql_into_structure_1.SQLIntoStructure, sql_up_to_1.SQLUpTo);
|
|
21
22
|
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));
|
|
22
23
|
return ret;
|
|
@@ -593,14 +593,14 @@ class BasicTypes {
|
|
|
593
593
|
this.scope.addReference(expr.getTokens()[2], byName, _reference_1.ReferenceType.TypeReference, this.filename);
|
|
594
594
|
}
|
|
595
595
|
else {
|
|
596
|
-
return new Types.UnknownType("Not
|
|
596
|
+
return new Types.UnknownType("Not an object reference, " + className + ", " + id.constructor.name);
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
else if (foo === undefined) {
|
|
600
600
|
return new Types.UnknownType(className + " not found in scope");
|
|
601
601
|
}
|
|
602
602
|
else {
|
|
603
|
-
return new Types.UnknownType("Not
|
|
603
|
+
return new Types.UnknownType("Not an object reference, " + className + ", " + foo.constructor.name);
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
else {
|
|
@@ -11,7 +11,7 @@ class AttributeChain {
|
|
|
11
11
|
return inputContext;
|
|
12
12
|
}
|
|
13
13
|
else if (!(inputContext instanceof object_reference_type_1.ObjectReferenceType)) {
|
|
14
|
-
throw new Error("Not
|
|
14
|
+
throw new Error("Not an object reference(AttributeChain)");
|
|
15
15
|
}
|
|
16
16
|
const children = node.getChildren().slice();
|
|
17
17
|
const first = children[0];
|
|
@@ -67,7 +67,7 @@ class FieldChain {
|
|
|
67
67
|
if (!(context instanceof basic_1.ObjectReferenceType)
|
|
68
68
|
&& !(context instanceof basic_1.DataReference)
|
|
69
69
|
&& !(context instanceof basic_1.VoidType)) {
|
|
70
|
-
throw new Error("Not
|
|
70
|
+
throw new Error("Not an object reference, field chain");
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
else if (current.get() instanceof expressions_1.Dereference) {
|
|
@@ -47,7 +47,7 @@ class MethodSource {
|
|
|
47
47
|
return context;
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
|
-
throw new Error("MethodSource, not
|
|
50
|
+
throw new Error("MethodSource, not an object reference, " + node.concatTokens());
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
else if (last instanceof nodes_1.ExpressionNode && last.get() instanceof Expressions.Dynamic) {
|
|
@@ -52,14 +52,16 @@ class Target {
|
|
|
52
52
|
if (!(context instanceof basic_1.ObjectReferenceType)
|
|
53
53
|
&& !(context instanceof basic_1.DataReference)
|
|
54
54
|
&& !(context instanceof basic_1.VoidType)) {
|
|
55
|
-
throw new Error("Not
|
|
55
|
+
throw new Error("Not an object reference, target");
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
else if (current.get() instanceof expressions_1.Dereference) {
|
|
59
|
-
if (!(context instanceof basic_1.DataReference)) {
|
|
60
|
-
throw new Error("Not
|
|
59
|
+
if (!(context instanceof basic_1.DataReference) && !(context instanceof basic_1.VoidType)) {
|
|
60
|
+
throw new Error("Not an object reference, target");
|
|
61
|
+
}
|
|
62
|
+
if (!(context instanceof basic_1.VoidType)) {
|
|
63
|
+
context = context.getType();
|
|
61
64
|
}
|
|
62
|
-
context = context.getType();
|
|
63
65
|
}
|
|
64
66
|
else if (current.get() instanceof Expressions.ComponentName) {
|
|
65
67
|
context = new component_name_1.ComponentName().runSyntax(context, current);
|
|
@@ -46,7 +46,7 @@ class CreateObject {
|
|
|
46
46
|
else if (!(found instanceof basic_1.ObjectReferenceType)
|
|
47
47
|
&& !(found instanceof basic_1.AnyType)
|
|
48
48
|
&& !(found instanceof basic_1.GenericObjectReferenceType)) {
|
|
49
|
-
throw new Error("Target must be
|
|
49
|
+
throw new Error("Target must be an object reference");
|
|
50
50
|
}
|
|
51
51
|
else if (found instanceof basic_1.GenericObjectReferenceType && type === undefined) {
|
|
52
52
|
throw new Error("Generic type, cannot be instantiated");
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.93.
|
|
3
|
+
"version": "2.93.76",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://abaplint.org",
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@microsoft/api-extractor": "^7.33.
|
|
50
|
-
"@types/chai": "^4.3.
|
|
49
|
+
"@microsoft/api-extractor": "^7.33.6",
|
|
50
|
+
"@types/chai": "^4.3.4",
|
|
51
51
|
"@types/mocha": "^10.0.0",
|
|
52
52
|
"@types/node": "^18.11.9",
|
|
53
|
-
"chai": "^4.3.
|
|
54
|
-
"eslint": "^8.
|
|
53
|
+
"chai": "^4.3.7",
|
|
54
|
+
"eslint": "^8.27.0",
|
|
55
55
|
"mocha": "^10.1.0",
|
|
56
56
|
"c8": "^7.12.0",
|
|
57
57
|
"source-map-support": "^0.5.21",
|