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

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
Index: lib/compiler/implementation/resolver.dart
===================================================================
--- lib/compiler/implementation/resolver.dart (revision 13496)
+++ lib/compiler/implementation/resolver.dart (working copy)
@@ -1008,9 +1008,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]) {};
}
@@ -1242,7 +1242,7 @@
}
Element defineElement(Node node, Element element,
- [bool doAddToScope = true]) {
+ {bool doAddToScope: true}) {
compiler.ensure(element !== null);
mapping[node] = element;
if (doAddToScope) {

Powered by Google App Engine
This is Rietveld 408576698