| Index: pkg/compiler/lib/src/universe/use.dart
|
| diff --git a/pkg/compiler/lib/src/universe/use.dart b/pkg/compiler/lib/src/universe/use.dart
|
| index 7cb642eae11b7f86834091035dda2d5355597c16..5876a1814f49a0f2f4207ed9bd7fe6a56e3a4a2a 100644
|
| --- a/pkg/compiler/lib/src/universe/use.dart
|
| +++ b/pkg/compiler/lib/src/universe/use.dart
|
| @@ -323,6 +323,8 @@ enum TypeUseKind {
|
| CATCH_TYPE,
|
| TYPE_LITERAL,
|
| INSTANTIATION,
|
| + MIRROR_INSTANTIATION,
|
| + NATIVE_INSTANTIATION,
|
| }
|
|
|
| /// Use of a [DartType].
|
| @@ -366,6 +368,16 @@ class TypeUse {
|
| return new TypeUse.internal(type, TypeUseKind.INSTANTIATION);
|
| }
|
|
|
| + /// [type] used in an instantiation through mirrors.
|
| + factory TypeUse.mirrorInstantiation(InterfaceType type) {
|
| + return new TypeUse.internal(type, TypeUseKind.MIRROR_INSTANTIATION);
|
| + }
|
| +
|
| + /// [type] used in a native instantiation.
|
| + factory TypeUse.nativeInstantiation(InterfaceType type) {
|
| + return new TypeUse.internal(type, TypeUseKind.NATIVE_INSTANTIATION);
|
| + }
|
| +
|
| bool operator ==(other) {
|
| if (identical(this, other)) return true;
|
| if (other is! TypeUse) return false;
|
|
|