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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/engine.dart

Issue 24669002: Support for --no-hints in analyzer_experimental. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix hint check; print hints in Dart verison. Created 7 years, 2 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine; 3 library engine;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 import 'java_engine.dart'; 5 import 'java_engine.dart';
6 import 'utilities_collection.dart'; 6 import 'utilities_collection.dart';
7 import 'utilities_general.dart'; 7 import 'utilities_general.dart';
8 import 'instrumentation.dart'; 8 import 'instrumentation.dart';
9 import 'error.dart'; 9 import 'error.dart';
10 import 'source.dart'; 10 import 'source.dart';
(...skipping 2761 matching lines...) Expand 10 before | Expand all | Expand 10 after
2772 } 2772 }
2773 builder.append(tokens[i].lexeme); 2773 builder.append(tokens[i].lexeme);
2774 } 2774 }
2775 return builder.toString(); 2775 return builder.toString();
2776 } 2776 }
2777 nameNode = nameNode.parent; 2777 nameNode = nameNode.parent;
2778 } 2778 }
2779 return null; 2779 return null;
2780 } 2780 }
2781 List<AnalysisError> computeErrors(Source source) { 2781 List<AnalysisError> computeErrors(Source source) {
2782 bool enableHints = analysisOptions.hint;
2782 SourceEntry sourceEntry = getReadableSourceEntry(source); 2783 SourceEntry sourceEntry = getReadableSourceEntry(source);
2783 if (sourceEntry is DartEntry) { 2784 if (sourceEntry is DartEntry) {
2784 List<AnalysisError> errors = new List<AnalysisError>(); 2785 List<AnalysisError> errors = new List<AnalysisError>();
2785 DartEntry dartEntry = sourceEntry as DartEntry; 2786 DartEntry dartEntry = sourceEntry as DartEntry;
2786 ListUtilities.addAll(errors, getDartParseData(source, dartEntry, DartEntry .PARSE_ERRORS)); 2787 ListUtilities.addAll(errors, getDartParseData(source, dartEntry, DartEntry .PARSE_ERRORS));
2787 dartEntry = getReadableDartEntry(source); 2788 dartEntry = getReadableDartEntry(source);
2788 if (identical(dartEntry.getValue(DartEntry.SOURCE_KIND), SourceKind.LIBRAR Y)) { 2789 if (identical(dartEntry.getValue(DartEntry.SOURCE_KIND), SourceKind.LIBRAR Y)) {
2789 ListUtilities.addAll(errors, getDartResolutionData(source, source, dartE ntry, DartEntry.RESOLUTION_ERRORS)); 2790 ListUtilities.addAll(errors, getDartResolutionData(source, source, dartE ntry, DartEntry.RESOLUTION_ERRORS));
2790 ListUtilities.addAll(errors, getDartHintData(source, source, dartEntry, DartEntry.HINTS)); 2791 if (enableHints) {
2792 ListUtilities.addAll(errors, getDartHintData(source, source, dartEntry , DartEntry.HINTS));
2793 }
2791 } else { 2794 } else {
2792 List<Source> libraries = getLibrariesContaining(source); 2795 List<Source> libraries = getLibrariesContaining(source);
2793 for (Source librarySource in libraries) { 2796 for (Source librarySource in libraries) {
2794 ListUtilities.addAll(errors, getDartResolutionData(source, librarySour ce, dartEntry, DartEntry.RESOLUTION_ERRORS)); 2797 ListUtilities.addAll(errors, getDartResolutionData(source, librarySour ce, dartEntry, DartEntry.RESOLUTION_ERRORS));
2795 ListUtilities.addAll(errors, getDartHintData(source, librarySource, da rtEntry, DartEntry.HINTS)); 2798 if (enableHints) {
2799 ListUtilities.addAll(errors, getDartHintData(source, librarySource, dartEntry, DartEntry.HINTS));
2800 }
2796 } 2801 }
2797 } 2802 }
2798 if (errors.isEmpty) { 2803 if (errors.isEmpty) {
2799 return AnalysisError.NO_ERRORS; 2804 return AnalysisError.NO_ERRORS;
2800 } 2805 }
2801 return new List.from(errors); 2806 return new List.from(errors);
2802 } else if (sourceEntry is HtmlEntry) { 2807 } else if (sourceEntry is HtmlEntry) {
2803 HtmlEntry htmlEntry = sourceEntry as HtmlEntry; 2808 HtmlEntry htmlEntry = sourceEntry as HtmlEntry;
2804 return getHtmlResolutionData2(source, htmlEntry, HtmlEntry.RESOLUTION_ERRO RS); 2809 return getHtmlResolutionData2(source, htmlEntry, HtmlEntry.RESOLUTION_ERRO RS);
2805 } 2810 }
(...skipping 3921 matching lines...) Expand 10 before | Expand all | Expand 10 after
6727 } 6732 }
6728 void logError2(String message, Exception exception) { 6733 void logError2(String message, Exception exception) {
6729 } 6734 }
6730 void logError3(Exception exception) { 6735 void logError3(Exception exception) {
6731 } 6736 }
6732 void logInformation(String message) { 6737 void logInformation(String message) {
6733 } 6738 }
6734 void logInformation2(String message, Exception exception) { 6739 void logInformation2(String message, Exception exception) {
6735 } 6740 }
6736 } 6741 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/error_formatter.dart ('k') | pkg/analyzer_experimental/lib/src/generated/error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698