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

Unified Diff: pkg/analysis_server/lib/src/services/index/store/split_store.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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/refactoring/rename.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/index/store/split_store.dart
diff --git a/pkg/analysis_server/lib/src/services/index/store/split_store.dart b/pkg/analysis_server/lib/src/services/index/store/split_store.dart
index b0b316963724be7697ea016b0ef96d125f32af6a..e816fbb4caba57a59ed671679d182a9a23cb7004 100644
--- a/pkg/analysis_server/lib/src/services/index/store/split_store.dart
+++ b/pkg/analysis_server/lib/src/services/index/store/split_store.dart
@@ -534,7 +534,6 @@ class SplitIndexStore implements IndexStore {
@override
bool aboutToIndexDart(AnalysisContext context,
CompilationUnitElement unitElement) {
- context = _unwrapContext(context);
// may be already disposed in other thread
if (context.isDisposed) {
return false;
@@ -604,7 +603,6 @@ class SplitIndexStore implements IndexStore {
@override
bool aboutToIndexHtml(AnalysisContext context, HtmlElement htmlElement) {
- context = _unwrapContext(context);
// may be already disposed in other thread
if (context.isDisposed) {
return false;
@@ -701,7 +699,6 @@ class SplitIndexStore implements IndexStore {
@override
void removeContext(AnalysisContext context) {
- context = _unwrapContext(context);
if (context == null) {
return;
}
@@ -717,7 +714,6 @@ class SplitIndexStore implements IndexStore {
@override
void removeSource(AnalysisContext context, Source source) {
- context = _unwrapContext(context);
if (context == null) {
return;
}
@@ -746,7 +742,6 @@ class SplitIndexStore implements IndexStore {
@override
void removeSources(AnalysisContext context, SourceContainer container) {
- context = _unwrapContext(context);
if (context == null) {
return;
}
@@ -887,19 +882,6 @@ class SplitIndexStore implements IndexStore {
}
}
}
-
- /**
- * When logging is on, [AnalysisEngine] actually creates
- * [InstrumentedAnalysisContextImpl], which wraps [AnalysisContextImpl] used to create
- * actual [Element]s. So, in index we have to unwrap [InstrumentedAnalysisContextImpl]
- * when perform any operation.
- */
- AnalysisContext _unwrapContext(AnalysisContext context) {
- if (context is InstrumentedAnalysisContextImpl) {
- context = (context as InstrumentedAnalysisContextImpl).basis;
- }
- return context;
- }
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/refactoring/rename.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698