mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
migrate ra_assists to the new AST
This commit is contained in:
parent
e2b28f5bb8
commit
0343c4a815
17 changed files with 213 additions and 204 deletions
|
@ -25,7 +25,7 @@ pub use self::{
|
|||
/// conversion itself has zero runtime cost: ast and syntax nodes have exactly
|
||||
/// the same representation: a pointer to the tree root and a pointer to the
|
||||
/// node itself.
|
||||
pub trait AstNode {
|
||||
pub trait AstNode: Clone {
|
||||
fn cast(syntax: SyntaxNode) -> Option<Self>
|
||||
where
|
||||
Self: Sized;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue