We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffde20a commit 70bbdb1Copy full SHA for 70bbdb1
crates/emmylua_code_analysis/src/compilation/analyzer/decl/stats.rs
@@ -150,9 +150,8 @@ fn analyze_maybe_global_index_expr(
150
let name_token_text = name_token.get_name_text();
151
if name_token_text == "_G" || name_token_text == "_ENV" {
152
let position = index_expr.get_position();
153
- let name = name_token.get_name_text();
154
let range = index_expr.get_range();
155
- if let Some(decl) = analyzer.find_decl(name, position) {
+ if let Some(decl) = analyzer.find_decl(&index_name, position) {
156
let decl_id = decl.get_id();
157
analyzer
158
.db
0 commit comments