@abaplint/core 2.120.76 → 2.120.77
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.
|
@@ -74,7 +74,7 @@ const version_1 = require("../../../version");
|
|
|
74
74
|
// TODO: refactor all these method parameters to objects, this is getting messy
|
|
75
75
|
class Source {
|
|
76
76
|
static runSyntax(node, input, targetType, writeReference = false, allowGenericDeference = false, readReference = true) {
|
|
77
|
-
var _a, _b
|
|
77
|
+
var _a, _b;
|
|
78
78
|
if (node === undefined) {
|
|
79
79
|
return undefined;
|
|
80
80
|
}
|
|
@@ -169,13 +169,7 @@ class Source {
|
|
|
169
169
|
this.traverseRemainingChildren(children, input);
|
|
170
170
|
return bodyType;
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
const nestedType = (_c = bodySource === null || bodySource === void 0 ? void 0 : bodySource.findDirectExpression(Expressions.TypeNameOrInfer)) === null || _c === void 0 ? void 0 : _c.concatTokens();
|
|
174
|
-
// CONV # passes its target type into a nested inferred constructor, so
|
|
175
|
-
// showing both inferred types would produce duplicate inlay hints.
|
|
176
|
-
if (!(inferred === "#" && nestedType === "#")) {
|
|
177
|
-
this.addIfInferred(node, input, foundType);
|
|
178
|
-
}
|
|
172
|
+
this.addIfInferred(node, input, foundType);
|
|
179
173
|
this.traverseRemainingChildren(children, input);
|
|
180
174
|
return foundType;
|
|
181
175
|
}
|
|
@@ -233,7 +227,7 @@ class Source {
|
|
|
233
227
|
{
|
|
234
228
|
const foundType = this.determineType(node, input, targetType);
|
|
235
229
|
if ((foundType === null || foundType === void 0 ? void 0 : foundType.isGeneric()) === true
|
|
236
|
-
&& ((
|
|
230
|
+
&& ((_b = node.findDirectExpression(Expressions.TypeNameOrInfer)) === null || _b === void 0 ? void 0 : _b.concatTokens()) === "#"
|
|
237
231
|
&& !(0, version_1.releaseAtLeast)(input.scope.getRelease(), version_1.Release.v756)
|
|
238
232
|
&& input.scope.getLanguageVersion() !== version_1.LanguageVersion.Cloud
|
|
239
233
|
&& !input.scope.getOpenABAP()) {
|
package/build/src/registry.js
CHANGED