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

Unified Diff: pkg/analysis_server/lib/src/context_manager.dart

Issue 1842063003: Start making server strong mode clean (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove unintended change Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/context_manager.dart
diff --git a/pkg/analysis_server/lib/src/context_manager.dart b/pkg/analysis_server/lib/src/context_manager.dart
index fc2573c3f27d0948e2a058e526c54035a4b8b142..ceac78bd14c5dadb00bb058459b073309a60f51b 100644
--- a/pkg/analysis_server/lib/src/context_manager.dart
+++ b/pkg/analysis_server/lib/src/context_manager.dart
@@ -624,15 +624,12 @@ class ContextManagerImpl implements ContextManager {
}
var analyzer = options[AnalyzerOptions.analyzer];
- if (analyzer is! Map) {
- // Done.
- return;
- }
-
- // Set ignore patterns.
- YamlList exclude = analyzer[AnalyzerOptions.exclude];
- if (exclude != null) {
- setIgnorePatternsForContext(info, exclude);
+ if (analyzer is Map) {
+ // Set ignore patterns.
+ YamlList exclude = analyzer[AnalyzerOptions.exclude];
+ if (exclude is List<String>) {
+ setIgnorePatternsForContext(info, exclude as List<String>);
scheglov 2016/03/31 00:53:18 We can propagate the type of "exclude", but it is
Brian Wilkerson 2016/03/31 15:27:12 You're right, that does seem like it ought not to
Leaf 2016/03/31 17:59:14 Intellij go to declaration can't seem to find the
Brian Wilkerson 2016/03/31 18:17:06 Then the right solution is probably to change setI
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698