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

Side by Side Diff: pkg/compiler/lib/src/apiimpl.dart

Issue 717103004: Revert "Emit warning on import of dart:mirrors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | « no previous file | pkg/compiler/lib/src/compiler.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) 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 buildId: extractStringOption( 73 buildId: extractStringOption(
74 options, '--build-id=', 74 options, '--build-id=',
75 "build number could not be determined"), 75 "build number could not be determined"),
76 showPackageWarnings: 76 showPackageWarnings:
77 hasOption(options, '--show-package-warnings'), 77 hasOption(options, '--show-package-warnings'),
78 useContentSecurityPolicy: hasOption(options, '--csp'), 78 useContentSecurityPolicy: hasOption(options, '--csp'),
79 hasIncrementalSupport: 79 hasIncrementalSupport:
80 forceIncrementalSupport || 80 forceIncrementalSupport ||
81 hasOption(options, '--incremental-support'), 81 hasOption(options, '--incremental-support'),
82 suppressWarnings: hasOption(options, '--suppress-warnings'), 82 suppressWarnings: hasOption(options, '--suppress-warnings'),
83 enableExperimentalMirrors:
84 hasOption(options, '--enable-experimental-mirrors'),
85 enableAsyncAwait: hasOption(options, '--enable-async'), 83 enableAsyncAwait: hasOption(options, '--enable-async'),
86 enableEnums: hasOption(options, '--enable-enum')) { 84 enableEnums: hasOption(options, '--enable-enum')) {
87 tasks.addAll([ 85 tasks.addAll([
88 userHandlerTask = new leg.GenericTask('Diagnostic handler', this), 86 userHandlerTask = new leg.GenericTask('Diagnostic handler', this),
89 userProviderTask = new leg.GenericTask('Input provider', this), 87 userProviderTask = new leg.GenericTask('Input provider', this),
90 ]); 88 ]);
91 if (!libraryRoot.path.endsWith("/")) { 89 if (!libraryRoot.path.endsWith("/")) {
92 throw new ArgumentError("libraryRoot must end with a /"); 90 throw new ArgumentError("libraryRoot must end with a /");
93 } 91 }
94 if (packageRoot != null && !packageRoot.path.endsWith("/")) { 92 if (packageRoot != null && !packageRoot.path.endsWith("/")) {
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 } 357 }
360 358
361 void diagnoseCrashInUserCode(String message, exception, stackTrace) { 359 void diagnoseCrashInUserCode(String message, exception, stackTrace) {
362 hasCrashed = true; 360 hasCrashed = true;
363 print('$message: ${tryToString(exception)}'); 361 print('$message: ${tryToString(exception)}');
364 print(tryToString(stackTrace)); 362 print(tryToString(stackTrace));
365 } 363 }
366 364
367 fromEnvironment(String name) => environment[name]; 365 fromEnvironment(String name) => environment[name];
368 } 366 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698