File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
ql/test/query-tests/diagnostics Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ pub enum ExtractionStepKind {
83
83
LoadSource ,
84
84
Parse ,
85
85
Extract ,
86
+ CrateGraph ,
86
87
}
87
88
88
89
#[ derive( Debug , Clone , Serialize ) ]
@@ -128,6 +129,10 @@ impl ExtractionStep {
128
129
)
129
130
}
130
131
132
+ pub fn crate_graph ( start : Instant ) -> Self {
133
+ Self :: new ( start, ExtractionStepKind :: CrateGraph , None )
134
+ }
135
+
131
136
pub fn load_source ( start : Instant , target : & Path ) -> Self {
132
137
Self :: new (
133
138
start,
Original file line number Diff line number Diff line change @@ -244,7 +244,11 @@ fn main() -> anyhow::Result<()> {
244
244
if let Some ( ( ref db, ref vfs) ) =
245
245
extractor. load_manifest ( manifest, & cargo_config, & load_cargo_config)
246
246
{
247
+ let before_crate_graph = Instant :: now ( ) ;
247
248
crate_graph:: extract_crate_graph ( extractor. traps , db, vfs) ;
249
+ extractor
250
+ . steps
251
+ . push ( ExtractionStep :: crate_graph ( before_crate_graph) ) ;
248
252
let semantics = Semantics :: new ( db) ;
249
253
for file in files {
250
254
match extractor. load_source ( file, & semantics, vfs) {
Original file line number Diff line number Diff line change 1
- | Elements extracted | 405 |
1
+ | Elements extracted | 406 |
2
2
| Elements unextracted | 0 |
3
3
| Extraction errors | 0 |
4
4
| Extraction warnings | 7 |
You can’t perform that action at this time.
0 commit comments