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

Side by Side Diff: tests/compiler/dart2js/source_map_validator_helper.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 import 'dart:io'; 5 import 'dart:io';
6 import 'dart:convert'; 6 import 'dart:convert';
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:path/path.dart' as path; 9 import 'package:path/path.dart' as path;
10 import 'package:expect/expect.dart'; 10 import 'package:expect/expect.dart';
11 import 'package:source_maps/source_maps.dart' hide SourceFile; 11 import 'package:source_maps/source_maps.dart' hide SourceFile;
12 import 'package:compiler/implementation/apiimpl.dart'; 12 import 'package:compiler/src/apiimpl.dart';
13 import 'package:compiler/implementation/elements/elements.dart' 13 import 'package:compiler/src/elements/elements.dart'
14 show LibraryElement, 14 show LibraryElement,
15 CompilationUnitElement, 15 CompilationUnitElement,
16 ClassElement, 16 ClassElement,
17 AstElement; 17 AstElement;
18 import 'package:compiler/implementation/source_file.dart' show SourceFile; 18 import 'package:compiler/src/source_file.dart' show SourceFile;
19 19
20 validateSourceMap(Uri targetUri, [Compiler compiler]) { 20 validateSourceMap(Uri targetUri, [Compiler compiler]) {
21 Uri mapUri = getMapUri(targetUri); 21 Uri mapUri = getMapUri(targetUri);
22 SingleMapping sourceMap = getSourceMap(mapUri); 22 SingleMapping sourceMap = getSourceMap(mapUri);
23 checkFileReferences(targetUri, mapUri, sourceMap); 23 checkFileReferences(targetUri, mapUri, sourceMap);
24 checkIndexReferences(targetUri, mapUri, sourceMap); 24 checkIndexReferences(targetUri, mapUri, sourceMap);
25 checkRedundancy(sourceMap); 25 checkRedundancy(sourceMap);
26 if (compiler != null) { 26 if (compiler != null) {
27 checkNames(targetUri, mapUri, sourceMap, compiler); 27 checkNames(targetUri, mapUri, sourceMap, compiler);
28 } 28 }
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 final Position end; 231 final Position end;
232 232
233 Interval(this.begin, this.end); 233 Interval(this.begin, this.end);
234 234
235 bool contains(Position other) { 235 bool contains(Position other) {
236 return begin <= other && other <= end; 236 return begin <= other && other <= end;
237 } 237 }
238 238
239 String toString() => '$begin-$end'; 239 String toString() => '$begin-$end';
240 } 240 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart ('k') | tests/compiler/dart2js/source_mapping_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698