@@ -14,7 +14,6 @@ private import SuccessorTypes
14
14
private newtype TCompletion =
15
15
TSimpleCompletion ( ) or
16
16
TBooleanCompletion ( boolean b ) { b in [ false , true ] } or
17
- TEmptinessCompletion ( boolean isEmpty ) { isEmpty in [ false , true ] } or
18
17
TMatchingCompletion ( boolean isMatch ) { isMatch in [ false , true ] } or
19
18
TReturnCompletion ( ) or
20
19
TBreakCompletion ( ) or
@@ -239,8 +238,8 @@ class SimpleCompletion extends NonNestedNormalCompletion, TSimpleCompletion {
239
238
240
239
/**
241
240
* A completion that represents evaluation of an expression, whose value determines
242
- * the successor. Either a Boolean completion (`BooleanCompletion`), an emptiness
243
- * completion (`EmptinessCompletion`), or a matching completion (` MatchingCompletion`).
241
+ * the successor. Either a Boolean completion (`BooleanCompletion`), or a matching
242
+ * completion (`MatchingCompletion`).
244
243
*/
245
244
abstract class ConditionalCompletion extends NonNestedNormalCompletion {
246
245
boolean value ;
@@ -277,18 +276,6 @@ class FalseCompletion extends BooleanCompletion {
277
276
FalseCompletion ( ) { this .getValue ( ) = false }
278
277
}
279
278
280
- /**
281
- * A completion that represents evaluation of an emptiness test, for example
282
- * a test in a `for in` statement.
283
- */
284
- class EmptinessCompletion extends ConditionalCompletion , TEmptinessCompletion {
285
- EmptinessCompletion ( ) { this = TEmptinessCompletion ( value ) }
286
-
287
- override EmptinessSuccessor getAMatchingSuccessorType ( ) { result .getValue ( ) = value }
288
-
289
- override string toString ( ) { if value = true then result = "empty" else result = "non-empty" }
290
- }
291
-
292
279
/**
293
280
* A completion that represents evaluation of a matching test, for example
294
281
* a test in a `rescue` statement.
0 commit comments