File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
emmylua_code_analysis/src
emmylua_ls/src/handlers/fold_range Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ impl LuaCompilation {
24
24
compilation
25
25
}
26
26
27
- pub fn get_semantic_model ( & self , file_id : FileId ) -> Option < SemanticModel > {
27
+ pub fn get_semantic_model ( & ' _ self , file_id : FileId ) -> Option < SemanticModel < ' _ > > {
28
28
let cache = LuaInferCache :: new ( file_id, Default :: default ( ) ) ;
29
29
let tree = self . db . get_vfs ( ) . get_syntax_tree ( & file_id) ?;
30
30
Some ( SemanticModel :: new (
Original file line number Diff line number Diff line change @@ -83,19 +83,19 @@ impl<'a> SemanticModel<'a> {
83
83
}
84
84
}
85
85
86
- pub fn get_document ( & self ) -> LuaDocument {
86
+ pub fn get_document ( & ' _ self ) -> LuaDocument < ' _ > {
87
87
self . db . get_vfs ( ) . get_document ( & self . file_id ) . unwrap ( )
88
88
}
89
89
90
90
pub fn get_module ( & self ) -> Option < & ModuleInfo > {
91
91
self . db . get_module_index ( ) . get_module ( self . file_id )
92
92
}
93
93
94
- pub fn get_document_by_file_id ( & self , file_id : FileId ) -> Option < LuaDocument > {
94
+ pub fn get_document_by_file_id ( & ' _ self , file_id : FileId ) -> Option < LuaDocument < ' _ > > {
95
95
self . db . get_vfs ( ) . get_document ( & file_id)
96
96
}
97
97
98
- pub fn get_document_by_uri ( & self , uri : & Uri ) -> Option < LuaDocument > {
98
+ pub fn get_document_by_uri ( & ' _ self , uri : & Uri ) -> Option < LuaDocument < ' _ > > {
99
99
let file_id = self . db . get_vfs ( ) . get_file_id ( & uri) ?;
100
100
self . db . get_vfs ( ) . get_document ( & file_id)
101
101
}
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ impl Vfs {
121
121
if let Some ( s) = opt { Some ( s) } else { None }
122
122
}
123
123
124
- pub fn get_document ( & self , id : & FileId ) -> Option < LuaDocument > {
124
+ pub fn get_document ( & self , id : & FileId ) -> Option < LuaDocument < ' _ > > {
125
125
let path = self . file_path_map . get ( & id. id ) ?;
126
126
let text = self . get_file_content ( id) ?;
127
127
let line_index = self . line_index_map . get ( id) ?;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ impl FoldingRangeBuilder<'_> {
25
25
& self . root
26
26
}
27
27
28
- pub fn get_document ( & self ) -> & LuaDocument {
28
+ pub fn get_document ( & ' _ self ) -> & ' _ LuaDocument < ' _ > {
29
29
self . document
30
30
}
31
31
You can’t perform that action at this time.
0 commit comments