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

Side by Side Diff: pkg/analysis_server/lib/plugin/protocol/protocol.dart

Issue 2746333008: Run dartfmt on dart2js codebase. (Closed)
Patch Set: Format all analyzer packages Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Support for client code that needs to interact with the requests, responses 6 * Support for client code that needs to interact with the requests, responses
7 * and notifications that are part of the analysis server's wire protocol. 7 * and notifications that are part of the analysis server's wire protocol.
8 */ 8 */
9 library analysis_server.plugin.protocol.protocol; 9 library analysis_server.plugin.protocol.protocol;
10 10
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 * then the response will represent an error condition. 336 * then the response will represent an error condition.
337 */ 337 */
338 Response(this.id, {Map<String, Object> result, this.error}) 338 Response(this.id, {Map<String, Object> result, this.error})
339 : _result = result; 339 : _result = result;
340 340
341 /** 341 /**
342 * Create and return the `DEBUG_PORT_COULD_NOT_BE_OPENED` error response. 342 * Create and return the `DEBUG_PORT_COULD_NOT_BE_OPENED` error response.
343 */ 343 */
344 Response.debugPortCouldNotBeOpened(Request request, dynamic error) 344 Response.debugPortCouldNotBeOpened(Request request, dynamic error)
345 : this(request.id, 345 : this(request.id,
346 error: new RequestError( 346 error: new RequestError(
347 RequestErrorCode.DEBUG_PORT_COULD_NOT_BE_OPENED, '$error')); 347 RequestErrorCode.DEBUG_PORT_COULD_NOT_BE_OPENED, '$error'));
348 348
349 /** 349 /**
350 * Initialize a newly created instance to represent the FILE_NOT_ANALYZED 350 * Initialize a newly created instance to represent the FILE_NOT_ANALYZED
351 * error condition. 351 * error condition.
352 */ 352 */
353 Response.fileNotAnalyzed(Request request, String file) 353 Response.fileNotAnalyzed(Request request, String file)
354 : this(request.id, 354 : this(request.id,
355 error: new RequestError(RequestErrorCode.FILE_NOT_ANALYZED, 355 error: new RequestError(RequestErrorCode.FILE_NOT_ANALYZED,
356 'File is not analyzed: $file.')); 356 'File is not analyzed: $file.'));
357 357
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 jsonObject[ID] = id; 589 jsonObject[ID] = id;
590 if (error != null) { 590 if (error != null) {
591 jsonObject[ERROR] = error.toJson(); 591 jsonObject[ERROR] = error.toJson();
592 } 592 }
593 if (_result != null) { 593 if (_result != null) {
594 jsonObject[RESULT] = _result; 594 jsonObject[RESULT] = _result;
595 } 595 }
596 return jsonObject; 596 return jsonObject;
597 } 597 }
598 } 598 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart ('k') | pkg/analysis_server/lib/src/domain_execution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698