Index: pkg/analysis_server/lib/src/plugin/request_converter.dart |
diff --git a/pkg/analysis_server/lib/src/plugin/request_converter.dart b/pkg/analysis_server/lib/src/plugin/request_converter.dart |
index a254b0b99fa976488fd218358aebf14f572a869f..92cbc48642889a3139463d3fd8636431654899b9 100644 |
--- a/pkg/analysis_server/lib/src/plugin/request_converter.dart |
+++ b/pkg/analysis_server/lib/src/plugin/request_converter.dart |
@@ -4,7 +4,6 @@ |
import 'package:analysis_server/protocol/protocol_generated.dart' as server; |
import 'package:analysis_server/src/protocol/protocol_internal.dart' as server; |
-import 'package:analyzer_plugin/protocol/protocol_common.dart' as plugin; |
import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; |
/** |
@@ -50,24 +49,8 @@ class RequestConverter { |
Map<String, dynamic> serverOverlays = params.files; |
Map<String, dynamic> pluginOverlays = <String, dynamic>{}; |
for (String file in serverOverlays.keys) { |
- pluginOverlays[file] = convertFileOverlay(serverOverlays[file]); |
+ pluginOverlays[file] = serverOverlays[file]; |
} |
return new plugin.AnalysisUpdateContentParams(pluginOverlays); |
} |
- |
- Object convertFileOverlay(Object overlay) { |
- if (overlay is server.AddContentOverlay) { |
- return new plugin.AddContentOverlay(overlay.content); |
- } else if (overlay is server.ChangeContentOverlay) { |
- return new plugin.ChangeContentOverlay( |
- overlay.edits.map(convertSourceEdit).toList()); |
- } else if (overlay is server.RemoveContentOverlay) { |
- return new plugin.RemoveContentOverlay(); |
- } |
- return null; |
- } |
- |
- plugin.SourceEdit convertSourceEdit(server.SourceEdit edit) { |
- return new plugin.SourceEdit(edit.offset, edit.length, edit.replacement); |
- } |
} |