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

Side by Side Diff: pkg/analysis_server/lib/src/generated_protocol.dart

Issue 894863002: Formatter service API tweaks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
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 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 part of protocol; 9 part of protocol;
10 /** 10 /**
(...skipping 3465 matching lines...) Expand 10 before | Expand all | Expand 10 after
3476 * "selectionLength": int 3476 * "selectionLength": int
3477 * } 3477 * }
3478 */ 3478 */
3479 class EditFormatParams implements HasToJson { 3479 class EditFormatParams implements HasToJson {
3480 /** 3480 /**
3481 * The file containing the code to be formatted. 3481 * The file containing the code to be formatted.
3482 */ 3482 */
3483 String file; 3483 String file;
3484 3484
3485 /** 3485 /**
3486 * The offset of the current selection in the file. 3486 * The offset of the current selection in the file. In case preserving,
3487 * selection information is not required, 0 can be specified for both
3488 * selection offset and length.
3487 */ 3489 */
3488 int selectionOffset; 3490 int selectionOffset;
3489 3491
3490 /** 3492 /**
3491 * The length of the current selection in the file. 3493 * The length of the current selection in the file. In case preserving,
3494 * selection information is not required, 0 can be specified for both
3495 * selection offset and length.
3492 */ 3496 */
3493 int selectionLength; 3497 int selectionLength;
3494 3498
3495 EditFormatParams(this.file, this.selectionOffset, this.selectionLength); 3499 EditFormatParams(this.file, this.selectionOffset, this.selectionLength);
3496 3500
3497 factory EditFormatParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) { 3501 factory EditFormatParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) {
3498 if (json == null) { 3502 if (json == null) {
3499 json = {}; 3503 json = {};
3500 } 3504 }
3501 if (json is Map) { 3505 if (json is Map) {
(...skipping 7686 matching lines...) Expand 10 before | Expand all | Expand 10 after
11188 return false; 11192 return false;
11189 } 11193 }
11190 11194
11191 @override 11195 @override
11192 int get hashCode { 11196 int get hashCode {
11193 int hash = 0; 11197 int hash = 0;
11194 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 11198 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
11195 return _JenkinsSmiHash.finish(hash); 11199 return _JenkinsSmiHash.finish(hash);
11196 } 11200 }
11197 } 11201 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/edit/edit_domain.dart ('k') | pkg/analysis_server/test/integration/integration_test_methods.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698