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

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

Issue 861893003: Library Dependencies Analysis service API. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 return false; 701 return false;
702 } 702 }
703 703
704 @override 704 @override
705 int get hashCode { 705 int get hashCode {
706 int hash = 0; 706 int hash = 0;
707 hash = _JenkinsSmiHash.combine(hash, hovers.hashCode); 707 hash = _JenkinsSmiHash.combine(hash, hovers.hashCode);
708 return _JenkinsSmiHash.finish(hash); 708 return _JenkinsSmiHash.finish(hash);
709 } 709 }
710 } 710 }
711 /**
712 * analysis.getLibraryDependencies params
713 */
714 class AnalysisGetLibraryDependenciesParams {
715 Request toRequest(String id) {
716 return new Request(id, "analysis.getLibraryDependencies", null);
717 }
718
719 @override
720 bool operator==(other) {
721 if (other is AnalysisGetLibraryDependenciesParams) {
722 return true;
723 }
724 return false;
725 }
726
727 @override
728 int get hashCode {
729 return 246577680;
730 }
731 }
732
733 /**
734 * analysis.getLibraryDependencies result
735 *
736 * {
737 * "libraries": List<FilePath>
738 * }
739 */
740 class AnalysisGetLibraryDependenciesResult implements HasToJson {
741 /**
742 * A list of the paths of library elements referenced by files in existing
743 * analysis roots.
744 */
745 List<String> libraries;
746
747 AnalysisGetLibraryDependenciesResult(this.libraries);
748
749 factory AnalysisGetLibraryDependenciesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
750 if (json == null) {
751 json = {};
752 }
753 if (json is Map) {
754 List<String> libraries;
755 if (json.containsKey("libraries")) {
756 libraries = jsonDecoder._decodeList(jsonPath + ".libraries", json["libra ries"], jsonDecoder._decodeString);
757 } else {
758 throw jsonDecoder.missingKey(jsonPath, "libraries");
759 }
760 return new AnalysisGetLibraryDependenciesResult(libraries);
761 } else {
762 throw jsonDecoder.mismatch(jsonPath, "analysis.getLibraryDependencies resu lt");
763 }
764 }
765
766 factory AnalysisGetLibraryDependenciesResult.fromResponse(Response response) {
767 return new AnalysisGetLibraryDependenciesResult.fromJson(
768 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
769 }
770
771 Map<String, dynamic> toJson() {
772 Map<String, dynamic> result = {};
773 result["libraries"] = libraries;
774 return result;
775 }
776
777 Response toResponse(String id) {
778 return new Response(id, result: toJson());
779 }
780
781 @override
782 String toString() => JSON.encode(toJson());
783
784 @override
785 bool operator==(other) {
786 if (other is AnalysisGetLibraryDependenciesResult) {
787 return _listEqual(libraries, other.libraries, (String a, String b) => a == b);
788 }
789 return false;
790 }
791
792 @override
793 int get hashCode {
794 int hash = 0;
795 hash = _JenkinsSmiHash.combine(hash, libraries.hashCode);
796 return _JenkinsSmiHash.finish(hash);
797 }
798 }
711 799
712 /** 800 /**
713 * analysis.getNavigation params 801 * analysis.getNavigation params
714 * 802 *
715 * { 803 * {
716 * "file": FilePath 804 * "file": FilePath
717 * "offset": int 805 * "offset": int
718 * "length": int 806 * "length": int
719 * } 807 * }
720 */ 808 */
(...skipping 10324 matching lines...) Expand 10 before | Expand all | Expand 10 after
11045 return false; 11133 return false;
11046 } 11134 }
11047 11135
11048 @override 11136 @override
11049 int get hashCode { 11137 int get hashCode {
11050 int hash = 0; 11138 int hash = 0;
11051 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 11139 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
11052 return _JenkinsSmiHash.finish(hash); 11140 return _JenkinsSmiHash.finish(hash);
11053 } 11141 }
11054 } 11142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698