(&self)
| 413 | } |
| 414 | |
| 415 | pub fn as_function(&self) -> Option<&AstNodeRef<ast::StmtFunctionDef>> { |
| 416 | match self { |
| 417 | Self::Function(function) => Some(function), |
| 418 | _ => None, |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | pub fn expect_function(&self) -> &AstNodeRef<ast::StmtFunctionDef> { |
| 423 | self.as_function().expect("expected function") |
no outgoing calls
no test coverage detected