Chromium Code Reviews| Index: pkg/analysis_server/lib/src/resource.dart |
| diff --git a/pkg/analysis_server/lib/src/resource.dart b/pkg/analysis_server/lib/src/resource.dart |
| index e3df8afb24bb5e0814f48220e45d964d8ee132ac..4c6745ffb458fb8c1639c28f7d24b9dd10a8adda 100644 |
| --- a/pkg/analysis_server/lib/src/resource.dart |
| +++ b/pkg/analysis_server/lib/src/resource.dart |
| @@ -5,6 +5,7 @@ |
| library resource; |
| import 'dart:async'; |
| +import 'dart:collection'; |
| import 'dart:io' as io; |
| import 'package:analyzer/src/generated/engine.dart' show TimestampedData; |
| @@ -265,11 +266,11 @@ class _MemoryFolder extends _MemoryResource implements Folder { |
| * Use `/` as a path separator. |
| */ |
| class MemoryResourceProvider implements ResourceProvider { |
| - final Map<String, _MemoryResource> _pathToResource = <String, _MemoryResource>{}; |
| - final Map<String, String> _pathToContent = <String, String>{}; |
| - final Map<String, int> _pathToTimestamp = <String, int>{}; |
| + final Map<String, _MemoryResource> _pathToResource = new HashMap<String, _MemoryResource>(); |
|
scheglov
2014/06/06 19:26:46
More than 80 characters.
|
| + final Map<String, String> _pathToContent = new HashMap<String, String>(); |
| + final Map<String, int> _pathToTimestamp = new HashMap<String, int>(); |
| final Map<String, StreamController<WatchEvent>> _pathToWatcher = |
| - <String, StreamController<WatchEvent>>{}; |
| + new HashMap<String, StreamController<WatchEvent>>(); |
| int nextStamp = 0; |
| @override |