Index: lib/compiler/implementation/resolver.dart |
=================================================================== |
--- lib/compiler/implementation/resolver.dart (revision 13588) |
+++ lib/compiler/implementation/resolver.dart (working copy) |
@@ -1011,9 +1011,9 @@ |
// TODO(johnniwinther): Should never return [null] but instead an erroneous |
// type. |
DartType resolveTypeAnnotation(TypeAnnotation node, |
- [Scope inScope, ClassElement inClass, |
+ {Scope inScope, ClassElement inClass, |
onFailure(Node, MessageKind, [List arguments]), |
- whenResolved(Node, Type)]) { |
+ whenResolved(Node, Type)}) { |
if (onFailure === null) { |
onFailure = (n, k, [arguments]) {}; |
} |
@@ -1245,7 +1245,7 @@ |
} |
Element defineElement(Node node, Element element, |
- [bool doAddToScope = true]) { |
+ {bool doAddToScope: true}) { |
compiler.ensure(element !== null); |
mapping[node] = element; |
if (doAddToScope) { |
@@ -1834,11 +1834,11 @@ |
// [cls] might be the declaration element and we want to include injected |
// members. |
cls.implementation.forEachInstanceField( |
+ (ClassElement enclosingClass, Element member) { |
+ world.addToWorkList(member); |
+ }, |
includeBackendMembers: false, |
- includeSuperMembers: true, |
- f: (ClassElement enclosingClass, Element member) { |
- world.addToWorkList(member); |
- }); |
+ includeSuperMembers: true); |
return null; |
} |