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

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

Issue 1388523002: dart2js: add support for configuration-specific imports. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments and add flag. Created 5 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
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 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:package_config/packages.dart'; 10 import 'package:package_config/packages.dart';
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 deferredMapUri: extractUriOption(options, '--deferred-map='), 101 deferredMapUri: extractUriOption(options, '--deferred-map='),
102 dumpInfo: hasOption(options, Flags.dumpInfo), 102 dumpInfo: hasOption(options, Flags.dumpInfo),
103 buildId: extractStringOption( 103 buildId: extractStringOption(
104 options, '--build-id=', 104 options, '--build-id=',
105 "build number could not be determined"), 105 "build number could not be determined"),
106 showPackageWarnings: 106 showPackageWarnings:
107 hasOption(options, Flags.showPackageWarnings), 107 hasOption(options, Flags.showPackageWarnings),
108 useContentSecurityPolicy: 108 useContentSecurityPolicy:
109 hasOption(options, Flags.useContentSecurityPolicy), 109 hasOption(options, Flags.useContentSecurityPolicy),
110 useStartupEmitter: hasOption(options, Flags.fastStartup), 110 useStartupEmitter: hasOption(options, Flags.fastStartup),
111 enableConditionalDirectives:
112 hasOption(options, Flags.conditionalDirectives),
111 hasIncrementalSupport: 113 hasIncrementalSupport:
112 forceIncrementalSupport || 114 forceIncrementalSupport ||
113 hasOption(options, Flags.incrementalSupport), 115 hasOption(options, Flags.incrementalSupport),
114 suppressWarnings: hasOption(options, Flags.suppressWarnings), 116 suppressWarnings: hasOption(options, Flags.suppressWarnings),
115 fatalWarnings: hasOption(options, Flags.fatalWarnings), 117 fatalWarnings: hasOption(options, Flags.fatalWarnings),
116 enableExperimentalMirrors: 118 enableExperimentalMirrors:
117 hasOption(options, Flags.enableExperimentalMirrors), 119 hasOption(options, Flags.enableExperimentalMirrors),
118 enableAssertMessage: 120 enableAssertMessage:
119 hasOption(options, Flags.enableAssertMessage), 121 hasOption(options, Flags.enableAssertMessage),
120 generateCodeWithCompileTimeErrors: 122 generateCodeWithCompileTimeErrors:
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 print('$message: ${tryToString(exception)}'); 546 print('$message: ${tryToString(exception)}');
545 print(tryToString(stackTrace)); 547 print(tryToString(stackTrace));
546 } 548 }
547 549
548 fromEnvironment(String name) => environment[name]; 550 fromEnvironment(String name) => environment[name];
549 551
550 LibraryInfo lookupLibraryInfo(String libraryName) { 552 LibraryInfo lookupLibraryInfo(String libraryName) {
551 return library_info.LIBRARIES[libraryName]; 553 return library_info.LIBRARIES[libraryName];
552 } 554 }
553 } 555 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/commandline_options.dart » ('j') | pkg/compiler/lib/src/parser/class_element_parser.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698