mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Add runnables
This commit is contained in:
parent
b79c8b6d8a
commit
5751815314
7 changed files with 115 additions and 2 deletions
|
@ -539,6 +539,14 @@ impl<'a> AstNode<'a> for ForExpr<'a> {
|
|||
}
|
||||
|
||||
impl<'a> ForExpr<'a> {
|
||||
pub fn pat(self) -> Option<Pat<'a>> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
|
||||
pub fn iterable(self) -> Option<Expr<'a>> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
|
||||
pub fn body(self) -> Option<Block<'a>> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue