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

Function analysis_error

Tools/cases_generator/analyzer.py:341–344  ·  view source on GitHub ↗
(message: str, tkn: lexer.Token)

Source from the content-addressed store, hash-verified

339
340
341def analysis_error(message: str, tkn: lexer.Token) -> SyntaxError:
342 # To do -- support file and line output
343 # Construct a SyntaxError instance from message and token
344 return lexer.make_syntax_error(message, tkn.filename, tkn.line, tkn.column, "")
345
346
347def override_error(

Callers 15

validate_uopFunction · 0.90
write_uopFunction · 0.90
write_uopFunction · 0.90
emit_toFunction · 0.90
dispatchMethod · 0.90
decref_inputsMethod · 0.90
killMethod · 0.90
stackref_killMethod · 0.90
stack_pointerMethod · 0.90

Calls 1

make_syntax_errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…