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

Side by Side Diff: samples/total/src/Dartc.dart

Issue 9254026: Split dart:builtin into dart:builtin and dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment and add binaries. Created 8 years, 11 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 | « samples/markdown/markdown.dart ('k') | samples/total/src/TotalRunner.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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("total:dartc"); 5 #library("total:dartc");
6 6
7 #import('dart:io');
8
7 /** 9 /**
8 * A simple wrapper around dartc. 10 * A simple wrapper around dartc.
9 * TODO: automatically determine the exec path to dartc 11 * TODO: automatically determine the exec path to dartc
10 * TODO: prevent ANSI colors from being exposed to the user 12 * TODO: prevent ANSI colors from being exposed to the user
11 */ 13 */
12 class Dartc { 14 class Dartc {
13 final String DARTC_EXEC_PATH = '../../../out/Release_ia32/dartc'; 15 final String DARTC_EXEC_PATH = '../../../out/Release_ia32/dartc';
14 16
15 String scriptName; 17 String scriptName;
16 String work = null; 18 String work = null;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 compiler.stderr.dataHandler = () => _readAll(compiler.stderr, messages); 59 compiler.stderr.dataHandler = () => _readAll(compiler.stderr, messages);
58 } 60 }
59 } 61 }
60 62
61 void _readAll(InputStream input, StringBuffer output) { 63 void _readAll(InputStream input, StringBuffer output) {
62 while (input.available() != 0) { 64 while (input.available() != 0) {
63 output.add(new String.fromCharCodes(input.read())); 65 output.add(new String.fromCharCodes(input.read()));
64 } 66 }
65 } 67 }
66 68
OLDNEW
« no previous file with comments | « samples/markdown/markdown.dart ('k') | samples/total/src/TotalRunner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698