MCPcopy Create free account
hub / github.com/ablab/spades / parse_document_end

Method parse_document_end

ext/src/python_libs/pyyaml3/parser.py:190–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 4

DocumentEndEventClass · 0.85
peek_tokenMethod · 0.80
check_tokenMethod · 0.80
get_tokenMethod · 0.80

Tested by

no test coverage detected