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

Method take_comments

cranelift/reader/src/parser.rs:528–531  ·  view source on GitHub ↗

Get the comments collected so far, clearing out the internal list.

(&mut self)

Source from the content-addressed store, hash-verified

526
527 // Get the comments collected so far, clearing out the internal list.
528 fn take_comments(&mut self) -> Vec<Comment<'a>> {
529 debug_assert!(!self.gathering_comments);
530 mem::replace(&mut self.comments, Vec::new())
531 }
532
533 // Match and consume a token without payload.
534 fn match_token(&mut self, want: Token<'a>, err_msg: &str) -> ParseResult<Token<'a>> {

Callers 2

parse_testFunction · 0.80
parse_functionMethod · 0.80

Calls 2

replaceFunction · 0.50
newFunction · 0.50

Tested by

no test coverage detected