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

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

Issue 1077373003: Add fatal-warnings flag, that turns warnings into compilation errors (the name (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 742
743 /// `true` if the last diagnostic was filtered, in which case the 743 /// `true` if the last diagnostic was filtered, in which case the
744 /// accompanying info message should be filtered as well. 744 /// accompanying info message should be filtered as well.
745 bool lastDiagnosticWasFiltered = false; 745 bool lastDiagnosticWasFiltered = false;
746 746
747 /// Map containing information about the warnings and hints that have been 747 /// Map containing information about the warnings and hints that have been
748 /// suppressed for each library. 748 /// suppressed for each library.
749 Map<Uri, SuppressionInfo> suppressedWarnings = <Uri, SuppressionInfo>{}; 749 Map<Uri, SuppressionInfo> suppressedWarnings = <Uri, SuppressionInfo>{};
750 750
751 final bool suppressWarnings; 751 final bool suppressWarnings;
752 final bool fatalWarnings;
752 753
753 /// If `true`, some values are cached for reuse in incremental compilation. 754 /// If `true`, some values are cached for reuse in incremental compilation.
754 /// Incremental compilation is basically calling [run] more than once. 755 /// Incremental compilation is basically calling [run] more than once.
755 final bool hasIncrementalSupport; 756 final bool hasIncrementalSupport;
756 757
757 /// If `true` native extension syntax is supported by the frontend. 758 /// If `true` native extension syntax is supported by the frontend.
758 final bool allowNativeExtensions; 759 final bool allowNativeExtensions;
759 760
760 /// Output provider from user of Compiler API. 761 /// Output provider from user of Compiler API.
761 api.CompilerOutputProvider userOutputProvider; 762 api.CompilerOutputProvider userOutputProvider;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 this.verbose: false, 1003 this.verbose: false,
1003 this.sourceMapUri: null, 1004 this.sourceMapUri: null,
1004 this.outputUri: null, 1005 this.outputUri: null,
1005 this.buildId: UNDETERMINED_BUILD_ID, 1006 this.buildId: UNDETERMINED_BUILD_ID,
1006 this.terseDiagnostics: false, 1007 this.terseDiagnostics: false,
1007 this.deferredMapUri: null, 1008 this.deferredMapUri: null,
1008 this.dumpInfo: false, 1009 this.dumpInfo: false,
1009 this.showPackageWarnings: false, 1010 this.showPackageWarnings: false,
1010 this.useContentSecurityPolicy: false, 1011 this.useContentSecurityPolicy: false,
1011 this.suppressWarnings: false, 1012 this.suppressWarnings: false,
1013 this.fatalWarnings: false,
1012 bool hasIncrementalSupport: false, 1014 bool hasIncrementalSupport: false,
1013 this.enableExperimentalMirrors: false, 1015 this.enableExperimentalMirrors: false,
1014 this.allowNativeExtensions: false, 1016 this.allowNativeExtensions: false,
1015 this.generateCodeWithCompileTimeErrors: false, 1017 this.generateCodeWithCompileTimeErrors: false,
1016 api.CompilerOutputProvider outputProvider, 1018 api.CompilerOutputProvider outputProvider,
1017 List<String> strips: const []}) 1019 List<String> strips: const []})
1018 : this.disableTypeInferenceFlag = 1020 : this.disableTypeInferenceFlag =
1019 disableTypeInferenceFlag || !emitJavaScript, 1021 disableTypeInferenceFlag || !emitJavaScript,
1020 this.analyzeOnly = 1022 this.analyzeOnly =
1021 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag, 1023 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag,
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
2414 return futureClass.computeType(compiler).createInstantiation([elementType]); 2416 return futureClass.computeType(compiler).createInstantiation([elementType]);
2415 } 2417 }
2416 2418
2417 @override 2419 @override
2418 InterfaceType streamType([DartType elementType = const DynamicType()]) { 2420 InterfaceType streamType([DartType elementType = const DynamicType()]) {
2419 return streamClass.computeType(compiler).createInstantiation([elementType]); 2421 return streamClass.computeType(compiler).createInstantiation([elementType]);
2420 } 2422 }
2421 } 2423 }
2422 2424
2423 typedef void InternalErrorFunction(Spannable location, String message); 2425 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698