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

Unified Diff: dart/site/try/poi/poi.dart

Issue 621503008: Clean up imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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
« no previous file with comments | « dart/site/try/poi/Makefile ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/poi/poi.dart
diff --git a/dart/site/try/poi/poi.dart b/dart/site/try/poi/poi.dart
index bf77cb830b6c9520f434a8228173653791fe6c37..d7ae82d33a22666a1c4d8b90cd22cca37a06fd53 100644
--- a/dart/site/try/poi/poi.dart
+++ b/dart/site/try/poi/poi.dart
@@ -8,14 +8,6 @@ import 'dart:async' show
Completer,
Future;
-import 'dart:io' show
- File,
- HttpClient,
- HttpClientRequest,
- HttpClientResponse,
- Platform,
- stdout;
-
import 'dart:io' as io;
import 'dart:convert' show
@@ -204,7 +196,7 @@ api.CompilerInputProvider simulateMutation(
cachedFileName = '$cachedFileName.$count.dart';
}
printVerbose('Not using cached version of $cachedFileName');
- cache = new File(cachedFileName).readAsBytes().then((data) {
+ cache = new io.File(cachedFileName).readAsBytes().then((data) {
printVerbose('Read file $cachedFileName: ${UTF8.decode(data)}');
return data;
});
@@ -222,9 +214,9 @@ api.CompilerInputProvider simulateMutation(
Future<String> prompt(message) {
if (stdin is StdinIterator) {
- stdout.write(message);
+ io.stdout.write(message);
}
- return stdout.flush().then((_) {
+ return io.stdout.flush().then((_) {
stdin.moveNext();
return stdin.current;
});
@@ -239,10 +231,10 @@ Future queryDartMind(String prefix, String info) {
'&arg0=$encodedArg0';
Uri uri = Uri.parse(mindQuery);
- HttpClient client = new HttpClient();
- return client.getUrl(uri).then((HttpClientRequest request) {
+ io.HttpClient client = new io.HttpClient();
+ return client.getUrl(uri).then((io.HttpClientRequest request) {
return request.close();
- }).then((HttpClientResponse response) {
+ }).then((io.HttpClientResponse response) {
Completer<String> completer = new Completer<String>();
response.transform(UTF8.decoder).listen((contents) {
completer.complete(contents);
@@ -363,7 +355,7 @@ Future<Element> runPoi(
api.DiagnosticHandler handler) {
Uri libraryRoot = Uri.base.resolve('sdk/');
Uri packageRoot = Uri.base.resolveUri(
- new Uri.file('${Platform.packageRoot}/'));
+ new Uri.file('${io.Platform.packageRoot}/'));
var options = [
'--analyze-main',
« no previous file with comments | « dart/site/try/poi/Makefile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698