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

Function subscript_fields

crates/ruff_python_ast/src/comparable.rs:1362–1374  ·  view source on GitHub ↗
(node: &ast::ExprSubscript)

Source from the content-addressed store, hash-verified

1360}
1361
1362fn subscript_fields(node: &ast::ExprSubscript) -> SubscriptFields<'_> {
1363 let ast::ExprSubscript {
1364 value,
1365 slice,
1366 ctx: _,
1367 range: _,
1368 node_index: _,
1369 } = node;
1370 SubscriptFields {
1371 value: value.into(),
1372 slice: slice.into(),
1373 }
1374}
1375
1376fn starred_fields(node: &ast::ExprStarred) -> ComparableExpr<'_> {
1377 let ast::ExprStarred {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected