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

Unified Diff: pkg/analysis_server/lib/src/services/refactoring/rename.dart

Issue 784623004: Remove old instrumentation (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
Index: pkg/analysis_server/lib/src/services/refactoring/rename.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/rename.dart b/pkg/analysis_server/lib/src/services/refactoring/rename.dart
index e07edb62030da4691128b2b698ff915eef1e63cb..746a8d6265d4eecd0a50157b91881cf517947f14 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/rename.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/rename.dart
@@ -57,14 +57,7 @@ bool isDefinedInLibrary(Element element, AnalysisContext context, Source source)
* Checks if the given [Element] is in the given [AnalysisContext].
*/
bool isInContext(Element element, AnalysisContext context) {
- AnalysisContext elementContext = element.context;
- if (elementContext == context) {
- return true;
- }
- if (context is InstrumentedAnalysisContextImpl) {
- return elementContext == context.basis;
- }
- return false;
+ return element.context == context;
}

Powered by Google App Engine
This is Rietveld 408576698