OLD | NEW |
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 { | 14 enum DiffKind { UNMATCHED, MATCHING, IDENTICAL, } |
15 UNMATCHED, | |
16 MATCHING, | |
17 IDENTICAL, | |
18 } | |
19 | 15 |
20 /// Id for an output column. | 16 /// Id for an output column. |
21 class DiffColumn { | 17 class DiffColumn { |
22 final String type; | 18 final String type; |
23 final int index; | 19 final int index; |
24 | 20 |
25 const DiffColumn(this.type, [this.index]); | 21 const DiffColumn(this.type, [this.index]); |
26 | 22 |
27 int get hashCode => type.hashCode * 19 + index.hashCode * 23; | 23 int get hashCode => type.hashCode * 19 + index.hashCode * 23; |
28 | 24 |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 annotationType: AnnotationType.values[json['annotationType']], | 755 annotationType: AnnotationType.values[json['annotationType']], |
760 codeLocations: json['codeLocations'] | 756 codeLocations: json['codeLocations'] |
761 .map((j) => CodeLocation.fromJson(j, strategy)) | 757 .map((j) => CodeLocation.fromJson(j, strategy)) |
762 .toList(), | 758 .toList(), |
763 codeSources: | 759 codeSources: |
764 json['codeSources'].map((j) => CodeSource.fromJson(j)).toList(), | 760 json['codeSources'].map((j) => CodeSource.fromJson(j)).toList(), |
765 stepInfo: json['stepInfo'], | 761 stepInfo: json['stepInfo'], |
766 sourceMappingIndex: json['sourceMappingIndex']); | 762 sourceMappingIndex: json['sourceMappingIndex']); |
767 } | 763 } |
768 } | 764 } |
OLD | NEW |