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

Side by Side Diff: tests/compiler/dart2js/sourcemaps/diff.dart

Issue 2557313002: dartfmt dart2js and unittests (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library sourcemap.diff; 5 library sourcemap.diff;
6 6
7 import 'package:compiler/src/io/source_file.dart'; 7 import 'package:compiler/src/io/source_file.dart';
8 8
9 import 'html_parts.dart'; 9 import 'html_parts.dart';
10 import 'output_structure.dart'; 10 import 'output_structure.dart';
11 import 'sourcemap_helper.dart'; 11 import 'sourcemap_helper.dart';
12 import 'sourcemap_html_helper.dart'; 12 import 'sourcemap_html_helper.dart';
13 13
14 enum DiffKind { UNMATCHED, MATCHING, IDENTICAL, } 14 enum DiffKind {
15 UNMATCHED,
16 MATCHING,
17 IDENTICAL,
18 }
15 19
16 /// Id for an output column. 20 /// Id for an output column.
17 class DiffColumn { 21 class DiffColumn {
18 final String type; 22 final String type;
19 final int index; 23 final int index;
20 24
21 const DiffColumn(this.type, [this.index]); 25 const DiffColumn(this.type, [this.index]);
22 26
23 int get hashCode => type.hashCode * 19 + index.hashCode * 23; 27 int get hashCode => type.hashCode * 19 + index.hashCode * 23;
24 28
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 annotationType: AnnotationType.values[json['annotationType']], 759 annotationType: AnnotationType.values[json['annotationType']],
756 codeLocations: json['codeLocations'] 760 codeLocations: json['codeLocations']
757 .map((j) => CodeLocation.fromJson(j, strategy)) 761 .map((j) => CodeLocation.fromJson(j, strategy))
758 .toList(), 762 .toList(),
759 codeSources: 763 codeSources:
760 json['codeSources'].map((j) => CodeSource.fromJson(j)).toList(), 764 json['codeSources'].map((j) => CodeSource.fromJson(j)).toList(),
761 stepInfo: json['stepInfo'], 765 stepInfo: json['stepInfo'],
762 sourceMappingIndex: json['sourceMappingIndex']); 766 sourceMappingIndex: json['sourceMappingIndex']);
763 } 767 }
764 } 768 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.dart ('k') | tests/compiler/dart2js/sourcemaps/html_parts.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698