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

Method as_generator_expr

crates/ruff_python_ast/src/generated.rs:2051–2056  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2049
2050 #[inline]
2051 pub fn as_generator_expr(&self) -> Option<&crate::ExprGenerator> {
2052 match self {
2053 Self::Generator(val) => Some(val),
2054 _ => None,
2055 }
2056 }
2057
2058 #[inline]
2059 pub const fn is_await_expr(&self) -> bool {

Callers 3

validate_argumentsMethod · 0.80
convert_to_list_extendFunction · 0.80
needs_paren_exprFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected