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

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

Issue 809203002: Log more information to debug 'null' location for constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
« no previous file with comments | « pkg/analysis_server/lib/src/protocol_server.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/incremental_resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/incremental_resolver.dart b/pkg/analyzer/lib/src/generated/incremental_resolver.dart
index 2271cf5ba636259ce015df816dc679bb8b1dc1c3..21f6e7b1c32fd86102eb3955ef4cb7cac28f08d8 100644
--- a/pkg/analyzer/lib/src/generated/incremental_resolver.dart
+++ b/pkg/analyzer/lib/src/generated/incremental_resolver.dart
@@ -185,6 +185,12 @@ class DeclarationMatcher extends RecursiveAstVisitor {
_enclosingClass.getNamedConstructor(constructorName.name);
_processElement(element);
_assertCompatibleParameters(node.parameters, element.parameters);
+ // TODO(scheglov) debug null Location
+ if (element != null) {
+ if (element.context == null || element.source == null) {
+ logger.log('Bad constructor element $element for $node in ${node.parent}');
+ }
+ }
// matches, update the existing element
ExecutableElement newElement = node.element;
node.element = element;
« no previous file with comments | « pkg/analysis_server/lib/src/protocol_server.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698