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

Side by Side Diff: dart/lib/compiler/implementation/dart2js.dart

Issue 11092003: Implement part-of directive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update co19 status for dart2dart Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, 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('dart2js'); 5 #library('dart2js');
6 6
7 #import('dart:io'); 7 #import('dart:io');
8 #import('dart:uri'); 8 #import('dart:uri');
9 #import('dart:utf'); 9 #import('dart:utf');
10 10
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 } else if (kind === api.Diagnostic.INFO) { 243 } else if (kind === api.Diagnostic.INFO) {
244 color = colors.green; 244 color = colors.green;
245 } else { 245 } else {
246 throw 'Unknown kind: $kind (${kind.ordinal})'; 246 throw 'Unknown kind: $kind (${kind.ordinal})';
247 } 247 }
248 if (uri === null) { 248 if (uri === null) {
249 assert(fatal); 249 assert(fatal);
250 print(color(message)); 250 print(color(message));
251 } else if (fatal || showWarnings) { 251 } else if (fatal || showWarnings) {
252 SourceFile file = sourceFiles[uri.toString()]; 252 SourceFile file = sourceFiles[uri.toString()];
253 if (file == null) {
254 throw '$uri: file is null';
255 }
253 print(file.getLocationMessage(color(message), begin, end, true, color)); 256 print(file.getLocationMessage(color(message), begin, end, true, color));
254 } 257 }
255 if (fatal && throwOnError) { 258 if (fatal && throwOnError) {
256 isAborting = true; 259 isAborting = true;
257 throw new AbortLeg(message); 260 throw new AbortLeg(message);
258 } 261 }
259 } 262 }
260 263
261 Uri uri = cwd.resolve(arguments[0]); 264 Uri uri = cwd.resolve(arguments[0]);
262 if (packageRoot === null) { 265 if (packageRoot === null) {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 } catch (ignored) { 413 } catch (ignored) {
411 print('Internal error: error while printing exception'); 414 print('Internal error: error while printing exception');
412 } 415 }
413 try { 416 try {
414 print(trace); 417 print(trace);
415 } finally { 418 } finally {
416 exit(253); // 253 is recognized as a crash by our test scripts. 419 exit(253); // 253 is recognized as a crash by our test scripts.
417 } 420 }
418 } 421 }
419 } 422 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698