3d19493f2d
+ add predicate helpers to identify these and extract their original names. TEST=pkg/front_end/test/predicates/predicate_test.dart Change-Id: I4d94c575d010b6b01c985eaf5392b9e0e979d044 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175250 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Jens Johansen <jensj@google.com>
20 lines
1.4 KiB
Plaintext
20 lines
1.4 KiB
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:_internal" as _in;
|
|
|
|
extension Extension on Never {
|
|
method extensionMethod = self::Extension|extensionMethod;
|
|
tearoff extensionMethod = self::Extension|get#extensionMethod;
|
|
}
|
|
static method Extension|extensionMethod(lowered final Never #this) → dynamic {}
|
|
static method Extension|get#extensionMethod(lowered final Never #this) → () → dynamic
|
|
return () → dynamic => self::Extension|extensionMethod(#this);
|
|
static method implicitAccess(Never never) → dynamic {
|
|
let final Never #t1 = (let final Never #t2 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")).extensionMethod() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.");
|
|
let final Never #t3 = (let final Never #t4 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")).missingMethod() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.");
|
|
}
|
|
static method explicitAccess(Never never) → dynamic {
|
|
self::Extension|extensionMethod(let final Never #t5 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."));
|
|
}
|
|
static method main() → dynamic {}
|