MCPcopy Create free account
hub / github.com/Glyphack/enderpy / bump

Method bump

parser/src/parser/parser.rs:152–156  ·  view source on GitHub ↗

Advance if we are at `Kind`

(&mut self, kind: Kind)

Source from the content-addressed store, hash-verified

150
151 /// Advance if we are at `Kind`
152 fn bump(&mut self, kind: Kind) {
153 if self.at(kind) {
154 self.advance(true);
155 }
156 }
157
158 /// Advance any token
159 fn bump_any(&mut self) {

Callers 15

parse_if_statementMethod · 0.80
parse_while_statementMethod · 0.80
parse_for_statementMethod · 0.80
parse_with_statementMethod · 0.80
parse_except_clausesMethod · 0.80
parse_match_statementMethod · 0.80
parse_patternMethod · 0.80
parse_mapping_patternMethod · 0.80
parse_class_patternMethod · 0.80
parse_del_statementMethod · 0.80

Calls 2

atMethod · 0.80
advanceMethod · 0.80

Tested by

no test coverage detected