MCPcopy Create free account
hub / github.com/PLSysSec/wave / peek_operator

Method peek_operator

tools/fuzz-gen/src/specifications/preparser.rs:444–446  ·  view source on GitHub ↗

does the input start with this operator?

(&self, operator: &str)

Source from the content-addressed store, hash-verified

442 }
443 /// does the input start with this operator?
444 fn peek_operator(&self, operator: &str) -> bool {
445 self.peek_operator_stream_offset(&self.tokens, operator, 0)
446 }
447 /// does the given stream contain this operator?
448 fn peek_operator_stream_offset(&self, stream: &VecDeque<TokenTree>, operator: &str, offset: usize) -> bool {
449 for (i, c) in operator.char_indices() {

Callers 4

parse_rust_untilMethod · 0.80
is_part_of_rust_exprMethod · 0.80
consume_operatorMethod · 0.80
create_stream_untilMethod · 0.80

Calls 1

Tested by

no test coverage detected