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

Method create_stream_remaining

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

pop tokens into a new stream for syn2 until the given operator character

(&mut self)

Source from the content-addressed store, hash-verified

530 }
531 /// pop tokens into a new stream for syn2 until the given operator character
532 fn create_stream_remaining(&mut self) -> TokenStream {
533 let mut t = vec![];
534 while !self.tokens.is_empty() {
535 t.push(self.pop().unwrap());
536 }
537 let mut stream = TokenStream::new();
538 stream.extend(t.into_iter());
539 stream
540 }
541 /// get the span of the blamed token
542 fn get_error_span(&self) -> Span {
543 if let Some(span) = self.last_span {

Callers 1

Calls 4

is_emptyMethod · 0.80
into_iterMethod · 0.80
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected