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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/apiimpl.dart

Issue 588183002: Emit warning on import of dart:mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 leg_apiimpl; 5 library leg_apiimpl;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../compiler.dart' as api; 9 import '../compiler.dart' as api;
10 import 'dart2jslib.dart' as leg; 10 import 'dart2jslib.dart' as leg;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 outputUri: extractUriOption(options, '--out='), 65 outputUri: extractUriOption(options, '--out='),
66 terseDiagnostics: hasOption(options, '--terse'), 66 terseDiagnostics: hasOption(options, '--terse'),
67 dumpInfo: hasOption(options, '--dump-info'), 67 dumpInfo: hasOption(options, '--dump-info'),
68 buildId: extractStringOption( 68 buildId: extractStringOption(
69 options, '--build-id=', 69 options, '--build-id=',
70 "build number could not be determined"), 70 "build number could not be determined"),
71 showPackageWarnings: 71 showPackageWarnings:
72 hasOption(options, '--show-package-warnings'), 72 hasOption(options, '--show-package-warnings'),
73 useContentSecurityPolicy: hasOption(options, '--csp'), 73 useContentSecurityPolicy: hasOption(options, '--csp'),
74 hasIncrementalSupport: hasOption(options, '--incremental-support'), 74 hasIncrementalSupport: hasOption(options, '--incremental-support'),
75 suppressWarnings: hasOption(options, '--suppress-warnings')) { 75 suppressWarnings: hasOption(options, '--suppress-warnings'),
76 enableExperimentalMirrors:
77 hasOption(options, '--enable-experimental-mirrors')) {
76 tasks.addAll([ 78 tasks.addAll([
77 userHandlerTask = new leg.GenericTask('Diagnostic handler', this), 79 userHandlerTask = new leg.GenericTask('Diagnostic handler', this),
78 userProviderTask = new leg.GenericTask('Input provider', this), 80 userProviderTask = new leg.GenericTask('Input provider', this),
79 ]); 81 ]);
80 if (!libraryRoot.path.endsWith("/")) { 82 if (!libraryRoot.path.endsWith("/")) {
81 throw new ArgumentError("libraryRoot must end with a /"); 83 throw new ArgumentError("libraryRoot must end with a /");
82 } 84 }
83 if (packageRoot != null && !packageRoot.path.endsWith("/")) { 85 if (packageRoot != null && !packageRoot.path.endsWith("/")) {
84 throw new ArgumentError("packageRoot must end with a /"); 86 throw new ArgumentError("packageRoot must end with a /");
85 } 87 }
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 } 346 }
345 347
346 void diagnoseCrashInUserCode(String message, exception, stackTrace) { 348 void diagnoseCrashInUserCode(String message, exception, stackTrace) {
347 hasCrashed = true; 349 hasCrashed = true;
348 print('$message: ${tryToString(exception)}'); 350 print('$message: ${tryToString(exception)}');
349 print(tryToString(stackTrace)); 351 print(tryToString(stackTrace));
350 } 352 }
351 353
352 fromEnvironment(String name) => environment[name]; 354 fromEnvironment(String name) => environment[name];
353 } 355 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698