File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
crates/code_analysis/src/compilation/analyzer/decl Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,11 @@ use crate::{
1717} ;
1818
1919pub ( crate ) fn analyze ( db : & mut DbIndex , context : & mut AnalyzeContext ) {
20- let emmyrc = & context. config ;
2120 for in_filed_tree in context. tree_list . iter ( ) {
2221 db. get_reference_index_mut ( )
2322 . create_local_reference ( in_filed_tree. file_id ) ;
2423 let mut analyzer =
25- DeclAnalyzer :: new ( db, in_filed_tree. file_id , in_filed_tree. value . clone ( ) , & emmyrc ) ;
24+ DeclAnalyzer :: new ( db, in_filed_tree. file_id , in_filed_tree. value . clone ( ) ) ;
2625 analyzer. analyze ( ) ;
2726 let decl_tree = analyzer. get_decl_tree ( ) ;
2827 db. get_decl_index_mut ( ) . add_decl_tree ( decl_tree) ;
@@ -128,22 +127,15 @@ pub struct DeclAnalyzer<'a> {
128127 root : LuaChunk ,
129128 decl : LuaDeclarationTree ,
130129 scopes : Vec < LuaScopeId > ,
131- emmyrc : & ' a Emmyrc ,
132130}
133131
134132impl < ' a > DeclAnalyzer < ' a > {
135- pub fn new (
136- db : & ' a mut DbIndex ,
137- file_id : FileId ,
138- root : LuaChunk ,
139- emmyrc : & ' a Emmyrc ,
140- ) -> DeclAnalyzer < ' a > {
133+ pub fn new ( db : & ' a mut DbIndex , file_id : FileId , root : LuaChunk ) -> DeclAnalyzer < ' a > {
141134 DeclAnalyzer {
142135 db,
143136 root,
144137 decl : LuaDeclarationTree :: new ( file_id) ,
145138 scopes : Vec :: new ( ) ,
146- emmyrc,
147139 }
148140 }
149141
You can’t perform that action at this time.
0 commit comments