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

Method expect_subscript_expr

crates/ruff_python_ast/src/generated.rs:2590–2595  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2588
2589 #[inline]
2590 pub fn expect_subscript_expr(self) -> crate::ExprSubscript {
2591 match self {
2592 Self::Subscript(val) => val,
2593 _ => panic!("called expect on {self:?}"),
2594 }
2595 }
2596
2597 #[inline]
2598 pub fn as_subscript_expr_mut(&mut self) -> Option<&mut crate::ExprSubscript> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected