Returns the statement in which the binding was defined.
(&self, semantic: &SemanticModel<'b>)
| 275 | |
| 276 | /// Returns the statement in which the binding was defined. |
| 277 | pub fn statement<'b>(&self, semantic: &SemanticModel<'b>) -> Option<&'b Stmt> { |
| 278 | self.source |
| 279 | .map(|statement_id| semantic.statement(statement_id)) |
| 280 | } |
| 281 | |
| 282 | /// Returns the expression in which the binding was defined |
| 283 | /// (e.g. for the binding `x` in `y = (x := 1)`, return the node representing `x := 1`). |