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

Method advance_text

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

Consume the next token and return its source text as a String. */

(&mut self)

Source from the content-addressed store, hash-verified

349
350 /* Consume the next token and return its source text as a String. */
351 pub(super) fn advance_text(&mut self) -> String {
352 let t = self.advance();
353 self.lexeme(&t).to_string()
354 }
355
356 /* Skips Newline/Nl/Comment; maps Endmarker->None; latches saw_newline for ternary detection. */
357 pub(super) fn peek(&mut self) -> Option<TokenType> {

Callers 14

stmtMethod · 0.80
emit_name_listMethod · 0.80
name_stmtMethod · 0.80
parse_del_targetMethod · 0.80
comprehension_loopMethod · 0.80
class_def_withMethod · 0.80
func_def_innerMethod · 0.80
parse_paramsMethod · 0.80
for_stmt_innerMethod · 0.80
try_stmtMethod · 0.80
with_stmt_innerMethod · 0.80
do_import_stmtMethod · 0.80

Calls 2

advanceMethod · 0.80
lexemeMethod · 0.80

Tested by

no test coverage detected