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

Unified Diff: pkg/analysis_server/lib/src/domain_execution.dart

Issue 1126613004: Use server.getContainingContext() in execution domain. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/domain_execution.dart
diff --git a/pkg/analysis_server/lib/src/domain_execution.dart b/pkg/analysis_server/lib/src/domain_execution.dart
index 59d70afbfc23f474508e4d3749fc84364f7cf863..145f1ba8fb64e77806916bd3e840edadd7b1ff47 100644
--- a/pkg/analysis_server/lib/src/domain_execution.dart
+++ b/pkg/analysis_server/lib/src/domain_execution.dart
@@ -96,7 +96,7 @@ class ExecutionDomainHandler implements RequestHandler {
return new Response.invalidParameter(request, 'id',
'There is no execution context with an id of $contextId');
}
- AnalysisContext context = server.getAnalysisContext(path);
+ AnalysisContext context = server.getContainingContext(path);
Brian Wilkerson 2015/05/04 20:06:19 Why do we have both methods? They appear to be doi
scheglov 2015/05/04 20:15:22 Mostly for external files. For example when we get
if (context == null) {
return new Response.invalidExecutionContext(request, contextId);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698