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

Method scan_comment

cranelift/reader/src/lexer.rs:240–244  ·  view source on GitHub ↗

Scan a comment extending to the end of the current line.

(&mut self)

Source from the content-addressed store, hash-verified

238
239 // Scan a comment extending to the end of the current line.
240 fn scan_comment(&mut self) -> Result<LocatedToken<'a>, LocatedError> {
241 let loc = self.loc();
242 let text = self.rest_of_line();
243 token(Token::Comment(text), loc)
244 }
245
246 // Scan a number token which can represent either an integer or floating point number.
247 //

Callers 1

nextMethod · 0.80

Calls 4

tokenFunction · 0.85
CommentClass · 0.85
locMethod · 0.80
rest_of_lineMethod · 0.80

Tested by

no test coverage detected