This commit is contained in:
Aleksey Kladov 2020-04-23 23:18:18 +02:00
parent 27dd0086ea
commit dd59237e0c

View File

@ -30,10 +30,6 @@ pub fn to_node(&self, root: &SyntaxNode) -> SyntaxNode {
.unwrap_or_else(|| panic!("can't resolve local ptr to SyntaxNode: {:?}", self))
}
// pub fn range(&self) -> TextRange {
// self.range
// }
pub fn cast<N: AstNode>(self) -> Option<AstPtr<N>> {
if !N::can_cast(self.kind) {
return None;