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

Method expr

crates/ruff_python_parser/src/lib.rs:540–542  ·  view source on GitHub ↗

Returns the expression contained in this parsed output.

(&self)

Source from the content-addressed store, hash-verified

538impl Parsed<ModExpression> {
539 /// Returns the expression contained in this parsed output.
540 pub fn expr(&self) -> &Expr {
541 &self.syntax.body
542 }
543
544 /// Returns a mutable reference to the expression contained in this parsed output.
545 fn expr_mut(&mut self) -> &mut Expr {

Calls

no outgoing calls