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

Method at_mapping_pattern_start

crates/ruff_python_parser/src/parser/pattern.rs:62–64  ·  view source on GitHub ↗

Returns `true` if the current token is a valid start of a mapping pattern.

(&self)

Source from the content-addressed store, hash-verified

60
61 /// Returns `true` if the current token is a valid start of a mapping pattern.
62 pub(super) fn at_mapping_pattern_start(&self) -> bool {
63 self.at_ts(MAPPING_PATTERN_START_SET) || self.at_soft_keyword()
64 }
65
66 /// Entry point to start parsing a pattern.
67 ///

Callers 1

is_list_elementMethod · 0.80

Calls 2

at_tsMethod · 0.80
at_soft_keywordMethod · 0.80

Tested by

no test coverage detected