MCPcopy Index your code
hub / github.com/python/cpython / ASDLSyntaxError

Class ASDLSyntaxError

Parser/asdl.py:237–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235Token = namedtuple('Token', 'kind value lineno')
236
237class ASDLSyntaxError(Exception):
238 def __init__(self, msg, lineno=None):
239 self.msg = msg
240 self.lineno = lineno or '<unknown>'
241
242 def __str__(self):
243 return 'Syntax error on line {0.lineno}: {0.msg}'.format(self)
244
245def tokenize_asdl(buf):
246 """Tokenize the given buffer. Yield Token objects."""

Callers 3

tokenize_asdlFunction · 0.85
_parse_moduleMethod · 0.85
_matchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…