dot-language-support 2.1.0 → 2.1.1
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/lib/cjs/service/hover.js
CHANGED
|
@@ -42,7 +42,7 @@ function getHoverContents(n) {
|
|
|
42
42
|
if ((_a = n.symbol) === null || _a === void 0 ? void 0 : _a.references) {
|
|
43
43
|
const nodeIdentifierRefs = (_b = n.symbol) === null || _b === void 0 ? void 0 : _b.references;
|
|
44
44
|
const labelMentions = nodeIdentifierRefs.map(e => { var _a, _b, _c; return (_c = (_b = (_a = e.symbol) === null || _a === void 0 ? void 0 : _a.members) === null || _b === void 0 ? void 0 : _b.get("label")) === null || _c === void 0 ? void 0 : _c.firstMention.parent; });
|
|
45
|
-
for (let i = labelMentions.length; i
|
|
45
|
+
for (let i = labelMentions.length; i >= 0; i--) {
|
|
46
46
|
const s = labelMentions[i];
|
|
47
47
|
if (s === null || s === void 0 ? void 0 : s.rightId) {
|
|
48
48
|
return `(node) ${(0, checker_js_1.getIdentifierText)(n)}: ${(0, checker_js_1.getIdentifierText)(s.rightId)}`;
|
package/lib/esm/service/hover.js
CHANGED
|
@@ -37,7 +37,7 @@ function getHoverContents(n) {
|
|
|
37
37
|
if (n.symbol?.references) {
|
|
38
38
|
const nodeIdentifierRefs = n.symbol?.references;
|
|
39
39
|
const labelMentions = nodeIdentifierRefs.map(e => e.symbol?.members?.get("label")?.firstMention.parent);
|
|
40
|
-
for (let i = labelMentions.length; i
|
|
40
|
+
for (let i = labelMentions.length; i >= 0; i--) {
|
|
41
41
|
const s = labelMentions[i];
|
|
42
42
|
if (s?.rightId) {
|
|
43
43
|
return `(node) ${getIdentifierText(n)}: ${getIdentifierText(s.rightId)}`;
|