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

Method with_max_recursion_depth

crates/ruff_python_parser/src/parser/options.rs:63–66  ·  view source on GitHub ↗
(mut self, depth: u16)

Source from the content-addressed store, hash-verified

61 /// Set the maximum recursion depth for the parser.
62 #[must_use]
63 pub fn with_max_recursion_depth(mut self, depth: u16) -> Self {
64 self.max_recursion_depth = depth;
65 self
66 }
67
68 pub fn max_recursion_depth(&self) -> u16 {
69 self.max_recursion_depth

Calls

no outgoing calls