(self)
| 185 | return event |
| 186 | |
| 187 | def parse_document_end(self): |
| 188 | |
| 189 | # Parse the document end. |
| 190 | token = self.peek_token() |
| 191 | start_mark = end_mark = token.start_mark |
| 192 | explicit = False |
| 193 | if self.check_token(DocumentEndToken): |
| 194 | token = self.get_token() |
| 195 | end_mark = token.end_mark |
| 196 | explicit = True |
| 197 | event = DocumentEndEvent(start_mark, end_mark, |
| 198 | explicit=explicit) |
| 199 | |
| 200 | # Prepare the next state. |
| 201 | self.state = self.parse_document_start |
| 202 | |
| 203 | return event |
| 204 | |
| 205 | def parse_document_content(self): |
| 206 | if self.check_token(DirectiveToken, |
nothing calls this directly
no test coverage detected