OLD | NEW |
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 import 'dart:convert'; | 8 import 'dart:convert'; |
9 | 9 |
10 import 'package:package_config/packages.dart'; | 10 import 'package:package_config/packages.dart'; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 useContentSecurityPolicy: | 109 useContentSecurityPolicy: |
110 hasOption(options, Flags.useContentSecurityPolicy), | 110 hasOption(options, Flags.useContentSecurityPolicy), |
111 useStartupEmitter: hasOption(options, Flags.fastStartup), | 111 useStartupEmitter: hasOption(options, Flags.fastStartup), |
112 hasIncrementalSupport: | 112 hasIncrementalSupport: |
113 forceIncrementalSupport || | 113 forceIncrementalSupport || |
114 hasOption(options, Flags.incrementalSupport), | 114 hasOption(options, Flags.incrementalSupport), |
115 suppressWarnings: hasOption(options, Flags.suppressWarnings), | 115 suppressWarnings: hasOption(options, Flags.suppressWarnings), |
116 fatalWarnings: hasOption(options, Flags.fatalWarnings), | 116 fatalWarnings: hasOption(options, Flags.fatalWarnings), |
117 enableExperimentalMirrors: | 117 enableExperimentalMirrors: |
118 hasOption(options, Flags.enableExperimentalMirrors), | 118 hasOption(options, Flags.enableExperimentalMirrors), |
| 119 enableAssertMessage: |
| 120 hasOption(options, Flags.enableAssertMessage), |
119 generateCodeWithCompileTimeErrors: | 121 generateCodeWithCompileTimeErrors: |
120 hasOption(options, Flags.generateCodeWithCompileTimeErrors), | 122 hasOption(options, Flags.generateCodeWithCompileTimeErrors), |
121 testMode: hasOption(options, Flags.testMode), | 123 testMode: hasOption(options, Flags.testMode), |
122 allowNativeExtensions: | 124 allowNativeExtensions: |
123 hasOption(options, Flags.allowNativeExtensions)) { | 125 hasOption(options, Flags.allowNativeExtensions)) { |
124 tasks.addAll([ | 126 tasks.addAll([ |
125 userHandlerTask = new GenericTask('Diagnostic handler', this), | 127 userHandlerTask = new GenericTask('Diagnostic handler', this), |
126 userProviderTask = new GenericTask('Input provider', this), | 128 userProviderTask = new GenericTask('Input provider', this), |
127 userPackagesDiscoveryTask = | 129 userPackagesDiscoveryTask = |
128 new GenericTask('Package discovery', this), | 130 new GenericTask('Package discovery', this), |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 print('$message: ${tryToString(exception)}'); | 526 print('$message: ${tryToString(exception)}'); |
525 print(tryToString(stackTrace)); | 527 print(tryToString(stackTrace)); |
526 } | 528 } |
527 | 529 |
528 fromEnvironment(String name) => environment[name]; | 530 fromEnvironment(String name) => environment[name]; |
529 | 531 |
530 LibraryInfo lookupLibraryInfo(String libraryName) { | 532 LibraryInfo lookupLibraryInfo(String libraryName) { |
531 return library_info.LIBRARIES[libraryName]; | 533 return library_info.LIBRARIES[libraryName]; |
532 } | 534 } |
533 } | 535 } |
OLD | NEW |