Commit 586a8c6e authored by Kevin Modzelewski's avatar Kevin Modzelewski Committed by GitHub

Merge pull request #1313 from kmod/repl_empty

Support empty lines on the repl
parents 27410967 b80e9dca
......@@ -710,6 +710,13 @@ public:
auto r = _convert(stmt);
r->lineno = stmt->lineno;
r->col_offset = stmt->col_offset;
if (stmt->lineno == 0) {
// So far it looks like these can only be generated for empty lines on the repl
assert(stmt->kind == Pass_kind);
r->lineno = 1;
}
return r;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment