31e119e594
This reports the error on empty map pattern and moves the reporting of rest patterns in map patterns to the shared analysis. Change-Id: I317d0c42a3bc7534462b1b9781c1f6471746fc0f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/292860 Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class Class extends core::Object {
|
|
synthetic constructor •() → self::Class
|
|
;
|
|
get field() → core::int
|
|
;
|
|
operator >=(self::Class cls) → core::bool
|
|
;
|
|
operator >(core::int i) → self::Class
|
|
;
|
|
}
|
|
static method argumentTypeNotAssignable(self::Class cls) → dynamic
|
|
;
|
|
static method relationalPatternOperatorReturnTypeNotAssignableToBool(self::Class cls) → dynamic
|
|
;
|
|
static method patternTypeMismatchInIrrefutableContext(core::List<core::String> list) → dynamic
|
|
;
|
|
static method duplicateAssignmentPatternVariable(core::List<core::String> list) → dynamic
|
|
;
|
|
static method duplicateRecordPatternField(dynamic o) → dynamic
|
|
;
|
|
static method duplicateRestPattern(dynamic o) → dynamic
|
|
;
|
|
static method emptyMapPattern(dynamic o) → dynamic
|
|
;
|
|
static method singleRestPatternInMap(dynamic o) → dynamic
|
|
;
|
|
static method matchedTypeIsStrictlyNonNullable(core::List<core::int> list) → dynamic
|
|
;
|
|
static method nonBooleanCondition(core::int i) → dynamic
|
|
;
|
|
static method refutablePatternInIrrefutableContext(core::int? x) → dynamic
|
|
;
|
|
static method restPatternNotLastInMap(dynamic o) → dynamic
|
|
;
|
|
static method restPatternWithSubPatternInMap(dynamic o) → dynamic
|
|
;
|