| 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
|
|
|