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:63–65  ·  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

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

Callers 1

is_list_elementMethod · 0.80

Calls 2

at_tsMethod · 0.80
at_soft_keywordMethod · 0.80

Tested by

no test coverage detected