aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast.rs')
-rw-r--r--crates/ra_syntax/src/ast.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs
index 9a44afc67..ffd115cef 100644
--- a/crates/ra_syntax/src/ast.rs
+++ b/crates/ra_syntax/src/ast.rs
@@ -25,13 +25,6 @@ pub trait AstNode:
25 fn syntax(&self) -> &SyntaxNode; 25 fn syntax(&self) -> &SyntaxNode;
26} 26}
27 27
28pub trait AstToken: AstNode {
29 fn text(&self) -> &SmolStr {
30 // self.syntax().leaf_text().unwrap()
31 unimplemented!()
32 }
33}
34
35pub trait TypeAscriptionOwner: AstNode { 28pub trait TypeAscriptionOwner: AstNode {
36 fn ascribed_type(&self) -> Option<&TypeRef> { 29 fn ascribed_type(&self) -> Option<&TypeRef> {
37 child_opt(self) 30 child_opt(self)