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

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

Issue 757613002: new onPriorityChanged event stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix test Created 6 years 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 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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 request.id, 770 request.id,
771 error: new RequestError( 771 error: new RequestError(
772 RequestErrorCode.SORT_MEMBERS_PARSE_ERRORS, 772 RequestErrorCode.SORT_MEMBERS_PARSE_ERRORS,
773 'Error during `edit.sortMembers`: file has $numErrors scan/parse e rrors.')); 773 'Error during `edit.sortMembers`: file has $numErrors scan/parse e rrors.'));
774 774
775 /** 775 /**
776 * Initialize a newly created instance to represent an error condition caused 776 * Initialize a newly created instance to represent an error condition caused
777 * by a `analysis.setPriorityFiles` [request] that includes one or more files 777 * by a `analysis.setPriorityFiles` [request] that includes one or more files
778 * that are not being analyzed. 778 * that are not being analyzed.
779 */ 779 */
780 Response.unanalyzedPriorityFiles(Request request, String fileNames) 780 Response.unanalyzedPriorityFiles(String requestId, String fileNames)
781 : this( 781 : this(
782 request.id, 782 requestId,
783 error: new RequestError( 783 error: new RequestError(
784 RequestErrorCode.UNANALYZED_PRIORITY_FILES, 784 RequestErrorCode.UNANALYZED_PRIORITY_FILES,
785 "Unanalyzed files cannot be a priority: '$fileNames'")); 785 "Unanalyzed files cannot be a priority: '$fileNames'"));
786 786
787 /** 787 /**
788 * Initialize a newly created instance to represent an error condition caused 788 * Initialize a newly created instance to represent an error condition caused
789 * by a [request] that cannot be handled by any known handlers. 789 * by a [request] that cannot be handled by any known handlers.
790 */ 790 */
791 Response.unknownRequest(Request request) 791 Response.unknownRequest(Request request)
792 : this( 792 : this(
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); 852 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
853 hash = hash ^ (hash >> 11); 853 hash = hash ^ (hash >> 11);
854 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); 854 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
855 } 855 }
856 856
857 static int hash2(a, b) => finish(combine(combine(0, a), b)); 857 static int hash2(a, b) => finish(combine(combine(0, a), b));
858 858
859 static int hash4(a, b, c, d) => 859 static int hash4(a, b, c, d) =>
860 finish(combine(combine(combine(combine(0, a), b), c), d)); 860 finish(combine(combine(combine(combine(0, a), b), c), d));
861 } 861 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698