MCPcopy Create free account
hub / github.com/apache/madlib / parse_document_end

Method parse_document_end

src/madpack/yaml/parser.py:187–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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,

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