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

Unified Diff: pkg/analysis_server/lib/src/services/index/index_contributor.dart

Issue 970913002: API clean-up (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Sort ast.dart Created 5 years, 10 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/services/index/index_contributor.dart
diff --git a/pkg/analysis_server/lib/src/services/index/index_contributor.dart b/pkg/analysis_server/lib/src/services/index/index_contributor.dart
index 09f87de9e57654b72977db35754172b7443e7d0e..463e8fd0be806874f9a2402af30fb7dd7fd581c9 100644
--- a/pkg/analysis_server/lib/src/services/index/index_contributor.dart
+++ b/pkg/analysis_server/lib/src/services/index/index_contributor.dart
@@ -424,7 +424,7 @@ class _IndexContributor extends GeneralizingAstVisitor {
int end = node.constructorName.end;
location = _createLocationForOffset(start, end - start);
} else {
- int start = node.keyword.end;
+ int start = node.thisKeyword.end;
location = _createLocationForOffset(start, 0);
}
recordRelationship(element, IndexConstants.IS_REFERENCED_BY, location);
@@ -521,7 +521,7 @@ class _IndexContributor extends GeneralizingAstVisitor {
int end = node.constructorName.end;
location = _createLocationForOffset(start, end - start);
} else {
- int start = node.keyword.end;
+ int start = node.superKeyword.end;
location = _createLocationForOffset(start, 0);
}
recordRelationship(element, IndexConstants.IS_REFERENCED_BY, location);
« no previous file with comments | « pkg/analysis_server/lib/src/computer/computer_navigation.dart ('k') | pkg/analyzer/lib/src/generated/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698