MCPcopy Create free account
hub / github.com/Glyphack/enderpy / peek_kind

Method peek_kind

parser/src/parser/parser.rs:138–141  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

136 }
137
138 fn peek_kind(&mut self) -> Result<Kind, ParsingError> {
139 let token = self.peek_token()?;
140 Ok(token.kind)
141 }
142
143 /// Checks if the current index has token `Kind`
144 fn at(&self, kind: Kind) -> bool {

Callers 3

parse_targetMethod · 0.80
parse_comp_operatorMethod · 0.80

Calls 1

peek_tokenMethod · 0.45

Tested by

no test coverage detected