Files
sdk/pkg/front_end/testcases/null_aware.dart.strong.expect
T
Jens Johansen c1160d8cfa [kernel] Change ast to text output to use synthetic instead of default
Change-Id: Ied8777df13aa0411daf89f3ad3ec6bdda7bb4898
Reviewed-on: https://dart-review.googlesource.com/35862
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2018-01-19 09:58:46 +00:00

23 lines
1012 B
Plaintext

library;
import self as self;
import "dart:core" as core;
class Foo extends core::Object {
field core::int field = null;
static field core::int staticField = null;
synthetic constructor •() → void
: super core::Object::•()
;
}
static method main() → dynamic {
self::Foo foo = new self::Foo::•();
let final self::Foo #t1 = foo in #t1.==(null) ? null : #t1.{self::Foo::field} = 5;
self::Foo::staticField = 5;
let final self::Foo #t2 = foo in #t2.{self::Foo::field}.==(null) ? #t2.{self::Foo::field} = 5 : null;
self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null;
let final self::Foo #t3 = foo in #t3.==(null) ? null : #t3.{self::Foo::field}.==(null) ? #t3.{self::Foo::field} = 5 : null;
self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null;
core::int intValue = let final core::int #t4 = foo.{self::Foo::field} in #t4.==(null) ? 6 : #t4;
core::num numValue = let final core::int #t5 = foo.{self::Foo::field} in #t5.==(null) ? 4.5 : #t5;
}