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

Unified Diff: pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart
index 01aed83b86917ad02dd813cedbf99f85cde70a60..39b4bb189ac25436f1dd9ed7eef36e452b58d9db 100644
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart
@@ -11,6 +11,7 @@ import 'tree_ir_nodes.dart';
class Block {
Label label;
int index;
+
/// Mixed list of [Statement] and [Block].
/// A [Block] represents a synthetic goto statement.
final List statements = [];
@@ -51,6 +52,7 @@ class BlockCollector extends StatementVisitor {
void _addStatement(Statement statement) {
blocks.last.statements.add(statement);
}
+
void _addGotoStatement(Block target) {
blocks.last.statements.add(target);
}
@@ -230,8 +232,8 @@ class TreeTracer extends TracerUtil with StatementVisitor {
printStatement(null, 'Entry ($params)');
}
if (block.label != null) {
- printStatement(null,
- "Label ${block.name}, useCount=${block.label.useCount}");
+ printStatement(
+ null, "Label ${block.name}, useCount=${block.label.useCount}");
}
if (block.catcher != null) {
printStatement(null, 'Catch exceptions at ${block.catcher.name}');
@@ -283,8 +285,8 @@ class TreeTracer extends TracerUtil with StatementVisitor {
}
visitContinue(Continue node) {
- printStatement(null,
- "continue ${collector.continueTargets[node.target].name}");
+ printStatement(
+ null, "continue ${collector.continueTargets[node.target].name}");
}
visitIf(If node) {
@@ -305,7 +307,7 @@ class TreeTracer extends TracerUtil with StatementVisitor {
printStatement(null, "while ${expr(node.condition)}");
printStatement(null, "do $bodyTarget");
printStatement(null, "updates ($updates)");
- printStatement(null, "then $nextTarget" );
+ printStatement(null, "then $nextTarget");
}
visitTry(Try node) {
@@ -424,9 +426,9 @@ class SubexpressionVisitor extends ExpressionVisitor<String> {
static bool usesInfixNotation(Expression node) {
return node is Conditional ||
- node is LogicalOperator ||
- node is Assign ||
- node is SetField;
+ node is LogicalOperator ||
+ node is Assign ||
+ node is SetField;
}
String visitConditional(Conditional node) {
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698