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

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

Issue 263103003: Remove warnings from dart2js test-suite. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove debug code. Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/compiler/dart2js/members_test.dart ('k') | tests/compiler/dart2js/metadata_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 dart2js.test.memory_source_file_helper; 5 library dart2js.test.memory_source_file_helper;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 import 'dart:io';
9 export 'dart:io' show Platform; 8 export 'dart:io' show Platform;
10 9
11 export '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart' 10 export '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart'
12 show Compiler; 11 show Compiler;
13 12
14 export '../../../sdk/lib/_internal/compiler/implementation/filenames.dart' 13 export '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'
15 show currentDirectory; 14 show currentDirectory;
16 15
17 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart' 16 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'
18 show StringSourceFile; 17 show StringSourceFile;
(...skipping 17 matching lines...) Expand all
36 if (source == null) { 35 if (source == null) {
37 return new Future.error(new Exception('No such file $resourceUri')); 36 return new Future.error(new Exception('No such file $resourceUri'));
38 } 37 }
39 String resourceName = '$resourceUri'; 38 String resourceName = '$resourceUri';
40 this.sourceFiles[resourceName] = new StringSourceFile(resourceName, source); 39 this.sourceFiles[resourceName] = new StringSourceFile(resourceName, source);
41 return new Future.value(source); 40 return new Future.value(source);
42 } 41 }
43 42
44 Future<String> call(Uri resourceUri) => readStringFromUri(resourceUri); 43 Future<String> call(Uri resourceUri) => readStringFromUri(resourceUri);
45 } 44 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/members_test.dart ('k') | tests/compiler/dart2js/metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698