MCPcopy Create free account
hub / github.com/astral-sh/ruff / expr_mut

Method expr_mut

crates/ruff_python_parser/src/lib.rs:553–555  ·  view source on GitHub ↗

Returns a mutable reference to the expression contained in this parsed output.

(&mut self)

Source from the content-addressed store, hash-verified

551
552 /// Returns a mutable reference to the expression contained in this parsed output.
553 fn expr_mut(&mut self) -> &mut Expr {
554 &mut self.syntax.body
555 }
556
557 /// Consumes the [`Parsed`] output and returns the contained [`Expr`].
558 pub fn into_expr(self) -> Expr {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected