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

Unified Diff: lib/compiler/implementation/ssa/nodes.dart

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. 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/tracer.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
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index af2d006a4e2c534a871ce234989b0a3f0411be8e..d134af27303b0a098fe363700f7e31aacbb152ac 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -1765,7 +1765,7 @@ class HSwitch extends HControlFlow {
* the expression. If the switch had no default case, this is the
* following join-block.
*/
- HBasicBlock get defaultTarget => block.successors.last();
+ HBasicBlock get defaultTarget => block.successors.last;
accept(HVisitor visitor) => visitor.visitSwitch(this);
@@ -2015,7 +2015,7 @@ class HTry extends HControlFlow {
HTry() : super(const <HInstruction>[]);
toString() => 'try';
accept(HVisitor visitor) => visitor.visitTry(this);
- HBasicBlock get joinBlock => this.block.successors.last();
+ HBasicBlock get joinBlock => this.block.successors.last;
}
class HIf extends HConditionalBranch {
@@ -2806,7 +2806,7 @@ class HStatementSequenceInformation implements HStatementInformation {
HStatementSequenceInformation(this.statements);
HBasicBlock get start => statements[0].start;
- HBasicBlock get end => statements.last().end;
+ HBasicBlock get end => statements.last.end;
bool accept(HStatementInformationVisitor visitor) =>
visitor.visitSequenceInfo(this);
@@ -2975,7 +2975,7 @@ class HSwitchBlockInformation implements HStatementInformation {
HBasicBlock get end {
// We don't create a switch block if there are no cases.
assert(!statements.isEmpty);
- return statements.last().end;
+ return statements.last.end;
}
bool accept(HStatementInformationVisitor visitor) =>
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | lib/compiler/implementation/ssa/tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698