Skip to content

Commit

Permalink
Fix printing missed class name in ASTNode::NODE_CLASS
Browse files Browse the repository at this point in the history
  • Loading branch information
greenozon committed Dec 8, 2023
1 parent 7d81581 commit 6afa46e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ASTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3294,7 +3294,8 @@ void print_src(PycRef<ASTNode> node, PycModule* mod, std::ostream& pyc_output)
{
pyc_output << "\n";
start_line(cur_indent, pyc_output);
pyc_output << "class ";
pyc_output << "class " << node.cast<ASTClass>()->name().
cast<ASTObject>()->object().cast<PycString>()->value();

PycRef<ASTTuple> bases = node.cast<ASTClass>()->bases().cast<ASTTuple>();
if (bases->values().size() > 0) {
Expand Down

0 comments on commit 6afa46e

Please sign in to comment.