11use super :: io:: IO ;
22use crate :: language_server:: data:: { semantic_token_modifiers, semantic_token_types} ;
33use crate :: location:: { Span , Spanning } ;
4- use crate :: par:: language:: { Internal , Name } ;
54use crate :: par:: program:: NameWithType ;
6- use crate :: par:: types:: TypeError ;
75use crate :: playground:: { Checked , Compiled } ;
8- use eframe:: egui:: RichText ;
96use lsp_types:: { self as lsp, Uri } ;
107use std:: collections:: HashMap ;
11- use tracing_subscriber:: fmt:: format;
128
139#[ derive( Debug , Clone ) ]
1410pub enum CompileError {
@@ -105,7 +101,7 @@ impl Instance {
105101 return None ;
106102 }
107103 }
108- Some ( Err ( e ) ) => return None ,
104+ Some ( Err ( _ ) ) => return None ,
109105 None => lsp:: MarkedString :: String ( "Not compiled" . to_string ( ) ) ,
110106 } ;
111107
@@ -345,7 +341,7 @@ impl Instance {
345341 } ) ;
346342 }
347343
348- for ( name, declaration ) in & compiled. program . declarations {
344+ for ( name, _ ) in & compiled. program . declarations {
349345 let name_span = name. span ( ) ;
350346 semantic_tokens. push ( lsp:: SemanticToken {
351347 delta_line : name_span. start . row as u32 ,
@@ -357,7 +353,7 @@ impl Instance {
357353 } ) ;
358354 }
359355
360- for ( name, definition ) in & compiled. program . definitions {
356+ for ( name, _ ) in & compiled. program . definitions {
361357 let name_span = name. span ( ) ;
362358 semantic_tokens. push ( lsp:: SemanticToken {
363359 delta_line : name_span. start . row as u32 ,
0 commit comments