-
-
Save toshok/9075ae87c90edf85adbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Value ASTInterpreter::visit_invoke(AST_Invoke* node) { | |
Value v; | |
try { | |
v = visit_stmt(node->stmt); | |
next_block = node->normal_dest; | |
} catch (ExcInfo e) { | |
if (e.incremental_traceback) { | |
auto source = getCF()->clfunc->source.get(); | |
static_cast<BoxedTraceback*>(e.traceback)->addLine(new LineInfo(node->lineno, node->col_offset, source->fn, source->getName())); | |
} | |
next_block = node->exc_dest; | |
last_exception = e; | |
} | |
return v; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment