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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_integrity.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/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
index efdc27f5adbaab71dad06b402d8266ed57afe825..cee7a1e3ba21c57e019e5ed364d7843b6b5dc1a5 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
@@ -27,7 +27,6 @@ enum ScopeType { InScope, InDefinition, NotInScope }
/// - Each reference object occurs only once in the IR (no sharing).
///
class CheckCpsIntegrity extends TrampolineRecursiveVisitor {
-
FunctionDefinition topLevelNode;
final Map<Definition, ScopeType> inScope = <Definition, ScopeType>{};
final List<Definition> definitions = [];
@@ -40,13 +39,16 @@ class CheckCpsIntegrity extends TrampolineRecursiveVisitor {
int i = 0;
for (Reference ref = def.firstRef; ref != null; ref = ref.next) {
if (ref.definition != def) {
- error('Reference to ${ref.definition} found in '
- 'reference chain for $def', def);
+ error(
+ 'Reference to ${ref.definition} found in '
+ 'reference chain for $def',
+ def);
}
if (ref == anchor) {
error('Cyclic reference chain for $def', def);
}
- if (i & ++i == 0) { // Move the anchor every 2^Nth step.
+ if (i & ++i == 0) {
+ // Move the anchor every 2^Nth step.
anchor = ref;
}
}
@@ -225,9 +227,9 @@ class CheckCpsIntegrity extends TrampolineRecursiveVisitor {
sexpr = '(Set DUMP_IR flag to enable SExpr dump)';
}
throw 'CPS integrity violation\n'
- 'After \'$previousPass\' on ${topLevelNode.element}\n'
- '$message\n\n'
- '$sexpr\n';
+ 'After \'$previousPass\' on ${topLevelNode.element}\n'
+ '$message\n\n'
+ '$sexpr\n';
}
}
@@ -260,7 +262,7 @@ class ParentChecker extends DeepRecursiveVisitor {
_worklist.add(node);
if (node.parent != _parent) {
error('Parent pointer on $node is ${node.parent} but should be $_parent',
- node);
+ node);
}
}
@@ -268,7 +270,7 @@ class ParentChecker extends DeepRecursiveVisitor {
processReference(Reference node) {
if (node.parent != _parent) {
error('Parent pointer on $node is ${node.parent} but should be $_parent',
- node);
+ node);
}
}
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698