mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
dead code
This commit is contained in:
parent
55f1564101
commit
45bba40079
1 changed files with 0 additions and 7 deletions
|
@ -187,13 +187,6 @@ impl ast::Expr {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ast::Attr {
|
|
||||||
/// Returns `text`, parsed as an attribute, but only if it has no errors.
|
|
||||||
pub fn parse(text: &str) -> Result<Self, ()> {
|
|
||||||
parsing::parse_text_as(text, parser::ParserEntryPoint::Attr)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Matches a `SyntaxNode` against an `ast` type.
|
/// Matches a `SyntaxNode` against an `ast` type.
|
||||||
///
|
///
|
||||||
/// # Example:
|
/// # Example:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue