diff options
author | Pascal Hertleif <[email protected]> | 2019-05-25 15:23:58 +0100 |
---|---|---|
committer | Pascal Hertleif <[email protected]> | 2019-05-27 10:26:35 +0100 |
commit | 43d5a4965308ec4b594725c0bd02cb046bdb730c (patch) | |
tree | 3a6e2965b065e61310deaa4186a8cec6535fd244 /crates/ra_syntax/src | |
parent | ed89b0638b1dbf8f9a33d9a95e829e602142bb05 (diff) |
More clever highlighting, incl draft for structs
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/syntax_node.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/syntax_node.rs b/crates/ra_syntax/src/syntax_node.rs index 89f92e0b7..80054f529 100644 --- a/crates/ra_syntax/src/syntax_node.rs +++ b/crates/ra_syntax/src/syntax_node.rs | |||
@@ -523,10 +523,6 @@ impl<'a> SyntaxElement<'a> { | |||
523 | } | 523 | } |
524 | } | 524 | } |
525 | 525 | ||
526 | pub fn as_ast_node<T: AstNode>(&self) -> Option<&T> { | ||
527 | self.as_node().and_then(|x| <T as AstNode>::cast(x)) | ||
528 | } | ||
529 | |||
530 | pub fn as_token(&self) -> Option<SyntaxToken<'a>> { | 526 | pub fn as_token(&self) -> Option<SyntaxToken<'a>> { |
531 | match self { | 527 | match self { |
532 | SyntaxElement::Node(_) => None, | 528 | SyntaxElement::Node(_) => None, |