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

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

Issue 876963002: Fix build, work around broken --enable-async flag (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | « no previous file | no next file » | 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 "build number could not be determined"), 77 "build number could not be determined"),
78 showPackageWarnings: 78 showPackageWarnings:
79 hasOption(options, '--show-package-warnings'), 79 hasOption(options, '--show-package-warnings'),
80 useContentSecurityPolicy: hasOption(options, '--csp'), 80 useContentSecurityPolicy: hasOption(options, '--csp'),
81 hasIncrementalSupport: 81 hasIncrementalSupport:
82 forceIncrementalSupport || 82 forceIncrementalSupport ||
83 hasOption(options, '--incremental-support'), 83 hasOption(options, '--incremental-support'),
84 suppressWarnings: hasOption(options, '--suppress-warnings'), 84 suppressWarnings: hasOption(options, '--suppress-warnings'),
85 enableExperimentalMirrors: 85 enableExperimentalMirrors:
86 hasOption(options, '--enable-experimental-mirrors'), 86 hasOption(options, '--enable-experimental-mirrors'),
87 enableAsyncAwait: hasOption(options, '--enable-async'), 87 // TODO: remove --enable-async flag.
88 enableAsyncAwait: hasOption(options, '--analyze-only'),
88 enableEnums: hasOption(options, '--enable-enum'), 89 enableEnums: hasOption(options, '--enable-enum'),
89 generateCodeWithCompileTimeErrors: 90 generateCodeWithCompileTimeErrors:
90 hasOption(options, '--generate-code-with-compile-time-errors'), 91 hasOption(options, '--generate-code-with-compile-time-errors'),
91 allowNativeExtensions: 92 allowNativeExtensions:
92 hasOption(options, '--allow-native-extensions')) { 93 hasOption(options, '--allow-native-extensions')) {
93 tasks.addAll([ 94 tasks.addAll([
94 userHandlerTask = new leg.GenericTask('Diagnostic handler', this), 95 userHandlerTask = new leg.GenericTask('Diagnostic handler', this),
95 userProviderTask = new leg.GenericTask('Input provider', this), 96 userProviderTask = new leg.GenericTask('Input provider', this),
96 ]); 97 ]);
97 if (libraryRoot == null) { 98 if (libraryRoot == null) {
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 print('$message: ${tryToString(exception)}'); 407 print('$message: ${tryToString(exception)}');
407 print(tryToString(stackTrace)); 408 print(tryToString(stackTrace));
408 } 409 }
409 410
410 fromEnvironment(String name) => environment[name]; 411 fromEnvironment(String name) => environment[name];
411 412
412 LibraryInfo lookupLibraryInfo(String libraryName) { 413 LibraryInfo lookupLibraryInfo(String libraryName) {
413 return library_info.LIBRARIES[libraryName]; 414 return library_info.LIBRARIES[libraryName];
414 } 415 }
415 } 416 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698