MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / peek

Method peek

aiscript-lexer/src/lib.rs:273–275  ·  view source on GitHub ↗

Peeks at the next character without consuming it

(&mut self)

Source from the content-addressed store, hash-verified

271
272 // Peeks at the next character without consuming it
273 fn peek(&mut self) -> Option<char> {
274 self.iter.peek().map(|&(_, c)| c)
275 }
276
277 // Looks ahead at the next N characters without consuming them
278 fn check_next(&self, n: usize) -> Option<&str> {

Callers 8

skip_white_spacesMethod · 0.45
scan_docstringMethod · 0.45
scan_identifierMethod · 0.45
scan_tokenMethod · 0.45
scan_fstringMethod · 0.45
scan_stringMethod · 0.45
read_raw_scriptMethod · 0.45
peek_nextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected