@@ -2806,19 +2806,15 @@ class _NullLog implements Log {
2806
2806
}
2807
2807
// enums
2808
2808
2809
- class CodeKind {
2810
- CodeKind ._();
2811
-
2809
+ abstract class CodeKind {
2812
2810
static const String kDart = 'Dart' ;
2813
2811
static const String kNative = 'Native' ;
2814
2812
static const String kStub = 'Stub' ;
2815
2813
static const String kTag = 'Tag' ;
2816
2814
static const String kCollected = 'Collected' ;
2817
2815
}
2818
2816
2819
- class ErrorKind {
2820
- ErrorKind ._();
2821
-
2817
+ abstract class ErrorKind {
2822
2818
/// The isolate has encountered an unhandled Dart exception.
2823
2819
static const String kUnhandledException = 'UnhandledException' ;
2824
2820
@@ -2959,9 +2955,7 @@ abstract class EventKind {
2959
2955
2960
2956
/// Adding new values to `InstanceKind` is considered a backwards compatible
2961
2957
/// change. Clients should treat unrecognized instance kinds as `PlainInstance` .
2962
- class InstanceKind {
2963
- InstanceKind ._();
2964
-
2958
+ abstract class InstanceKind {
2965
2959
/// A general instance of the Dart class Object.
2966
2960
static const String kPlainInstance = 'PlainInstance' ;
2967
2961
@@ -3067,9 +3061,7 @@ class InstanceKind {
3067
3061
///
3068
3062
/// Adding new values to `SentinelKind` is considered a backwards compatible
3069
3063
/// change. Clients must handle this gracefully.
3070
- class SentinelKind {
3071
- SentinelKind ._();
3072
-
3064
+ abstract class SentinelKind {
3073
3065
/// Indicates that the object referred to has been collected by the GC.
3074
3066
static const String kCollected = 'Collected' ;
3075
3067
@@ -3090,9 +3082,7 @@ class SentinelKind {
3090
3082
}
3091
3083
3092
3084
/// A `FrameKind` is used to distinguish different kinds of `Frame` objects.
3093
- class FrameKind {
3094
- FrameKind ._();
3095
-
3085
+ abstract class FrameKind {
3096
3086
static const String kRegular = 'Regular' ;
3097
3087
static const String kAsyncCausal = 'AsyncCausal' ;
3098
3088
static const String kAsyncSuspensionMarker = 'AsyncSuspensionMarker' ;
@@ -3101,9 +3091,7 @@ class FrameKind {
3101
3091
static const String kAsyncActivation = 'AsyncActivation' ;
3102
3092
}
3103
3093
3104
- class SourceReportKind {
3105
- SourceReportKind ._();
3106
-
3094
+ abstract class SourceReportKind {
3107
3095
/// Used to request a code coverage information.
3108
3096
static const String kCoverage = 'Coverage' ;
3109
3097
@@ -3116,19 +3104,15 @@ class SourceReportKind {
3116
3104
3117
3105
/// An `ExceptionPauseMode` indicates how the isolate pauses when an exception
3118
3106
/// is thrown.
3119
- class ExceptionPauseMode {
3120
- ExceptionPauseMode ._();
3121
-
3107
+ abstract class ExceptionPauseMode {
3122
3108
static const String kNone = 'None' ;
3123
3109
static const String kUnhandled = 'Unhandled' ;
3124
3110
static const String kAll = 'All' ;
3125
3111
}
3126
3112
3127
3113
/// A `StepOption` indicates which form of stepping is requested in a [resume]
3128
3114
/// RPC.
3129
- class StepOption {
3130
- StepOption ._();
3131
-
3115
+ abstract class StepOption {
3132
3116
static const String kInto = 'Into' ;
3133
3117
static const String kOver = 'Over' ;
3134
3118
static const String kOverAsyncSuspension = 'OverAsyncSuspension' ;
0 commit comments