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

Method from_token_stream

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

initializes the parser with a TokenStream

(tokens: TokenStream)

Source from the content-addressed store, hash-verified

74impl Parser {
75 /// initializes the parser with a TokenStream
76 pub fn from_token_stream(tokens: TokenStream) -> Self {
77 Self {
78 tokens: tokens.into_iter().collect(),
79 last_span: None,
80 source_span: None,
81 }
82 }
83 /// initializes the parser with a TokenStream and the last span
84 fn from_token_stream_last_span(&self, tokens: TokenStream) -> Self {
85 Self {

Callers

nothing calls this directly

Calls 1

into_iterMethod · 0.80

Tested by

no test coverage detected