MCPcopy Create free account
hub / github.com/Florob/RustyXML / in_comment_opening

Method in_comment_opening

src/parser.rs:617–625  ·  view source on GitHub ↗

Opening sequence of a comment '-' => InComment1

(&mut self, c: char)

Source from the content-addressed store, hash-verified

615 // Opening sequence of a comment
616 // '-' => InComment1
617 fn in_comment_opening(&mut self, c: char) -> Result<Option<Event>, ParserError> {
618 if c == '-' {
619 self.st = State::InComment1;
620 self.level = 0;
621 Ok(None)
622 } else {
623 self.error("Expected 2nd '-' to start comment")
624 }
625 }
626
627 // Inside a comment
628 // '-' '-' => InComment2

Callers 1

parse_characterMethod · 0.80

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected