diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-22 20:37:27 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-22 20:37:27 +0000 |
commit | cc6898acd108feabab94ec86b7e1cd33b1133eb9 (patch) | |
tree | b8acdd5d9bc4251d0802bb74ba657e6339d31de7 /crates/ra_syntax | |
parent | b9f65b18b85c6e942979cb7e6026ba157488f193 (diff) | |
parent | 7b28a15202fd22c726ed6e8c2d31e30a19d8e623 (diff) |
Merge #600
600: :arrow_up: rowan r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_syntax/src/yellow.rs | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_syntax/Cargo.toml b/crates/ra_syntax/Cargo.toml index 05cf41a8d..c50dc6c67 100644 --- a/crates/ra_syntax/Cargo.toml +++ b/crates/ra_syntax/Cargo.toml | |||
@@ -13,7 +13,7 @@ unicode-xid = "0.1.0" | |||
13 | itertools = "0.8.0" | 13 | itertools = "0.8.0" |
14 | drop_bomb = "0.1.4" | 14 | drop_bomb = "0.1.4" |
15 | parking_lot = "0.7.0" | 15 | parking_lot = "0.7.0" |
16 | rowan = "0.3.1" | 16 | rowan = "0.3.2" |
17 | 17 | ||
18 | # ideally, `serde` should be enabled by `ra_lsp_serder`, but we enable it here | 18 | # ideally, `serde` should be enabled by `ra_lsp_serder`, but we enable it here |
19 | # to reduce number of compilations | 19 | # to reduce number of compilations |
diff --git a/crates/ra_syntax/src/yellow.rs b/crates/ra_syntax/src/yellow.rs index 9b93945cc..a7bfb80e2 100644 --- a/crates/ra_syntax/src/yellow.rs +++ b/crates/ra_syntax/src/yellow.rs | |||
@@ -177,6 +177,10 @@ impl SyntaxNode { | |||
177 | pub fn children(&self) -> SyntaxNodeChildren { | 177 | pub fn children(&self) -> SyntaxNodeChildren { |
178 | SyntaxNodeChildren(self.0.children()) | 178 | SyntaxNodeChildren(self.0.children()) |
179 | } | 179 | } |
180 | |||
181 | pub fn memory_size_of_subtree(&self) -> usize { | ||
182 | self.0.memory_size_of_subtree() | ||
183 | } | ||
180 | } | 184 | } |
181 | 185 | ||
182 | impl fmt::Debug for SyntaxNode { | 186 | impl fmt::Debug for SyntaxNode { |