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

Method loc

cranelift/reader/src/lexer.rs:177–181  ·  view source on GitHub ↗

Get the location corresponding to `lookahead`.

(&self)

Source from the content-addressed store, hash-verified

175
176 // Get the location corresponding to `lookahead`.
177 fn loc(&self) -> Location {
178 Location {
179 line_number: self.line_number,
180 }
181 }
182
183 // Starting from `lookahead`, are we looking at `prefix`?
184 fn looking_at(&self, prefix: &str) -> bool {

Callers 9

scan_charMethod · 0.80
scan_charsMethod · 0.80
scan_commentMethod · 0.80
scan_numberMethod · 0.80
scan_wordMethod · 0.80
scan_nameMethod · 0.80
scan_stringMethod · 0.80
scan_hex_sequenceMethod · 0.80
nextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected