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

Unified Diff: testcases/type-propagation/named_parameters.baseline.txt

Issue 2502343002: Store named parameters in sorted lists instead of using maps. (Closed)
Patch Set: Remove duplicates from named parameter lists to recover from erroneous inputs Created 4 years, 1 month 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
« no previous file with comments | « testcases/strong-mode/named_parameters.baseline.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testcases/type-propagation/named_parameters.baseline.txt
diff --git a/testcases/type-propagation/named_parameters.baseline.txt b/testcases/type-propagation/named_parameters.baseline.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fe5704375df9f12d7aa07c054653be2c88f2987a
--- /dev/null
+++ b/testcases/type-propagation/named_parameters.baseline.txt
@@ -0,0 +1,28 @@
+library;
+import self as self;
+import "dart:core" as core;
+
+class Superclass extends core::Object {
+ constructor •() → void
+ : super core::Object::•()
+ ;
+ method foo({dynamic/Null alpha, dynamic/Null beta}) → dynamic/Null {}
+ method bar({dynamic/Null alpha, dynamic/Null beta}) → dynamic/Null {}
+ method namedCallback(({alpha: dynamic, beta: dynamic}) → dynamic/Nothing callback) → dynamic/Null {}
+}
+class Subclass extends self::Superclass {
+ constructor •() → void
+ : super self::Superclass::•()
+ ;
+ method foo({dynamic/core::int* {null,int} alpha, dynamic/core::int* {null,int} beta}) → dynamic/Null {}
+ method bar({dynamic/Null alpha, dynamic/Null beta}) → dynamic/Null {}
+ method namedCallback(({alpha: dynamic, beta: dynamic}) → dynamic/Nothing callback) → dynamic/Null {}
+}
+static method topLevelNamed(dynamic/core::int* {int} beta, dynamic/core::int* {int} alpha, {dynamic/core::int* {null,int} delta, dynamic/core::int* {null,int} gamma}) → dynamic/Null {}
+static method topLevelOptional(dynamic/Nothing beta, dynamic/Nothing alpha, [dynamic/Null gamma, dynamic/Null delta]) → dynamic/Null {}
+static method main() → dynamic/Null {
+ new self::Subclass::•().foo(beta: 1, alpha: 2);
+ new self::Subclass::•().foo(alpha: 1, beta: 2);
+ self::topLevelNamed(1, 2, gamma: 3, delta: 4);
+ self::topLevelNamed(1, 2, delta: 3, gamma: 4);
+}
« no previous file with comments | « testcases/strong-mode/named_parameters.baseline.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698