MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / advance_raw

Method advance_raw

compiler/src/modules/parser/mod.rs:248–256  ·  view source on GitHub ↗

Advance without bracket_stack tracking; for recovery consumers with their own balance bookkeeping. */

(&mut self)

Source from the content-addressed store, hash-verified

246impl<'src, I: Iterator<Item = Token>> Parser<'src, I> {
247 /* Advance without bracket_stack tracking; for recovery consumers with their own balance bookkeeping. */
248 pub(super) fn advance_raw(&mut self) -> Token {
249 let tok = self.tokens.next().unwrap_or(Token {
250 kind: TokenType::Endmarker,
251 line: 0, start: 0, end: 0,
252 });
253 self.last_line = tok.line;
254 if tok.end > 0 { self.last_end = tok.end; }
255 tok
256 }
257
258 pub(super) fn advance(&mut self) -> Token {
259 let tok = self.tokens.next().unwrap_or(Token {

Callers 1

drain_annotationMethod · 0.80

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected