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

Method starred_conditional

crates/ruff_python_parser/src/parser/expression.rs:3157–3160  ·  view source on GitHub ↗

Create a new context allowing starred expression at conditional precedence.

()

Source from the content-addressed store, hash-verified

3155impl ExpressionContext {
3156 /// Create a new context allowing starred expression at conditional precedence.
3157 pub(super) fn starred_conditional() -> Self {
3158 ExpressionContext::default()
3159 .with_starred_expression_allowed(StarredExpressionPrecedence::Conditional)
3160 }
3161
3162 /// Create a new context allowing starred expression at bitwise OR precedence.
3163 pub(super) fn starred_bitwise_or() -> Self {

Callers

nothing calls this directly

Calls 2

defaultFunction · 0.50

Tested by

no test coverage detected