Index: tests/lib_strong/mirrors/operator_test.dart |
diff --git a/tests/lib_strong/mirrors/operator_test.dart b/tests/lib_strong/mirrors/operator_test.dart |
index c534f1ff514481b263bfebe1a9ef47d7329ffbda..b8ddfec486deab0fbd5f81ed2c09175ea5620ca3 100644 |
--- a/tests/lib_strong/mirrors/operator_test.dart |
+++ b/tests/lib_strong/mirrors/operator_test.dart |
@@ -41,9 +41,9 @@ void main() { |
ClassMirror cls = reflectClass(Foo); |
var operators = new Map<Symbol, MethodMirror>(); |
var operatorParameters = new Map<Symbol, List>(); |
- var returnTypes = new Map<Symbol, Mirror>(); |
- for (MethodMirror method in cls.declarations.values.where( |
- (d) => d is MethodMirror && !d.isConstructor)) { |
+ var returnTypes = new Map<Symbol, Mirror>(); |
+ for (MethodMirror method in cls.declarations.values |
+ .where((d) => d is MethodMirror && !d.isConstructor)) { |
Expect.isTrue(method.isRegularMethod); |
Expect.isTrue(method.isOperator); |
Expect.isFalse(method.isGetter); |
@@ -59,27 +59,27 @@ void main() { |
} |
const String OPERATORS = '{' |
-'%: Method(s(%) in s(Foo)), ' |
-'&: Method(s(&) in s(Foo)), ' |
-'*: Method(s(*) in s(Foo)), ' |
-'+: Method(s(+) in s(Foo)), ' |
-'-: Method(s(-) in s(Foo)), ' |
-'/: Method(s(/) in s(Foo)), ' |
-'<: Method(s(<) in s(Foo)), ' |
-'<<: Method(s(<<) in s(Foo)), ' |
-'<=: Method(s(<=) in s(Foo)), ' |
-'==: Method(s(==) in s(Foo)), ' |
-'>: Method(s(>) in s(Foo)), ' |
-'>=: Method(s(>=) in s(Foo)), ' |
-'>>: Method(s(>>) in s(Foo)), ' |
-'[]: Method(s([]) in s(Foo)), ' |
-'[]=: Method(s([]=) in s(Foo)), ' |
-'^: Method(s(^) in s(Foo)), ' |
-'unary-: Method(s(unary-) in s(Foo)), ' |
-'|: Method(s(|) in s(Foo)), ' |
-'~: Method(s(~) in s(Foo)), ' |
-'~/: Method(s(~/) in s(Foo))' |
-'}'; |
+ '%: Method(s(%) in s(Foo)), ' |
+ '&: Method(s(&) in s(Foo)), ' |
+ '*: Method(s(*) in s(Foo)), ' |
+ '+: Method(s(+) in s(Foo)), ' |
+ '-: Method(s(-) in s(Foo)), ' |
+ '/: Method(s(/) in s(Foo)), ' |
+ '<: Method(s(<) in s(Foo)), ' |
+ '<<: Method(s(<<) in s(Foo)), ' |
+ '<=: Method(s(<=) in s(Foo)), ' |
+ '==: Method(s(==) in s(Foo)), ' |
+ '>: Method(s(>) in s(Foo)), ' |
+ '>=: Method(s(>=) in s(Foo)), ' |
+ '>>: Method(s(>>) in s(Foo)), ' |
+ '[]: Method(s([]) in s(Foo)), ' |
+ '[]=: Method(s([]=) in s(Foo)), ' |
+ '^: Method(s(^) in s(Foo)), ' |
+ 'unary-: Method(s(unary-) in s(Foo)), ' |
+ '|: Method(s(|) in s(Foo)), ' |
+ '~: Method(s(~) in s(Foo)), ' |
+ '~/: Method(s(~/) in s(Foo))' |
+ '}'; |
const String DYNAMIC = 'Type(s(dynamic), top-level)'; |
@@ -90,48 +90,48 @@ const String INT = 'Class(s(int) in s(dart.core), top-level)'; |
const String BOOL = 'Class(s(bool) in s(dart.core), top-level)'; |
const String PARAMETERS = '{' |
-'%: [Parameter(s(a) in s(%), type = $FOO)], ' |
-'&: [Parameter(s(a) in s(&), type = $FOO)], ' |
-'*: [Parameter(s(a) in s(*), type = $FOO)], ' |
-'+: [Parameter(s(a) in s(+), type = $FOO)], ' |
-'-: [Parameter(s(a) in s(-), type = $FOO)], ' |
-'/: [Parameter(s(a) in s(/), type = $FOO)], ' |
-'<: [Parameter(s(a) in s(<), type = $FOO)], ' |
-'<<: [Parameter(s(a) in s(<<), type = $FOO)], ' |
-'<=: [Parameter(s(a) in s(<=), type = $FOO)], ' |
-'==: [Parameter(s(a) in s(==), type = $DYNAMIC)], ' |
-'>: [Parameter(s(a) in s(>), type = $FOO)], ' |
-'>=: [Parameter(s(a) in s(>=), type = $FOO)], ' |
-'>>: [Parameter(s(a) in s(>>), type = $FOO)], ' |
-'[]: [Parameter(s(a) in s([]), type = $INT)], ' |
-'[]=: [Parameter(s(a) in s([]=), type = $INT), ' |
- 'Parameter(s(b) in s([]=), type = $FOO)], ' |
-'^: [Parameter(s(a) in s(^), type = $FOO)], ' |
-'unary-: [], ' |
-'|: [Parameter(s(a) in s(|), type = $FOO)], ' |
-'~: [], ' |
-'~/: [Parameter(s(a) in s(~/), type = $FOO)]' |
-'}'; |
+ '%: [Parameter(s(a) in s(%), type = $FOO)], ' |
+ '&: [Parameter(s(a) in s(&), type = $FOO)], ' |
+ '*: [Parameter(s(a) in s(*), type = $FOO)], ' |
+ '+: [Parameter(s(a) in s(+), type = $FOO)], ' |
+ '-: [Parameter(s(a) in s(-), type = $FOO)], ' |
+ '/: [Parameter(s(a) in s(/), type = $FOO)], ' |
+ '<: [Parameter(s(a) in s(<), type = $FOO)], ' |
+ '<<: [Parameter(s(a) in s(<<), type = $FOO)], ' |
+ '<=: [Parameter(s(a) in s(<=), type = $FOO)], ' |
+ '==: [Parameter(s(a) in s(==), type = $DYNAMIC)], ' |
+ '>: [Parameter(s(a) in s(>), type = $FOO)], ' |
+ '>=: [Parameter(s(a) in s(>=), type = $FOO)], ' |
+ '>>: [Parameter(s(a) in s(>>), type = $FOO)], ' |
+ '[]: [Parameter(s(a) in s([]), type = $INT)], ' |
+ '[]=: [Parameter(s(a) in s([]=), type = $INT), ' |
+ 'Parameter(s(b) in s([]=), type = $FOO)], ' |
+ '^: [Parameter(s(a) in s(^), type = $FOO)], ' |
+ 'unary-: [], ' |
+ '|: [Parameter(s(a) in s(|), type = $FOO)], ' |
+ '~: [], ' |
+ '~/: [Parameter(s(a) in s(~/), type = $FOO)]' |
+ '}'; |
const String RETURN_TYPES = '{' |
-'%: $FOO, ' |
-'&: $FOO, ' |
-'*: $FOO, ' |
-'+: $FOO, ' |
-'-: $FOO, ' |
-'/: $FOO, ' |
-'<: $FOO, ' |
-'<<: $FOO, ' |
-'<=: $FOO, ' |
-'==: $BOOL, ' |
-'>: $FOO, ' |
-'>=: $FOO, ' |
-'>>: $FOO, ' |
-'[]: $FOO, ' |
-'[]=: $DYNAMIC, ' |
-'^: $FOO, ' |
-'unary-: $FOO, ' |
-'|: $FOO, ' |
-'~: $FOO, ' |
-'~/: $FOO' |
-'}'; |
+ '%: $FOO, ' |
+ '&: $FOO, ' |
+ '*: $FOO, ' |
+ '+: $FOO, ' |
+ '-: $FOO, ' |
+ '/: $FOO, ' |
+ '<: $FOO, ' |
+ '<<: $FOO, ' |
+ '<=: $FOO, ' |
+ '==: $BOOL, ' |
+ '>: $FOO, ' |
+ '>=: $FOO, ' |
+ '>>: $FOO, ' |
+ '[]: $FOO, ' |
+ '[]=: $DYNAMIC, ' |
+ '^: $FOO, ' |
+ 'unary-: $FOO, ' |
+ '|: $FOO, ' |
+ '~: $FOO, ' |
+ '~/: $FOO' |
+ '}'; |