Lines Matching full:element_end
38 ELEMENT_START, ELEMENT_END, CHARACTER_DATA, EOF = range(4)
44 assert type in (ELEMENT_START, ELEMENT_END, CHARACTER_DATA, EOF)
54 if self.type == ELEMENT_END:
90 token = XmlToken(ELEMENT_END, name, None, line, column)
159 return self.token.type == ELEMENT_END and self.token.name_or_data == name
172 def element_end(self, name):
175 if self.token.type != ELEMENT_END:
176 raise TokenMismatch(XmlToken(ELEMENT_END, name), self.token)
178 raise TokenMismatch(XmlToken(ELEMENT_END, name), self.token)
199 while self.token.type not in (ELEMENT_END, EOF):
203 self.element_end('trace')
229 self.element_end('call')
237 self.element_end('arg')
244 self.element_end('ret')
258 self.element_end('null')
264 self.element_end('bool')
270 self.element_end('int')
276 self.element_end('uint')
282 self.element_end('float')
288 self.element_end('enum')
294 self.element_end('string')
300 self.element_end('bytes')
306 while self.token.type != ELEMENT_END:
308 self.element_end('array')
314 self.element_end('elem')
321 while self.token.type != ELEMENT_END:
323 self.element_end('struct')
330 self.element_end('member')
337 self.element_end('ptr')