Python: Moves non_local_control_flow to new API, and fixes bug in ClassValue implementation

This commit is contained in:
Rebecca Valentine
2020-03-03 15:38:35 -08:00
parent 85f5ad2231
commit e39a0c9121
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ predicate no_comment(ExceptStmt ex) {
}
predicate non_local_control_flow(ExceptStmt ex) {
ex.getType().refersTo(theStopIterationType())
ex.getType().pointsTo(ClassValue::stopIteration())
}
predicate try_has_normal_exit(Try try) {

View File

@@ -839,7 +839,7 @@ module ClassValue {
/** Get the `ClassValue` for the `StopIteration` class. */
ClassValue stopIteration() {
result = TBuiltinClassObject(Builtin::special("StopIteration"))
result = TBuiltinClassObject(Builtin::builtin("StopIteration"))
}
/** Get the `ClassValue` for the class of modules. */