Fixup unrelated changes from PR
This commit is contained in:
10
ASTree.cpp
10
ASTree.cpp
@@ -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 */
|
||||
|
Reference in New Issue
Block a user