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

Side by Side Diff: testcases/strong-mode/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 unified diff | Download patch
OLDNEW
(Empty)
1 library;
2 import self as self;
3 import "dart:core" as core;
4
5 class Superclass extends core::Object {
6 constructor •() → void
7 : super core::Object::•()
8 ;
9 method foo({dynamic alpha, dynamic beta}) → dynamic {}
10 method bar({dynamic alpha, dynamic beta}) → dynamic {}
11 method namedCallback(({alpha: dynamic, beta: dynamic}) → dynamic callback) → d ynamic {}
12 }
13 class Subclass extends self::Superclass {
14 constructor •() → void
15 : super self::Superclass::•()
16 ;
17 method foo({dynamic alpha, dynamic beta}) → dynamic {}
18 method bar({dynamic alpha, dynamic beta}) → dynamic {}
19 method namedCallback(({alpha: dynamic, beta: dynamic}) → dynamic callback) → d ynamic {}
20 }
21 static method topLevelNamed(dynamic beta, dynamic alpha, {dynamic delta, dynamic gamma}) → dynamic {}
22 static method topLevelOptional(dynamic beta, dynamic alpha, [dynamic gamma, dyna mic delta]) → dynamic {}
23 static method main() → dynamic {
24 new self::Subclass::•().{self::Subclass::foo}(beta: 1, alpha: 2);
25 new self::Subclass::•().{self::Subclass::foo}(alpha: 1, beta: 2);
26 self::topLevelNamed(1, 2, gamma: 3, delta: 4);
27 self::topLevelNamed(1, 2, delta: 3, gamma: 4);
28 }
OLDNEW
« no previous file with comments | « testcases/spec-mode/named_parameters.baseline.txt ('k') | testcases/type-propagation/named_parameters.baseline.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698