(self)
| 125 | # explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* |
| 126 | |
| 127 | def parse_stream_start(self): |
| 128 | |
| 129 | # Parse the stream start. |
| 130 | token = self.get_token() |
| 131 | event = StreamStartEvent(token.start_mark, token.end_mark, |
| 132 | encoding=token.encoding) |
| 133 | |
| 134 | # Prepare the next state. |
| 135 | self.state = self.parse_implicit_document_start |
| 136 | |
| 137 | return event |
| 138 | |
| 139 | def parse_implicit_document_start(self): |
| 140 |
nothing calls this directly
no test coverage detected