aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-22 20:37:03 +0000
committerAleksey Kladov <[email protected]>2019-01-22 20:37:03 +0000
commit7b28a15202fd22c726ed6e8c2d31e30a19d8e623 (patch)
treeb8acdd5d9bc4251d0802bb74ba657e6339d31de7 /crates/ra_syntax/src
parentb9f65b18b85c6e942979cb7e6026ba157488f193 (diff)
:arrow_up: rowan
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/yellow.rs4
1 files changed, 4 insertions, 0 deletions
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
182impl fmt::Debug for SyntaxNode { 186impl fmt::Debug for SyntaxNode {