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

Method pos

cranelift/isle/isle/src/parser.rs:92–100  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

90 }
91
92 fn pos(&self) -> Pos {
93 if !self.disable_pos {
94 self.lexer
95 .peek()
96 .map_or_else(|| self.lexer.pos(), |(pos, _)| *pos)
97 } else {
98 Pos::default()
99 }
100 }
101
102 fn is_lparen(&self) -> bool {
103 self.is(|tok| *tok == Token::LParen)

Callers 15

expectMethod · 0.45
parse_defMethod · 0.45
parse_identMethod · 0.45
parse_constMethod · 0.45
parse_typeMethod · 0.45
parse_typevalueMethod · 0.45
parse_type_variantMethod · 0.45
parse_struct_fieldsMethod · 0.45
parse_struct_fieldMethod · 0.45
parse_tuple_fieldsMethod · 0.45
parse_tuple_fieldMethod · 0.45
parse_declMethod · 0.45

Calls 1

peekMethod · 0.45

Tested by

no test coverage detected