You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: would be nice to have span information for forward visibility from sass_api.
46
+
// TODO: would be nice to have span information for forward visibility from sass_api. Even nicer if we could tell at this point wheter something is a mixin or a function.
66
47
67
48
if (node.hiddenMixinsAndFunctions casevar hiddenMixinsAndFunctions?) {
68
49
for (var name in hiddenMixinsAndFunctions) {
69
50
if (!name.contains(_name)) {
70
51
continue;
71
52
}
72
53
73
-
var selectionRange =_getForwardVisibilityRange(node, name);
54
+
var selectionRange =forwardVisibilityRange(node, name);
74
55
var location = lsp.Location(range: selectionRange, uri: _document.uri);
75
56
76
57
// We can't tell if this is a mixin or a function, so add a candidate for both.
@@ -97,7 +78,7 @@ class FindReferencesVisitor
97
78
continue;
98
79
}
99
80
100
-
var selectionRange =_getForwardVisibilityRange(node, name);
81
+
var selectionRange =forwardVisibilityRange(node, '\$$name');
101
82
var location = lsp.Location(range: selectionRange, uri: _document.uri);
102
83
103
84
candidates.add(
@@ -116,7 +97,7 @@ class FindReferencesVisitor
116
97
continue;
117
98
}
118
99
119
-
var selectionRange =_getForwardVisibilityRange(node, name);
100
+
var selectionRange =forwardVisibilityRange(node, name);
120
101
var location = lsp.Location(range: selectionRange, uri: _document.uri);
121
102
122
103
// We can't tell if this is a mixin or a function, so add a candidate for both.
@@ -143,7 +124,7 @@ class FindReferencesVisitor
143
124
continue;
144
125
}
145
126
146
-
var selectionRange =_getForwardVisibilityRange(node, name);
127
+
var selectionRange =forwardVisibilityRange(node, '\$$name');
147
128
var location = lsp.Location(range: selectionRange, uri: _document.uri);
0 commit comments