mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-04 09:30:45 +00:00
remove old parsing methods
This commit is contained in:
parent
310bfe57bd
commit
0efbcdf435
7 changed files with 54 additions and 62 deletions
|
@ -280,16 +280,6 @@ impl SyntaxNode {
|
|||
buf
|
||||
}
|
||||
|
||||
pub(crate) fn root_data(&self) -> &[SyntaxError] {
|
||||
match self.0.root_data() {
|
||||
None => &[],
|
||||
Some(data) => {
|
||||
let data: &Vec<SyntaxError> = std::any::Any::downcast_ref(data).unwrap();
|
||||
data.as_slice()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn replace_with(&self, replacement: GreenNode) -> GreenNode {
|
||||
self.0.replace_with(replacement)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue