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

Unified Diff: tests/compiler/dart2js/sourcemaps/js_tracer.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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: tests/compiler/dart2js/sourcemaps/js_tracer.dart
diff --git a/tests/compiler/dart2js/sourcemaps/js_tracer.dart b/tests/compiler/dart2js/sourcemaps/js_tracer.dart
index 56d6f129beb7eef7921d13fd4d29a9bd325a82db..6faf88ebf988c832bd44e03300c8b25e9f3734bf 100644
--- a/tests/compiler/dart2js/sourcemaps/js_tracer.dart
+++ b/tests/compiler/dart2js/sourcemaps/js_tracer.dart
@@ -82,43 +82,29 @@ class StepTraceListener extends TraceListener
js.Switch switchNode = node;
text = ['switch(', switchNode.key, ') ...'];
break;
-
}
- createTraceStep(
- kind,
- node,
+ createTraceStep(kind, node,
offset: offset,
- sourceLocation: getSourceLocation(
- sourceInformation, sourcePositionKind),
+ sourceLocation:
+ getSourceLocation(sourceInformation, sourcePositionKind),
text: text);
}
- void createTraceStep(
- StepKind kind,
- js.Node node,
- {Offset offset,
- List text,
- String note,
- SourceLocation sourceLocation}) {
+ void createTraceStep(StepKind kind, js.Node node,
+ {Offset offset, List text, String note, SourceLocation sourceLocation}) {
int id = steppableMap.length;
if (text == null) {
text = [node];
}
- TraceStep step = new TraceStep(
- kind,
- id,
- node,
- offset,
- text,
- sourceLocation);
+ TraceStep step =
+ new TraceStep(kind, id, node, offset, text, sourceLocation);
graph.addStep(step);
steppableMap[node] = step;
}
-
void pushBranch(BranchKind kind, [value]) {
var branch;
switch (kind) {
« no previous file with comments | « tests/compiler/dart2js/sourcemaps/html_parts.dart ('k') | tests/compiler/dart2js/sourcemaps/output_structure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698