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

Method expr

crates/ruff_python_parser/src/lib.rs:548–550  ·  view source on GitHub ↗

Returns the expression contained in this parsed output.

(&self)

Source from the content-addressed store, hash-verified

546impl Parsed<ModExpression> {
547 /// Returns the expression contained in this parsed output.
548 pub fn expr(&self) -> &Expr {
549 &self.syntax.body
550 }
551
552 /// Returns a mutable reference to the expression contained in this parsed output.
553 fn expr_mut(&mut self) -> &mut Expr {

Calls

no outgoing calls