| Index: dart/pkg/compiler/lib/src/world.dart
|
| diff --git a/dart/pkg/compiler/lib/src/world.dart b/dart/pkg/compiler/lib/src/world.dart
|
| index 4391cdb3fc3de33dca1f69415ef7f0c8eb849599..70bdcaa6ac35797adc1b0fe51a691cede574b2c3 100644
|
| --- a/dart/pkg/compiler/lib/src/world.dart
|
| +++ b/dart/pkg/compiler/lib/src/world.dart
|
| @@ -96,6 +96,10 @@ abstract class ClassWorld {
|
|
|
| /// Returns `true` if any subclass of [superclass] implements [type].
|
| bool hasAnySubclassThatImplements(ClassElement superclass, ClassElement type);
|
| +
|
| + /// Returns `true` if closed-world assumptions can be made, that is,
|
| + /// incremental compilation isn't enabled.
|
| + bool get hasClosedWorldAssumption;
|
| }
|
|
|
| class World implements ClassWorld {
|
| @@ -521,4 +525,6 @@ class World implements ClassWorld {
|
| }
|
| return functionsThatMightBePassedToApply.contains(element);
|
| }
|
| +
|
| + bool get hasClosedWorldAssumption => !compiler.hasIncrementalSupport;
|
| }
|
|
|