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

Unified Diff: lib/compiler/implementation/resolver.dart

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « lib/compiler/implementation/resolved_visitor.dart ('k') | lib/compiler/implementation/scanner/keyword.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/resolver.dart
===================================================================
--- lib/compiler/implementation/resolver.dart (revision 13683)
+++ lib/compiler/implementation/resolver.dart (working copy)
@@ -1086,9 +1086,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]) {};
}
@@ -1320,7 +1320,7 @@
}
Element defineElement(Node node, Element element,
- [bool doAddToScope = true]) {
+ {bool doAddToScope: true}) {
compiler.ensure(element !== null);
mapping[node] = element;
if (doAddToScope) {
@@ -1898,11 +1898,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;
}
« no previous file with comments | « lib/compiler/implementation/resolved_visitor.dart ('k') | lib/compiler/implementation/scanner/keyword.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698