| Index: pkg/analysis_server/lib/src/protocol.dart
|
| diff --git a/pkg/analysis_server/lib/src/protocol.dart b/pkg/analysis_server/lib/src/protocol.dart
|
| index 123214f7214eaa648e42d342629559532ccd6640..7541aed2dd5f0a109b22122483a3f859e9c1ecb0 100644
|
| --- a/pkg/analysis_server/lib/src/protocol.dart
|
| +++ b/pkg/analysis_server/lib/src/protocol.dart
|
| @@ -147,6 +147,20 @@ class Request {
|
| }
|
| throw new RequestFailure(new Response.expectedInteger(this, value));
|
| }
|
| +
|
| + /**
|
| + * Return a table representing the structure of the Json object that will be
|
| + * sent to the client to represent this response.
|
| + */
|
| + Map<String, Object> toJson() {
|
| + Map jsonObject = new Map();
|
| + jsonObject[ID] = id;
|
| + jsonObject[METHOD] = method;
|
| + params.forEach((String key, Object value) {
|
| + jsonObject[key] = value;
|
| + });
|
| + return jsonObject;
|
| + }
|
| }
|
|
|
| /**
|
|
|