mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
minor
This commit is contained in:
parent
27dd0086ea
commit
dd59237e0c
1 changed files with 0 additions and 4 deletions
|
@ -30,10 +30,6 @@ impl SyntaxNodePtr {
|
||||||
.unwrap_or_else(|| panic!("can't resolve local ptr to SyntaxNode: {:?}", self))
|
.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>> {
|
pub fn cast<N: AstNode>(self) -> Option<AstPtr<N>> {
|
||||||
if !N::can_cast(self.kind) {
|
if !N::can_cast(self.kind) {
|
||||||
return None;
|
return None;
|
||||||
|
|
Loading…
Reference in a new issue