MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / looking_at

Method looking_at

cranelift/reader/src/lexer.rs:184–186  ·  view source on GitHub ↗

Starting from `lookahead`, are we looking at `prefix`?

(&self, prefix: &str)

Source from the content-addressed store, hash-verified

182
183 // Starting from `lookahead`, are we looking at `prefix`?
184 fn looking_at(&self, prefix: &str) -> bool {
185 self.source[self.pos..].starts_with(prefix)
186 }
187
188 // Starting from `lookahead`, are we looking at a number?
189 fn looking_at_numeric(&self) -> bool {

Callers 3

looking_at_numericMethod · 0.80
scan_numberMethod · 0.80
nextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected