@abaplint/core 2.113.164 → 2.113.165
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
CHANGED
|
@@ -304,27 +304,24 @@ class Source {
|
|
|
304
304
|
console.dir(inferredType);
|
|
305
305
|
console.dir(typeToken);
|
|
306
306
|
*/
|
|
307
|
-
// hmm, need to align all this
|
|
308
307
|
if (typeName === "#" && inferredType && typeToken) {
|
|
309
308
|
const found = basic.lookupQualifiedName(inferredType.getQualifiedName());
|
|
310
309
|
if (found) {
|
|
311
|
-
input.scope.addReference(typeToken, found, _reference_1.ReferenceType.InferredType, input.filename);
|
|
312
|
-
}
|
|
313
|
-
else if (inferredType instanceof basic_1.DataReference) {
|
|
314
|
-
const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
|
|
315
|
-
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename);
|
|
310
|
+
input.scope.addReference(typeToken, found, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: true });
|
|
316
311
|
}
|
|
317
312
|
else if (inferredType instanceof basic_1.ObjectReferenceType) {
|
|
318
313
|
const def = input.scope.findObjectDefinition(inferredType.getQualifiedName());
|
|
314
|
+
const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
|
|
319
315
|
if (def) {
|
|
320
|
-
|
|
321
|
-
|
|
316
|
+
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: true });
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: false });
|
|
322
320
|
}
|
|
323
321
|
}
|
|
324
|
-
else
|
|
325
|
-
// character is bit special it does not have a qualified name eg "TYPE c LENGTH 6"
|
|
322
|
+
else {
|
|
326
323
|
const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
|
|
327
|
-
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename);
|
|
324
|
+
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: false });
|
|
328
325
|
}
|
|
329
326
|
}
|
|
330
327
|
}
|
package/build/src/registry.js
CHANGED
|
@@ -2431,7 +2431,7 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
2431
2431
|
throw new SkipToNextFile(issue);
|
|
2432
2432
|
}
|
|
2433
2433
|
findType(i, lowFile, highSyntax, ref = false) {
|
|
2434
|
-
var _a;
|
|
2434
|
+
var _a, _b;
|
|
2435
2435
|
const expr = i.findDirectExpression(Expressions.TypeNameOrInfer);
|
|
2436
2436
|
if (expr === undefined) {
|
|
2437
2437
|
return undefined;
|
|
@@ -2450,7 +2450,8 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
2450
2450
|
if (r.referenceType === _reference_1.ReferenceType.InferredType
|
|
2451
2451
|
&& r.resolved
|
|
2452
2452
|
&& r.position.getStart().equals(firstToken.getStart())
|
|
2453
|
-
&& r.resolved instanceof _typed_identifier_1.TypedIdentifier
|
|
2453
|
+
&& r.resolved instanceof _typed_identifier_1.TypedIdentifier
|
|
2454
|
+
&& ((_a = r.extra) === null || _a === void 0 ? void 0 : _a.foundQualified) === true) {
|
|
2454
2455
|
inferred = r.resolved;
|
|
2455
2456
|
break;
|
|
2456
2457
|
}
|
|
@@ -2462,7 +2463,7 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
2462
2463
|
return inferred.getType().toABAP();
|
|
2463
2464
|
}
|
|
2464
2465
|
else {
|
|
2465
|
-
return (
|
|
2466
|
+
return (_b = inferred.getType().getQualifiedName()) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
2466
2467
|
}
|
|
2467
2468
|
}
|
|
2468
2469
|
outlineFS(low, high, lowFile, highSyntax) {
|