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

Side by Side Diff: pkg/analysis_server/lib/src/domain_analysis.dart

Issue 363723002: Change HashMap declarations back to Map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library domain.analysis; 5 library domain.analysis;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 List<String> files = filesDatum.asStringList(); 73 List<String> files = filesDatum.asStringList();
74 server.setPriorityFiles(request, files); 74 server.setPriorityFiles(request, files);
75 return new Response(request.id); 75 return new Response(request.id);
76 } 76 }
77 77
78 /** 78 /**
79 * Implement the 'analysis.setSubscriptions' request. 79 * Implement the 'analysis.setSubscriptions' request.
80 */ 80 */
81 Response setSubscriptions(Request request) { 81 Response setSubscriptions(Request request) {
82 // parse subscriptions 82 // parse subscriptions
83 HashMap<AnalysisService, Set<String>> subMap; 83 Map<AnalysisService, Set<String>> subMap;
84 { 84 {
85 RequestDatum subDatum = request.getRequiredParameter(SUBSCRIPTIONS); 85 RequestDatum subDatum = request.getRequiredParameter(SUBSCRIPTIONS);
86 HashMap<String, List<String>> subStringMap = subDatum.asStringListMap(); 86 Map<String, List<String>> subStringMap = subDatum.asStringListMap();
87 subMap = new HashMap<AnalysisService, Set<String>>(); 87 subMap = new HashMap<AnalysisService, Set<String>>();
88 subStringMap.forEach((String serviceName, List<String> paths) { 88 subStringMap.forEach((String serviceName, List<String> paths) {
89 AnalysisService service = Enum2.valueOf(AnalysisService.VALUES, 89 AnalysisService service = Enum2.valueOf(AnalysisService.VALUES,
90 serviceName); 90 serviceName);
91 if (service == null) { 91 if (service == null) {
92 throw new RequestFailure(new Response.unknownAnalysisService(request, 92 throw new RequestFailure(new Response.unknownAnalysisService(request,
93 serviceName)); 93 serviceName));
94 } 94 }
95 subMap[service] = new HashSet.from(paths); 95 subMap[service] = new HashSet.from(paths);
96 }); 96 });
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 /** 196 /**
197 * A description of the change to the content of a file. 197 * A description of the change to the content of a file.
198 */ 198 */
199 class ContentChange { 199 class ContentChange {
200 String content; 200 String content;
201 int offset; 201 int offset;
202 int oldLength; 202 int oldLength;
203 int newLength; 203 int newLength;
204 } 204 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/context_directory_manager.dart ('k') | pkg/analysis_server/lib/src/package_map_provider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698