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