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 2a0b7d5d609ef9f32c422948e5ccc32bd3d42ce1..b39f42982ad6f65a333ca6626d79156c7b3f8263 100644 |
--- a/pkg/analyzer/lib/src/context/context.dart |
+++ b/pkg/analyzer/lib/src/context/context.dart |
@@ -1199,10 +1199,6 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
@override |
CompilationUnit resolveCompilationUnit2( |
Source unitSource, Source librarySource) { |
- if (!AnalysisEngine.isDartFileName(unitSource.shortName) || |
- !AnalysisEngine.isDartFileName(librarySource.shortName)) { |
- return null; |
- } |
return computeResult( |
new LibrarySpecificUnit(librarySource, unitSource), RESOLVED_UNIT); |
} |