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

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

Issue 2239193002: Rerun formatter (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 dart2js.src.options; 5 library dart2js.src.options;
6 6
7 import '../compiler.dart' show PackagesDiscoveryProvider; 7 import '../compiler.dart' show PackagesDiscoveryProvider;
8 import 'commandline_options.dart' show Flags; 8 import 'commandline_options.dart' show Flags;
9 9
10 /// Options used for parsing. 10 /// Options used for parsing.
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 if (option == flag) { 694 if (option == flag) {
695 return const <String>[]; 695 return const <String>[];
696 } 696 }
697 if (option.startsWith(flag)) { 697 if (option.startsWith(flag)) {
698 return option.substring(prefix.length).split(','); 698 return option.substring(prefix.length).split(',');
699 } 699 }
700 } 700 }
701 return null; 701 return null;
702 } 702 }
703 703
704 Uri _resolvePlatformConfig(Uri libraryRoot, String platformConfigPath, 704 Uri _resolvePlatformConfig(
705 Iterable<String> categories) { 705 Uri libraryRoot, String platformConfigPath, Iterable<String> categories) {
706 if (platformConfigPath != null) { 706 if (platformConfigPath != null) {
707 return libraryRoot.resolve(platformConfigPath); 707 return libraryRoot.resolve(platformConfigPath);
708 } else { 708 } else {
709 if (categories.length == 0) { 709 if (categories.length == 0) {
710 return libraryRoot.resolve(_clientPlatform); 710 return libraryRoot.resolve(_clientPlatform);
711 } 711 }
712 assert(categories.length <= 2); 712 assert(categories.length <= 2);
713 if (categories.contains("Client")) { 713 if (categories.contains("Client")) {
714 if (categories.contains("Server")) { 714 if (categories.contains("Server")) {
715 return libraryRoot.resolve(_sharedPlatform); 715 return libraryRoot.resolve(_sharedPlatform);
(...skipping 13 matching lines...) Expand all
729 } 729 }
730 730
731 /// Locations of the platform descriptor files relative to the library root. 731 /// Locations of the platform descriptor files relative to the library root.
732 const String _clientPlatform = "lib/dart_client.platform"; 732 const String _clientPlatform = "lib/dart_client.platform";
733 const String _serverPlatform = "lib/dart_server.platform"; 733 const String _serverPlatform = "lib/dart_server.platform";
734 const String _sharedPlatform = "lib/dart_shared.platform"; 734 const String _sharedPlatform = "lib/dart_shared.platform";
735 735
736 const String _UNDETERMINED_BUILD_ID = "build number could not be determined"; 736 const String _UNDETERMINED_BUILD_ID = "build number could not be determined";
737 const bool _forceIncrementalSupport = 737 const bool _forceIncrementalSupport =
738 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); 738 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT');
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/native.dart ('k') | pkg/compiler/lib/src/parser/element_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698