diff options
author | Aleksey Kladov <[email protected]> | 2019-11-20 06:40:36 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-20 06:42:30 +0000 |
commit | 36e3fc9d5413f7e6e17e82867aae1318645880a3 (patch) | |
tree | 166ee3c45f99611f7c20740c2a246f5b3bed41a3 /crates/ra_cli/src/analysis_stats.rs | |
parent | e975f6364cb3caf50467835afb0dafce887f51f0 (diff) |
Rename Source::ast -> Source::value
Diffstat (limited to 'crates/ra_cli/src/analysis_stats.rs')
-rw-r--r-- | crates/ra_cli/src/analysis_stats.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_cli/src/analysis_stats.rs b/crates/ra_cli/src/analysis_stats.rs index 3429a3c49..9cd21e4b6 100644 --- a/crates/ra_cli/src/analysis_stats.rs +++ b/crates/ra_cli/src/analysis_stats.rs | |||
@@ -98,7 +98,7 @@ pub fn run( | |||
98 | let src = f.source(db); | 98 | let src = f.source(db); |
99 | let original_file = src.file_id.original_file(db); | 99 | let original_file = src.file_id.original_file(db); |
100 | let path = db.file_relative_path(original_file); | 100 | let path = db.file_relative_path(original_file); |
101 | let syntax_range = src.ast.syntax().text_range(); | 101 | let syntax_range = src.value.syntax().text_range(); |
102 | write!(msg, " ({:?} {})", path, syntax_range).unwrap(); | 102 | write!(msg, " ({:?} {})", path, syntax_range).unwrap(); |
103 | } | 103 | } |
104 | bar.set_message(&msg); | 104 | bar.set_message(&msg); |
@@ -135,7 +135,7 @@ pub fn run( | |||
135 | let path = db.file_relative_path(original_file); | 135 | let path = db.file_relative_path(original_file); |
136 | let line_index = host.analysis().file_line_index(original_file).unwrap(); | 136 | let line_index = host.analysis().file_line_index(original_file).unwrap(); |
137 | let text_range = src | 137 | let text_range = src |
138 | .ast | 138 | .value |
139 | .either(|it| it.syntax().text_range(), |it| it.syntax().text_range()); | 139 | .either(|it| it.syntax().text_range(), |it| it.syntax().text_range()); |
140 | let (start, end) = ( | 140 | let (start, end) = ( |
141 | line_index.line_col(text_range.start()), | 141 | line_index.line_col(text_range.start()), |