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/options.dart

Issue 2520293002: Enable syntax-only support for generic functions by default, take 2. (Closed)
Patch Set: Created 4 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
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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 terseDiagnostics: _hasOption(options, Flags.terse), 282 terseDiagnostics: _hasOption(options, Flags.terse),
283 suppressWarnings: _hasOption(options, Flags.suppressWarnings), 283 suppressWarnings: _hasOption(options, Flags.suppressWarnings),
284 suppressHints: _hasOption(options, Flags.suppressHints), 284 suppressHints: _hasOption(options, Flags.suppressHints),
285 shownPackageWarnings: 285 shownPackageWarnings:
286 _extractOptionalCsvOption(options, Flags.showPackageWarnings), 286 _extractOptionalCsvOption(options, Flags.showPackageWarnings),
287 disableInlining: _hasOption(options, Flags.disableInlining), 287 disableInlining: _hasOption(options, Flags.disableInlining),
288 disableTypeInference: _hasOption(options, Flags.disableTypeInference), 288 disableTypeInference: _hasOption(options, Flags.disableTypeInference),
289 dumpInfo: _hasOption(options, Flags.dumpInfo), 289 dumpInfo: _hasOption(options, Flags.dumpInfo),
290 enableAssertMessage: _hasOption(options, Flags.enableAssertMessage), 290 enableAssertMessage: _hasOption(options, Flags.enableAssertMessage),
291 enableGenericMethodSyntax: 291 enableGenericMethodSyntax:
292 _hasOption(options, Flags.genericMethodSyntax), 292 true, // No check for `Flags.genericMethodSyntax`: always enabled.
293 enableInitializingFormalAccess: 293 enableInitializingFormalAccess:
294 _hasOption(options, Flags.initializingFormalAccess), 294 _hasOption(options, Flags.initializingFormalAccess),
295 enableExperimentalMirrors: 295 enableExperimentalMirrors:
296 _hasOption(options, Flags.enableExperimentalMirrors), 296 _hasOption(options, Flags.enableExperimentalMirrors),
297 enableMinification: _hasOption(options, Flags.minify), 297 enableMinification: _hasOption(options, Flags.minify),
298 enableNativeLiveTypeAnalysis: 298 enableNativeLiveTypeAnalysis:
299 !_hasOption(options, Flags.disableNativeLiveTypeAnalysis), 299 !_hasOption(options, Flags.disableNativeLiveTypeAnalysis),
300 enableTypeAssertions: _hasOption(options, Flags.enableCheckedMode), 300 enableTypeAssertions: _hasOption(options, Flags.enableCheckedMode),
301 enableUserAssertions: _hasOption(options, Flags.enableCheckedMode), 301 enableUserAssertions: _hasOption(options, Flags.enableCheckedMode),
302 generateCodeWithCompileTimeErrors: 302 generateCodeWithCompileTimeErrors:
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 } 735 }
736 736
737 /// Locations of the platform descriptor files relative to the library root. 737 /// Locations of the platform descriptor files relative to the library root.
738 const String _clientPlatform = "lib/dart_client.platform"; 738 const String _clientPlatform = "lib/dart_client.platform";
739 const String _serverPlatform = "lib/dart_server.platform"; 739 const String _serverPlatform = "lib/dart_server.platform";
740 const String _sharedPlatform = "lib/dart_shared.platform"; 740 const String _sharedPlatform = "lib/dart_shared.platform";
741 741
742 const String _UNDETERMINED_BUILD_ID = "build number could not be determined"; 742 const String _UNDETERMINED_BUILD_ID = "build number could not be determined";
743 const bool _forceIncrementalSupport = 743 const bool _forceIncrementalSupport =
744 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); 744 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT');
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/messages.dart ('k') | tests/language/generic_functions_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698