mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
fix generated AST
This commit is contained in:
parent
470fc4765c
commit
dcf8e89503
3 changed files with 4 additions and 3 deletions
|
@ -1003,7 +1003,7 @@ impl FnDef {
|
|||
pub fn param_list(&self) -> Option<ParamList> {
|
||||
AstChildren::new(&self.syntax).next()
|
||||
}
|
||||
pub fn body(&self) -> Option<Block> {
|
||||
pub fn body(&self) -> Option<BlockExpr> {
|
||||
AstChildren::new(&self.syntax).next()
|
||||
}
|
||||
pub fn ret_type(&self) -> Option<RetType> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue