Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: pkg/front_end/testcases/optional.dart.direct.expect

Issue 2981783002: Set 'isSyntheticDefault' for default constructors. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/optional.dart.direct.expect
diff --git a/pkg/front_end/testcases/optional.dart.direct.expect b/pkg/front_end/testcases/optional.dart.direct.expect
index 947d12b66a78b9d8cc7d95552d7b70f4c8433260..972e36562fb299c4251f504cde0c79aa0c01f899 100644
--- a/pkg/front_end/testcases/optional.dart.direct.expect
+++ b/pkg/front_end/testcases/optional.dart.direct.expect
@@ -3,45 +3,45 @@ import self as self;
import "dart:core" as core;
class Foo extends core::Object {
- constructor •() → void
+ default constructor •() → void
: super core::Object::•()
;
- method method(dynamic x, [dynamic y, dynamic z]) → dynamic {
+ method method(dynamic x, [dynamic y = null, dynamic z = null]) → dynamic {
return "string";
}
}
abstract class External extends core::Object {
- constructor •() → void
+ default constructor •() → void
: super core::Object::•()
;
- abstract method externalMethod(core::int x, [core::int y, core::int z]) → core::String;
+ abstract method externalMethod(core::int x, [core::int y = null, core::int z = null]) → core::String;
abstract method listen(self::Listener listener) → void;
}
abstract class Listener extends core::Object {
- constructor •() → void
+ default constructor •() → void
: super core::Object::•()
;
- abstract method event(core::String input, [core::int x, core::int y]) → void;
+ abstract method event(core::String input, [core::int x = null, core::int y = null]) → void;
}
class TestListener extends self::Listener {
- constructor •() → void
+ default constructor •() → void
: super self::Listener::•()
;
- method event(dynamic input, [dynamic x, dynamic y]) → void {}
+ method event(dynamic input, [dynamic x = null, dynamic y = null]) → void {}
}
class ExtendedListener extends self::Listener {
- constructor •() → void
+ default constructor •() → void
: super self::Listener::•()
;
- method event(dynamic input, [dynamic x, dynamic y, dynamic z]) → void {}
+ method event(dynamic input, [dynamic x = null, dynamic y = null, dynamic z = null]) → void {}
}
class InvalidListener extends core::Object {
- constructor •() → void
+ default constructor •() → void
: super core::Object::•()
;
- method event(dynamic input, [dynamic x]) → void {}
+ method event(dynamic input, [dynamic x = null]) → void {}
}
-external static method createExternal() → self::External;
+external static abstract method createExternal() → self::External;
static method main() → dynamic {
dynamic foo = new self::Foo::•();
dynamic string1 = foo.method(1);

Powered by Google App Engine
This is Rietveld 408576698