mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 21:30:17 +00:00
Fix "?." usage in analyze.dart.
Review-Url: https://codereview.chromium.org/2941123005 .
This commit is contained in:
parent
68bb955b7f
commit
71ad537fbf
|
@ -237,7 +237,7 @@ Future<Null> analyzeUris(
|
|||
await for (AnalyzerDiagnostic diagnostic in diagnostics) {
|
||||
if (diagnostic.uri != null) {
|
||||
String path = toFilePath(diagnostic.uri);
|
||||
if (!(analysisOptions?.path.contains("/pkg/compiler/") ?? false) &&
|
||||
if (!(analysisOptions?.path?.contains("/pkg/compiler/") ?? false) &&
|
||||
diagnostic.code.startsWith("STRONG_MODE") &&
|
||||
(path.startsWith("pkg/compiler/") ||
|
||||
path.startsWith("tests/compiler/dart2js/"))) {
|
||||
|
|
Loading…
Reference in a new issue