Returns `true` if the current token is a valid start of a pattern.
(&self)
| 55 | impl Parser<'_> { |
| 56 | /// Returns `true` if the current token is a valid start of a pattern. |
| 57 | pub(super) fn at_pattern_start(&self) -> bool { |
| 58 | self.at_ts(PATTERN_START_SET) || self.at_soft_keyword() |
| 59 | } |
| 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 { |
no test coverage detected