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

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

Issue 1232393005: Add notification of analyzed files (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 // 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 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 return false; 1575 return false;
1576 } 1576 }
1577 1577
1578 @override 1578 @override
1579 int get hashCode { 1579 int get hashCode {
1580 return 866004753; 1580 return 866004753;
1581 } 1581 }
1582 } 1582 }
1583 1583
1584 /** 1584 /**
1585 * analysis.setGeneralSubscriptions params
1586 *
1587 * {
1588 * "subscriptions": List<GeneralAnalysisService>
1589 * }
1590 */
1591 class AnalysisSetGeneralSubscriptionsParams implements HasToJson {
1592 List<GeneralAnalysisService> _subscriptions;
1593
1594 /**
1595 * A list of the services being subscribed to.
1596 */
1597 List<GeneralAnalysisService> get subscriptions => _subscriptions;
1598
1599 /**
1600 * A list of the services being subscribed to.
1601 */
1602 void set subscriptions(List<GeneralAnalysisService> value) {
1603 assert(value != null);
1604 this._subscriptions = value;
1605 }
1606
1607 AnalysisSetGeneralSubscriptionsParams(List<GeneralAnalysisService> subscriptio ns) {
1608 this.subscriptions = subscriptions;
1609 }
1610
1611 factory AnalysisSetGeneralSubscriptionsParams.fromJson(JsonDecoder jsonDecoder , String jsonPath, Object json) {
1612 if (json == null) {
1613 json = {};
1614 }
1615 if (json is Map) {
1616 List<GeneralAnalysisService> subscriptions;
1617 if (json.containsKey("subscriptions")) {
1618 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso n["subscriptions"], (String jsonPath, Object json) => new GeneralAnalysisService .fromJson(jsonDecoder, jsonPath, json));
1619 } else {
1620 throw jsonDecoder.missingKey(jsonPath, "subscriptions");
1621 }
1622 return new AnalysisSetGeneralSubscriptionsParams(subscriptions);
1623 } else {
1624 throw jsonDecoder.mismatch(jsonPath, "analysis.setGeneralSubscriptions par ams");
1625 }
1626 }
1627
1628 factory AnalysisSetGeneralSubscriptionsParams.fromRequest(Request request) {
1629 return new AnalysisSetGeneralSubscriptionsParams.fromJson(
1630 new RequestDecoder(request), "params", request._params);
1631 }
1632
1633 Map<String, dynamic> toJson() {
1634 Map<String, dynamic> result = {};
1635 result["subscriptions"] = subscriptions.map((GeneralAnalysisService value) = > value.toJson()).toList();
1636 return result;
1637 }
1638
1639 Request toRequest(String id) {
1640 return new Request(id, "analysis.setGeneralSubscriptions", toJson());
1641 }
1642
1643 @override
1644 String toString() => JSON.encode(toJson());
1645
1646 @override
1647 bool operator==(other) {
1648 if (other is AnalysisSetGeneralSubscriptionsParams) {
1649 return _listEqual(subscriptions, other.subscriptions, (GeneralAnalysisServ ice a, GeneralAnalysisService b) => a == b);
1650 }
1651 return false;
1652 }
1653
1654 @override
1655 int get hashCode {
1656 int hash = 0;
1657 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode);
1658 return _JenkinsSmiHash.finish(hash);
1659 }
1660 }
1661 /**
1662 * analysis.setGeneralSubscriptions result
1663 */
1664 class AnalysisSetGeneralSubscriptionsResult {
1665 Response toResponse(String id) {
1666 return new Response(id, result: null);
1667 }
1668
1669 @override
1670 bool operator==(other) {
1671 if (other is AnalysisSetGeneralSubscriptionsResult) {
1672 return true;
1673 }
1674 return false;
1675 }
1676
1677 @override
1678 int get hashCode {
1679 return 386759562;
1680 }
1681 }
1682
1683 /**
1585 * analysis.setPriorityFiles params 1684 * analysis.setPriorityFiles params
1586 * 1685 *
1587 * { 1686 * {
1588 * "files": List<FilePath> 1687 * "files": List<FilePath>
1589 * } 1688 * }
1590 */ 1689 */
1591 class AnalysisSetPriorityFilesParams implements HasToJson { 1690 class AnalysisSetPriorityFilesParams implements HasToJson {
1592 List<String> _files; 1691 List<String> _files;
1593 1692
1594 /** 1693 /**
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 return false; 2105 return false;
2007 } 2106 }
2008 2107
2009 @override 2108 @override
2010 int get hashCode { 2109 int get hashCode {
2011 return 179689467; 2110 return 179689467;
2012 } 2111 }
2013 } 2112 }
2014 2113
2015 /** 2114 /**
2115 * analysis.analyzedFiles params
2116 *
2117 * {
2118 * "directories": List<FilePath>
2119 * }
2120 */
2121 class AnalysisAnalyzedFilesParams implements HasToJson {
2122 List<String> _directories;
2123
2124 /**
2125 * A list of the paths of the files that are being analyzed.
2126 */
2127 List<String> get directories => _directories;
2128
2129 /**
2130 * A list of the paths of the files that are being analyzed.
2131 */
2132 void set directories(List<String> value) {
2133 assert(value != null);
2134 this._directories = value;
2135 }
2136
2137 AnalysisAnalyzedFilesParams(List<String> directories) {
2138 this.directories = directories;
2139 }
2140
2141 factory AnalysisAnalyzedFilesParams.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) {
2142 if (json == null) {
2143 json = {};
2144 }
2145 if (json is Map) {
2146 List<String> directories;
2147 if (json.containsKey("directories")) {
2148 directories = jsonDecoder._decodeList(jsonPath + ".directories", json["d irectories"], jsonDecoder._decodeString);
2149 } else {
2150 throw jsonDecoder.missingKey(jsonPath, "directories");
2151 }
2152 return new AnalysisAnalyzedFilesParams(directories);
2153 } else {
2154 throw jsonDecoder.mismatch(jsonPath, "analysis.analyzedFiles params");
2155 }
2156 }
2157
2158 factory AnalysisAnalyzedFilesParams.fromNotification(Notification notification ) {
2159 return new AnalysisAnalyzedFilesParams.fromJson(
2160 new ResponseDecoder(null), "params", notification._params);
2161 }
2162
2163 Map<String, dynamic> toJson() {
2164 Map<String, dynamic> result = {};
2165 result["directories"] = directories;
2166 return result;
2167 }
2168
2169 Notification toNotification() {
2170 return new Notification("analysis.analyzedFiles", toJson());
2171 }
2172
2173 @override
2174 String toString() => JSON.encode(toJson());
2175
2176 @override
2177 bool operator==(other) {
2178 if (other is AnalysisAnalyzedFilesParams) {
2179 return _listEqual(directories, other.directories, (String a, String b) => a == b);
2180 }
2181 return false;
2182 }
2183
2184 @override
2185 int get hashCode {
2186 int hash = 0;
2187 hash = _JenkinsSmiHash.combine(hash, directories.hashCode);
2188 return _JenkinsSmiHash.finish(hash);
2189 }
2190 }
2191
2192 /**
2016 * analysis.errors params 2193 * analysis.errors params
2017 * 2194 *
2018 * { 2195 * {
2019 * "file": FilePath 2196 * "file": FilePath
2020 * "errors": List<AnalysisError> 2197 * "errors": List<AnalysisError>
2021 * } 2198 * }
2022 */ 2199 */
2023 class AnalysisErrorsParams implements HasToJson { 2200 class AnalysisErrorsParams implements HasToJson {
2024 String _file; 2201 String _file;
2025 2202
(...skipping 5422 matching lines...) Expand 10 before | Expand all | Expand 10 after
7448 * OCCURRENCES 7625 * OCCURRENCES
7449 * OUTLINE 7626 * OUTLINE
7450 * OVERRIDES 7627 * OVERRIDES
7451 * } 7628 * }
7452 */ 7629 */
7453 class AnalysisService implements Enum { 7630 class AnalysisService implements Enum {
7454 static const FOLDING = const AnalysisService._("FOLDING"); 7631 static const FOLDING = const AnalysisService._("FOLDING");
7455 7632
7456 static const HIGHLIGHTS = const AnalysisService._("HIGHLIGHTS"); 7633 static const HIGHLIGHTS = const AnalysisService._("HIGHLIGHTS");
7457 7634
7635 /**
7636 * This service is not currently implemented and will become a
7637 * GeneralAnalysisService in a future release.
7638 */
7458 static const INVALIDATE = const AnalysisService._("INVALIDATE"); 7639 static const INVALIDATE = const AnalysisService._("INVALIDATE");
7459 7640
7460 static const NAVIGATION = const AnalysisService._("NAVIGATION"); 7641 static const NAVIGATION = const AnalysisService._("NAVIGATION");
7461 7642
7462 static const OCCURRENCES = const AnalysisService._("OCCURRENCES"); 7643 static const OCCURRENCES = const AnalysisService._("OCCURRENCES");
7463 7644
7464 static const OUTLINE = const AnalysisService._("OUTLINE"); 7645 static const OUTLINE = const AnalysisService._("OUTLINE");
7465 7646
7466 static const OVERRIDES = const AnalysisService._("OVERRIDES"); 7647 static const OVERRIDES = const AnalysisService._("OVERRIDES");
7467 7648
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
9157 int get hashCode { 9338 int get hashCode {
9158 int hash = 0; 9339 int hash = 0;
9159 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); 9340 hash = _JenkinsSmiHash.combine(hash, kind.hashCode);
9160 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); 9341 hash = _JenkinsSmiHash.combine(hash, offset.hashCode);
9161 hash = _JenkinsSmiHash.combine(hash, length.hashCode); 9342 hash = _JenkinsSmiHash.combine(hash, length.hashCode);
9162 return _JenkinsSmiHash.finish(hash); 9343 return _JenkinsSmiHash.finish(hash);
9163 } 9344 }
9164 } 9345 }
9165 9346
9166 /** 9347 /**
9348 * GeneralAnalysisService
9349 *
9350 * enum {
9351 * ANALYZED_FILES
9352 * }
9353 */
9354 class GeneralAnalysisService implements Enum {
9355 static const ANALYZED_FILES = const GeneralAnalysisService._("ANALYZED_FILES") ;
9356
9357 /**
9358 * A list containing all of the enum values that are defined.
9359 */
9360 static const List<GeneralAnalysisService> VALUES = const <GeneralAnalysisServi ce>[ANALYZED_FILES];
9361
9362 final String name;
9363
9364 const GeneralAnalysisService._(this.name);
9365
9366 factory GeneralAnalysisService(String name) {
9367 switch (name) {
9368 case "ANALYZED_FILES":
9369 return ANALYZED_FILES;
9370 }
9371 throw new Exception('Illegal enum value: $name');
9372 }
9373
9374 factory GeneralAnalysisService.fromJson(JsonDecoder jsonDecoder, String jsonPa th, Object json) {
9375 if (json is String) {
9376 try {
9377 return new GeneralAnalysisService(json);
9378 } catch(_) {
9379 // Fall through
9380 }
9381 }
9382 throw jsonDecoder.mismatch(jsonPath, "GeneralAnalysisService");
9383 }
9384
9385 @override
9386 String toString() => "GeneralAnalysisService.$name";
9387
9388 String toJson() => name;
9389 }
9390
9391 /**
9167 * HighlightRegion 9392 * HighlightRegion
9168 * 9393 *
9169 * { 9394 * {
9170 * "type": HighlightRegionType 9395 * "type": HighlightRegionType
9171 * "offset": int 9396 * "offset": int
9172 * "length": int 9397 * "length": int
9173 * } 9398 * }
9174 */ 9399 */
9175 class HighlightRegion implements HasToJson { 9400 class HighlightRegion implements HasToJson {
9176 HighlightRegionType _type; 9401 HighlightRegionType _type;
(...skipping 5634 matching lines...) Expand 10 before | Expand all | Expand 10 after
14811 return false; 15036 return false;
14812 } 15037 }
14813 15038
14814 @override 15039 @override
14815 int get hashCode { 15040 int get hashCode {
14816 int hash = 0; 15041 int hash = 0;
14817 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 15042 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
14818 return _JenkinsSmiHash.finish(hash); 15043 return _JenkinsSmiHash.finish(hash);
14819 } 15044 }
14820 } 15045 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698