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

Unified Diff: pkg/analyzer/lib/src/generated/error_verifier.dart

Issue 2770143002: More generic function type cases working (Closed)
Patch Set: Created 3 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/analyzer/lib/src/generated/error_verifier.dart
diff --git a/pkg/analyzer/lib/src/generated/error_verifier.dart b/pkg/analyzer/lib/src/generated/error_verifier.dart
index ca2b9b5aacea9a429872846fce668bc5acef51e4..98afc2e39a70d4d78ea8d238f9526013c6e8ee6d 100644
--- a/pkg/analyzer/lib/src/generated/error_verifier.dart
+++ b/pkg/analyzer/lib/src/generated/error_verifier.dart
@@ -5379,7 +5379,9 @@ class ErrorVerifier extends RecursiveAstVisitor<Object> {
}
// name should start with '_'
SimpleIdentifier name = parameter.identifier;
- if (name.isSynthetic || !StringUtilities.startsWithChar(name.name, 0x5F)) {
+ if (name == null ||
+ name.isSynthetic ||
+ !StringUtilities.startsWithChar(name.name, 0x5F)) {
return;
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/declaration_resolver.dart ('k') | pkg/analyzer/lib/src/summary/summarize_ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698