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

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

Issue 871863006: Enable enums by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove the field in Compiler. Created 5 years, 10 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 | Annotate | Revision Log
« 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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 736
737 /// Map containing information about the warnings and hints that have been 737 /// Map containing information about the warnings and hints that have been
738 /// suppressed for each library. 738 /// suppressed for each library.
739 Map<Uri, SuppressionInfo> suppressedWarnings = <Uri, SuppressionInfo>{}; 739 Map<Uri, SuppressionInfo> suppressedWarnings = <Uri, SuppressionInfo>{};
740 740
741 final bool suppressWarnings; 741 final bool suppressWarnings;
742 742
743 /// `true` if async/await features are supported. 743 /// `true` if async/await features are supported.
744 final bool enableAsyncAwait; 744 final bool enableAsyncAwait;
745 745
746 /// `true` if enum declarations are supported.
747 final bool enableEnums;
748
749 /// If `true`, some values are cached for reuse in incremental compilation. 746 /// If `true`, some values are cached for reuse in incremental compilation.
750 /// Incremental compilation is basically calling [run] more than once. 747 /// Incremental compilation is basically calling [run] more than once.
751 final bool hasIncrementalSupport; 748 final bool hasIncrementalSupport;
752 749
753 /// If `true` native extension syntax is supported by the frontend. 750 /// If `true` native extension syntax is supported by the frontend.
754 final bool allowNativeExtensions; 751 final bool allowNativeExtensions;
755 752
756 /// Output provider from user of Compiler API. 753 /// Output provider from user of Compiler API.
757 api.CompilerOutputProvider userOutputProvider; 754 api.CompilerOutputProvider userOutputProvider;
758 755
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 this.buildId: UNDETERMINED_BUILD_ID, 998 this.buildId: UNDETERMINED_BUILD_ID,
1002 this.terseDiagnostics: false, 999 this.terseDiagnostics: false,
1003 this.deferredMapUri: null, 1000 this.deferredMapUri: null,
1004 this.dumpInfo: false, 1001 this.dumpInfo: false,
1005 this.showPackageWarnings: false, 1002 this.showPackageWarnings: false,
1006 this.useContentSecurityPolicy: false, 1003 this.useContentSecurityPolicy: false,
1007 this.suppressWarnings: false, 1004 this.suppressWarnings: false,
1008 bool hasIncrementalSupport: false, 1005 bool hasIncrementalSupport: false,
1009 this.enableExperimentalMirrors: false, 1006 this.enableExperimentalMirrors: false,
1010 this.enableAsyncAwait: false, 1007 this.enableAsyncAwait: false,
1011 this.enableEnums: false,
1012 this.allowNativeExtensions: false, 1008 this.allowNativeExtensions: false,
1013 this.generateCodeWithCompileTimeErrors: false, 1009 this.generateCodeWithCompileTimeErrors: false,
1014 api.CompilerOutputProvider outputProvider, 1010 api.CompilerOutputProvider outputProvider,
1015 List<String> strips: const []}) 1011 List<String> strips: const []})
1016 : this.disableTypeInferenceFlag = 1012 : this.disableTypeInferenceFlag =
1017 disableTypeInferenceFlag || !emitJavaScript, 1013 disableTypeInferenceFlag || !emitJavaScript,
1018 this.analyzeOnly = 1014 this.analyzeOnly =
1019 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag, 1015 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag,
1020 this.analyzeSignaturesOnly = analyzeSignaturesOnly, 1016 this.analyzeSignaturesOnly = analyzeSignaturesOnly,
1021 this.analyzeAllFlag = analyzeAllFlag, 1017 this.analyzeAllFlag = analyzeAllFlag,
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 InterfaceType get nullType => nullClass.computeType(compiler); 2386 InterfaceType get nullType => nullClass.computeType(compiler);
2391 2387
2392 @override 2388 @override
2393 InterfaceType get numType => numClass.computeType(compiler); 2389 InterfaceType get numType => numClass.computeType(compiler);
2394 2390
2395 @override 2391 @override
2396 InterfaceType get stringType => stringClass.computeType(compiler); 2392 InterfaceType get stringType => stringClass.computeType(compiler);
2397 } 2393 }
2398 2394
2399 typedef void InternalErrorFunction(Spannable location, String message); 2395 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