Fixup unrelated changes from PR

This commit is contained in:
Michael Hansen
2023-02-28 15:49:12 -08:00
parent 4d81a16638
commit 2e76e56420

View File

@@ -541,8 +541,7 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
pparamList.push_front(decor_name);
}
}
else {
} else {
pparamList.push_front(param);
}
}
@@ -1037,6 +1036,10 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
stack.push(new ASTAwaitable(object));
}
break;
case Pyc::GET_ITER:
case Pyc::GET_YIELD_FROM_ITER:
/* We just entirely ignore this */
break;
case Pyc::IMPORT_NAME_A:
if (mod->majorVer() == 1) {
stack.push(new ASTImport(new ASTName(code->getName(operand)), NULL));
@@ -2546,9 +2549,6 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
case Pyc::SETUP_ANNOTATIONS:
variable_annotations = true;
break;
case Pyc::GET_ITER:
case Pyc::GET_YIELD_FROM_ITER:
break;
case Pyc::PRECALL_A:
case Pyc::RESUME_A:
/* We just entirely ignore this / no-op */