Index: pkg/analyzer/lib/src/context/context.dart |
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart |
index 0d1067da738713e13dd340e196cab27db9c8cf27..c555f1b2684db03fee1df11cf2890927bed95e30 100644 |
--- a/pkg/analyzer/lib/src/context/context.dart |
+++ b/pkg/analyzer/lib/src/context/context.dart |
@@ -1138,7 +1138,7 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
new LibrarySpecificUnit(librarySource, librarySource); |
entry = getCacheEntry(unit); |
setValue(HINTS, AnalysisError.NO_ERRORS); |
- // dartEntry.setValue(LINTS, AnalysisError.NO_ERRORS); |
+ setValue(LINTS, AnalysisError.NO_ERRORS); |
setValue(INFER_STATIC_VARIABLE_TYPES_ERRORS, AnalysisError.NO_ERRORS); |
setValue(LIBRARY_UNIT_ERRORS, AnalysisError.NO_ERRORS); |
setValue(PARTIALLY_RESOLVE_REFERENCES_ERRORS, AnalysisError.NO_ERRORS); |
@@ -1635,16 +1635,16 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
return; |
} |
} |
-// if (lintsEnabled) { |
-// state = unitEntry.getState(LINTS); |
-// if (state == CacheState.INVALID || |
-// (isPriority && state == CacheState.FLUSHED)) { |
-// sources.add(source); |
-// return; |
-// } else if (state == CacheState.ERROR) { |
-// return; |
-// } |
-// } |
+ if (lintsEnabled) { |
+ state = unitEntry.getState(LINTS); |
+ if (state == CacheState.INVALID || |
+ (isPriority && state == CacheState.FLUSHED)) { |
+ sources.add(source); |
+ return; |
+ } else if (state == CacheState.ERROR) { |
+ return; |
+ } |
+ } |
} |
} |
// } else if (kind == SourceKind.HTML) { |