diff options
author | Aleksey Kladov <[email protected]> | 2020-04-09 17:25:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-09 17:25:36 +0100 |
commit | e6d22187a67e762bb950de244a6ca15f3a0b0731 (patch) | |
tree | c1bf1fa132003b333b6ccd55d60127d93518f0eb /crates/ra_hir_ty/src | |
parent | a95116fbfa11cad4e03b8b31f8d4498f3ddd5d9e (diff) |
Add _token suffix to token accessors
I think this makes is more clear which things are : AstNode and which
are : AstToken
Diffstat (limited to 'crates/ra_hir_ty/src')
-rw-r--r-- | crates/ra_hir_ty/src/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/tests.rs b/crates/ra_hir_ty/src/tests.rs index ac0966236..f97e0bfeb 100644 --- a/crates/ra_hir_ty/src/tests.rs +++ b/crates/ra_hir_ty/src/tests.rs | |||
@@ -101,7 +101,7 @@ fn infer_with_mismatches(content: &str, include_mismatches: bool) -> String { | |||
101 | let node = src_ptr.value.to_node(&src_ptr.file_syntax(&db)); | 101 | let node = src_ptr.value.to_node(&src_ptr.file_syntax(&db)); |
102 | 102 | ||
103 | let (range, text) = if let Some(self_param) = ast::SelfParam::cast(node.clone()) { | 103 | let (range, text) = if let Some(self_param) = ast::SelfParam::cast(node.clone()) { |
104 | (self_param.self_kw().unwrap().syntax().text_range(), "self".to_string()) | 104 | (self_param.self_kw_token().unwrap().syntax().text_range(), "self".to_string()) |
105 | } else { | 105 | } else { |
106 | (src_ptr.value.range(), node.text().to_string().replace("\n", " ")) | 106 | (src_ptr.value.range(), node.text().to_string().replace("\n", " ")) |
107 | }; | 107 | }; |