| OLD | NEW |
| 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 library protocol; | 5 library protocol; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 part 'generated_protocol.dart'; | 10 part 'generated_protocol.dart'; |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 */ | 803 */ |
| 804 Response.sortMembersInvalidFile(Request request) | 804 Response.sortMembersInvalidFile(Request request) |
| 805 : this( | 805 : this( |
| 806 request.id, | 806 request.id, |
| 807 error: new RequestError( | 807 error: new RequestError( |
| 808 RequestErrorCode.SORT_MEMBERS_INVALID_FILE, | 808 RequestErrorCode.SORT_MEMBERS_INVALID_FILE, |
| 809 'Error during `edit.sortMembers`: invalid file.')); | 809 'Error during `edit.sortMembers`: invalid file.')); |
| 810 | 810 |
| 811 /** | 811 /** |
| 812 * Initialize a newly created instance to represent the | 812 * Initialize a newly created instance to represent the |
| 813 * REFACTORING_REQUEST_CANCELLED error condition. |
| 814 */ |
| 815 Response.refactoringRequestCancelled(Request request) |
| 816 : this( |
| 817 request.id, |
| 818 error: new RequestError( |
| 819 RequestErrorCode.REFACTORING_REQUEST_CANCELLED, |
| 820 'The `edit.getRefactoring` request was cancelled.')); |
| 821 |
| 822 /** |
| 823 * Initialize a newly created instance to represent the |
| 813 * SORT_MEMBERS_PARSE_ERRORS error condition. | 824 * SORT_MEMBERS_PARSE_ERRORS error condition. |
| 814 */ | 825 */ |
| 815 Response.sortMembersParseErrors(Request request, int numErrors) | 826 Response.sortMembersParseErrors(Request request, int numErrors) |
| 816 : this( | 827 : this( |
| 817 request.id, | 828 request.id, |
| 818 error: new RequestError( | 829 error: new RequestError( |
| 819 RequestErrorCode.SORT_MEMBERS_PARSE_ERRORS, | 830 RequestErrorCode.SORT_MEMBERS_PARSE_ERRORS, |
| 820 'Error during `edit.sortMembers`: file has $numErrors scan/parse e
rrors.')); | 831 'Error during `edit.sortMembers`: file has $numErrors scan/parse e
rrors.')); |
| 821 | 832 |
| 822 /** | 833 /** |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); | 910 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); |
| 900 hash = hash ^ (hash >> 11); | 911 hash = hash ^ (hash >> 11); |
| 901 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); | 912 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); |
| 902 } | 913 } |
| 903 | 914 |
| 904 static int hash2(a, b) => finish(combine(combine(0, a), b)); | 915 static int hash2(a, b) => finish(combine(combine(0, a), b)); |
| 905 | 916 |
| 906 static int hash4(a, b, c, d) => | 917 static int hash4(a, b, c, d) => |
| 907 finish(combine(combine(combine(combine(0, a), b), c), d)); | 918 finish(combine(combine(combine(combine(0, a), b), c), d)); |
| 908 } | 919 } |
| OLD | NEW |