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

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

Issue 1517013003: Revert "dart2js: add support for configuration-specific imports." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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),
121 hasIncrementalSupport: 119 hasIncrementalSupport:
122 forceIncrementalSupport || 120 forceIncrementalSupport ||
123 hasOption(options, Flags.incrementalSupport), 121 hasOption(options, Flags.incrementalSupport),
124 diagnosticOptions: new DiagnosticOptions( 122 diagnosticOptions: new DiagnosticOptions(
125 suppressWarnings: hasOption(options, Flags.suppressWarnings), 123 suppressWarnings: hasOption(options, Flags.suppressWarnings),
126 fatalWarnings: hasOption(options, Flags.fatalWarnings), 124 fatalWarnings: hasOption(options, Flags.fatalWarnings),
127 suppressHints: hasOption(options, Flags.suppressHints), 125 suppressHints: hasOption(options, Flags.suppressHints),
128 terseDiagnostics: hasOption(options, Flags.terse), 126 terseDiagnostics: hasOption(options, Flags.terse),
129 showPackageWarnings: 127 showPackageWarnings:
130 hasOption(options, Flags.showPackageWarnings)), 128 hasOption(options, Flags.showPackageWarnings)),
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 Uri lookupLibraryUri(String libraryName) { 563 Uri lookupLibraryUri(String libraryName) {
566 assert(invariant(NO_LOCATION_SPANNABLE, 564 assert(invariant(NO_LOCATION_SPANNABLE,
567 sdkLibraries != null, message: "setupSdk() has not been run")); 565 sdkLibraries != null, message: "setupSdk() has not been run"));
568 return sdkLibraries[libraryName]; 566 return sdkLibraries[libraryName];
569 } 567 }
570 568
571 Uri resolvePatchUri(String libraryName) { 569 Uri resolvePatchUri(String libraryName) {
572 return backend.resolvePatchUri(libraryName, platformConfigUri); 570 return backend.resolvePatchUri(libraryName, platformConfigUri);
573 } 571 }
574 } 572 }
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