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

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

Issue 1225273002: Remove flag for enabling null-aware operators. They are now on by default. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/dart2js.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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 final bool suppressWarnings; 784 final bool suppressWarnings;
785 final bool fatalWarnings; 785 final bool fatalWarnings;
786 786
787 /// If `true`, some values are cached for reuse in incremental compilation. 787 /// If `true`, some values are cached for reuse in incremental compilation.
788 /// Incremental compilation is basically calling [run] more than once. 788 /// Incremental compilation is basically calling [run] more than once.
789 final bool hasIncrementalSupport; 789 final bool hasIncrementalSupport;
790 790
791 /// If `true` native extension syntax is supported by the frontend. 791 /// If `true` native extension syntax is supported by the frontend.
792 final bool allowNativeExtensions; 792 final bool allowNativeExtensions;
793 793
794 /// Temporary flag to enable `?.`, `??`, and `??=` until it becomes part of
795 /// the spec.
796 final bool enableNullAwareOperators;
797
798 /// Output provider from user of Compiler API. 794 /// Output provider from user of Compiler API.
799 api.CompilerOutputProvider userOutputProvider; 795 api.CompilerOutputProvider userOutputProvider;
800 796
801 /// Generate output even when there are compile-time errors. 797 /// Generate output even when there are compile-time errors.
802 final bool generateCodeWithCompileTimeErrors; 798 final bool generateCodeWithCompileTimeErrors;
803 799
804 /// The compiler is run from the build bot. 800 /// The compiler is run from the build bot.
805 final bool testMode; 801 final bool testMode;
806 802
807 bool disableInlining = false; 803 bool disableInlining = false;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 this.terseDiagnostics: false, 1052 this.terseDiagnostics: false,
1057 this.deferredMapUri: null, 1053 this.deferredMapUri: null,
1058 this.dumpInfo: false, 1054 this.dumpInfo: false,
1059 this.showPackageWarnings: false, 1055 this.showPackageWarnings: false,
1060 this.useContentSecurityPolicy: false, 1056 this.useContentSecurityPolicy: false,
1061 this.suppressWarnings: false, 1057 this.suppressWarnings: false,
1062 this.fatalWarnings: false, 1058 this.fatalWarnings: false,
1063 bool hasIncrementalSupport: false, 1059 bool hasIncrementalSupport: false,
1064 this.enableExperimentalMirrors: false, 1060 this.enableExperimentalMirrors: false,
1065 this.allowNativeExtensions: false, 1061 this.allowNativeExtensions: false,
1066 this.enableNullAwareOperators: false,
1067 this.generateCodeWithCompileTimeErrors: false, 1062 this.generateCodeWithCompileTimeErrors: false,
1068 this.testMode: false, 1063 this.testMode: false,
1069 api.CompilerOutputProvider outputProvider, 1064 api.CompilerOutputProvider outputProvider,
1070 List<String> strips: const []}) 1065 List<String> strips: const []})
1071 : this.disableTypeInferenceFlag = 1066 : this.disableTypeInferenceFlag =
1072 disableTypeInferenceFlag || !emitJavaScript, 1067 disableTypeInferenceFlag || !emitJavaScript,
1073 this.analyzeOnly = 1068 this.analyzeOnly =
1074 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag, 1069 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag,
1075 this.analyzeSignaturesOnly = analyzeSignaturesOnly, 1070 this.analyzeSignaturesOnly = analyzeSignaturesOnly,
1076 this.analyzeAllFlag = analyzeAllFlag, 1071 this.analyzeAllFlag = analyzeAllFlag,
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2522 InterfaceType streamType([DartType elementType]) { 2517 InterfaceType streamType([DartType elementType]) {
2523 InterfaceType type = streamClass.computeType(compiler); 2518 InterfaceType type = streamClass.computeType(compiler);
2524 if (elementType == null) { 2519 if (elementType == null) {
2525 return streamClass.rawType; 2520 return streamClass.rawType;
2526 } 2521 }
2527 return type.createInstantiation([elementType]); 2522 return type.createInstantiation([elementType]);
2528 } 2523 }
2529 } 2524 }
2530 2525
2531 typedef void InternalErrorFunction(Spannable location, String message); 2526 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698