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

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: Update and fix status files. Implement missing functions. Created 5 years 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/commandline_options.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 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
109 sourceMapUri: extractUriOption(options, '--source-map='), 109 sourceMapUri: extractUriOption(options, '--source-map='),
110 outputUri: extractUriOption(options, '--out='), 110 outputUri: extractUriOption(options, '--out='),
111 deferredMapUri: extractUriOption(options, '--deferred-map='), 111 deferredMapUri: extractUriOption(options, '--deferred-map='),
112 dumpInfo: hasOption(options, Flags.dumpInfo), 112 dumpInfo: hasOption(options, Flags.dumpInfo),
113 buildId: extractStringOption( 113 buildId: extractStringOption(
114 options, '--build-id=', 114 options, '--build-id=',
115 "build number could not be determined"), 115 "build number could not be determined"),
116 useContentSecurityPolicy: 116 useContentSecurityPolicy:
117 hasOption(options, Flags.useContentSecurityPolicy), 117 hasOption(options, Flags.useContentSecurityPolicy),
118 useStartupEmitter: hasOption(options, Flags.fastStartup), 118 useStartupEmitter: hasOption(options, Flags.fastStartup),
119 enableConditionalDirectives:
120 hasOption(options, Flags.conditionalDirectives),
119 hasIncrementalSupport: 121 hasIncrementalSupport:
120 forceIncrementalSupport || 122 forceIncrementalSupport ||
121 hasOption(options, Flags.incrementalSupport), 123 hasOption(options, Flags.incrementalSupport),
122 diagnosticOptions: new DiagnosticOptions( 124 diagnosticOptions: new DiagnosticOptions(
123 suppressWarnings: hasOption(options, Flags.suppressWarnings), 125 suppressWarnings: hasOption(options, Flags.suppressWarnings),
124 fatalWarnings: hasOption(options, Flags.fatalWarnings), 126 fatalWarnings: hasOption(options, Flags.fatalWarnings),
125 suppressHints: hasOption(options, Flags.suppressHints), 127 suppressHints: hasOption(options, Flags.suppressHints),
126 terseDiagnostics: hasOption(options, Flags.terse), 128 terseDiagnostics: hasOption(options, Flags.terse),
127 showPackageWarnings: 129 showPackageWarnings:
128 hasOption(options, Flags.showPackageWarnings)), 130 hasOption(options, Flags.showPackageWarnings)),
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 Uri lookupLibraryUri(String libraryName) { 565 Uri lookupLibraryUri(String libraryName) {
564 assert(invariant(NO_LOCATION_SPANNABLE, 566 assert(invariant(NO_LOCATION_SPANNABLE,
565 sdkLibraries != null, message: "setupSdk() has not been run")); 567 sdkLibraries != null, message: "setupSdk() has not been run"));
566 return sdkLibraries[libraryName]; 568 return sdkLibraries[libraryName];
567 } 569 }
568 570
569 Uri resolvePatchUri(String libraryName) { 571 Uri resolvePatchUri(String libraryName) {
570 return backend.resolvePatchUri(libraryName, platformConfigUri); 572 return backend.resolvePatchUri(libraryName, platformConfigUri);
571 } 573 }
572 } 574 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/commandline_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698