@@ -160,7 +160,7 @@ function reexport_package(x::EXPR, server, conn)
160160 return
161161 end
162162 using_stmt = parentof (x)
163- file, offset = get_file_loc (x)
163+ file, _ = get_file_loc (x)
164164 insertpos = get_next_line_offset (using_stmt)
165165 insertpos == - 1 && return
166166
@@ -196,7 +196,7 @@ function reexport_module(x::EXPR, server, conn)
196196 exported_names = find_exported_names (mod_expr)
197197
198198 isempty (exported_names) && return
199- file, offset = get_file_loc (x)
199+ file, _ = get_file_loc (x)
200200 insertpos = get_next_line_offset (using_stmt)
201201 insertpos == - 1 && return
202202 names = filter! (s -> ! isempty (s), collect (CSTParser. str_value .(exported_names)))
210210function wrap_block (x, server, type, conn) end
211211function wrap_block (x:: EXPR , server, type, conn)
212212 file, offset = get_file_loc (x) # rese
213- l0, _ = get_position_at (file, offset)
214- l1, _ = get_position_at (file, offset + x. span)
215213 if type == :if
216214 tde = TextDocumentEdit (VersionedTextDocumentIdentifier (file. _uri, file. _version), TextEdit[
217215 TextEdit (Range (file, offset .+ (0 : 0 )), " if CONDITION\n " ),
@@ -228,7 +226,7 @@ function is_fixable_missing_ref(x::EXPR, cac::CodeActionContext)
228226 xname = StaticLint. valofid (x)
229227 tls = StaticLint. retrieve_toplevel_scope (x)
230228 if tls isa StaticLint. Scope && tls. modules != = nothing
231- for (n, m) in tls. modules
229+ for m in values ( tls. modules)
232230 if (m isa SymbolServer. ModuleStore && haskey (m, Symbol (xname))) || (m isa StaticLint. Scope && StaticLint. scopehasbinding (m, xname))
233231 return true
234232 end
241239function applymissingreffix (x, server, conn)
242240 xname = StaticLint. valofid (x)
243241 file, offset = get_file_loc (x)
244- l, c = get_position_at (file, offset)
245242 tls = StaticLint. retrieve_toplevel_scope (x)
246243 if tls. modules != = nothing
247244 for (n, m) in tls. modules
0 commit comments