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

Unified Diff: pkg/analysis_server/lib/src/computer/computer_outline.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, 6 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
Index: pkg/analysis_server/lib/src/computer/computer_outline.dart
diff --git a/pkg/analysis_server/lib/src/computer/computer_outline.dart b/pkg/analysis_server/lib/src/computer/computer_outline.dart
index 869f52fc0556a930b0b2e77952111b55593dcfbf..d997f8c7f6a5266b26c5a48d56d5b4a068b53c5f 100644
--- a/pkg/analysis_server/lib/src/computer/computer_outline.dart
+++ b/pkg/analysis_server/lib/src/computer/computer_outline.dart
@@ -4,8 +4,6 @@
library computer.outline;
-import 'dart:collection';
-
import 'package:analysis_server/src/computer/element.dart';
import 'package:analysis_server/src/constants.dart';
import 'package:analyzer/src/generated/ast.dart';
@@ -23,7 +21,7 @@ class DartUnitOutlineComputer {
/**
* Returns the computed outline, not `null`.
*/
- HashMap<String, Object> compute() {
+ Map<String, Object> compute() {
Outline unitOutline = _newUnitOutline();
for (CompilationUnitMember unitMember in _unit.declarations) {
if (unitMember is ClassDeclaration) {
@@ -310,11 +308,11 @@ class Outline {
Outline(this.element, this.offset, this.length);
- factory Outline.fromJson(HashMap<String, Object> map) {
+ factory Outline.fromJson(Map<String, Object> map) {
Element element = new Element.fromJson(map[ELEMENT]);
Outline outline = new Outline(element, map[OFFSET], map[LENGTH]);
// add children
- List<HashMap<String, Object>> childrenMaps = map[CHILDREN];
+ List<Map<String, Object>> childrenMaps = map[CHILDREN];
if (childrenMaps != null) {
childrenMaps.forEach((childMap) {
outline.children.add(new Outline.fromJson(childMap));
@@ -324,8 +322,8 @@ class Outline {
return outline;
}
- HashMap<String, Object> toJson() {
- HashMap<String, Object> json = {
+ Map<String, Object> toJson() {
+ Map<String, Object> json = {
ELEMENT: element.toJson(),
OFFSET: offset,
LENGTH: length
« no previous file with comments | « pkg/analysis_server/lib/src/computer/computer_navigation.dart ('k') | pkg/analysis_server/lib/src/computer/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698