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

Unified Diff: lib/compiler/implementation/ssa/nodes.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/ssa/codegen.dart ('k') | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/nodes.dart
===================================================================
--- lib/compiler/implementation/ssa/nodes.dart (revision 13683)
+++ lib/compiler/implementation/ssa/nodes.dart (working copy)
@@ -1406,7 +1406,7 @@
class HInvokeSuper extends HInvokeStatic {
final bool isSetter;
- HInvokeSuper(inputs, [this.isSetter = false]) : super(inputs);
+ HInvokeSuper(inputs, {this.isSetter: false}) : super(inputs);
toString() => 'invoke super: ${element.name}';
accept(HVisitor visitor) => visitor.visitInvokeSuper(this);
@@ -1504,7 +1504,7 @@
class HFieldGet extends HFieldAccess {
final bool isAssignable;
- HFieldGet(Element element, HInstruction receiver, [bool isAssignable])
+ HFieldGet(Element element, HInstruction receiver, {bool isAssignable})
: this.isAssignable = (isAssignable !== null)
? isAssignable
: element.isAssignable(),
@@ -2399,7 +2399,7 @@
class HThrow extends HControlFlow {
final bool isRethrow;
- HThrow(value, [this.isRethrow = false]) : super(<HInstruction>[value]);
+ HThrow(value, {this.isRethrow: false}) : super(<HInstruction>[value]);
toString() => 'throw';
accept(HVisitor visitor) => visitor.visitThrow(this);
}
@@ -2821,12 +2821,12 @@
HLabeledBlockInformation(this.body,
List<LabelElement> labels,
- [this.isContinue = false]) :
+ {this.isContinue: false}) :
this.labels = labels, this.target = labels[0].target;
HLabeledBlockInformation.implicit(this.body,
this.target,
- [this.isContinue = false])
+ {this.isContinue: false})
: this.labels = const<LabelElement>[];
HBasicBlock get start => body.start;
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698