MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / is_list

Method is_list

crates/sith_python_parser/src/parser/mod.rs:700–702  ·  view source on GitHub ↗

Returns `true` if the parentheses are for a list pattern e.g., `case [a, b]: ...`.

(self)

Source from the content-addressed store, hash-verified

698
699 /// Returns `true` if the parentheses are for a list pattern e.g., `case [a, b]: ...`.
700 const fn is_list(self) -> bool {
701 matches!(self, SequenceMatchPatternParentheses::List)
702 }
703}
704
705#[derive(Debug, PartialEq, Copy, Clone)]

Calls

no outgoing calls

Tested by

no test coverage detected