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

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

Issue 305643003: Fix analyzer warning. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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_context.dart
diff --git a/pkg/analysis_server/lib/src/domain_context.dart b/pkg/analysis_server/lib/src/domain_context.dart
index 07e356758d1782c321383ec79a8c76bca599436a..d7ff3ff83d60c933208b020aa3fbf39f9a70d7c8 100644
--- a/pkg/analysis_server/lib/src/domain_context.dart
+++ b/pkg/analysis_server/lib/src/domain_context.dart
@@ -265,11 +265,13 @@ class ContextDomainHandler implements RequestHandler {
* the specified context does not exist.
*/
AnalysisContext getAnalysisContext(Request request) {
- String contextId = request.getRequiredParameter(CONTEXT_ID_PARAM).asString();
- AnalysisContext context = server.contextMap[contextId];
- if (context == null) {
- throw new RequestFailure(new Response.contextDoesNotExist(request));
- }
- return context;
+ // TODO(scheglov) remove it after migrating to the new API
+ return null;
+// String contextId = request.getRequiredParameter(CONTEXT_ID_PARAM).asString();
+// AnalysisContext context = server.contextMap[contextId];
+// if (context == null) {
+// throw new RequestFailure(new Response.contextDoesNotExist(request));
+// }
+// return context;
}
}
« 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