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

Side by Side Diff: pkg/analysis_server/test/integration/protocol_matchers.dart

Issue 1372623004: New analysis.implemented notification specification. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Simplify to just list of classes/members that have implementations. Created 5 years, 2 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 /** 9 /**
10 * Matchers for data types defined in the analysis server API 10 * Matchers for data types defined in the analysis server API
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 * "regions": List<HighlightRegion> 391 * "regions": List<HighlightRegion>
392 * } 392 * }
393 */ 393 */
394 final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => new MatchesJson Object( 394 final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => new MatchesJson Object(
395 "analysis.highlights params", { 395 "analysis.highlights params", {
396 "file": isFilePath, 396 "file": isFilePath,
397 "regions": isListOf(isHighlightRegion) 397 "regions": isListOf(isHighlightRegion)
398 })); 398 }));
399 399
400 /** 400 /**
401 * analysis.implemented params
402 *
403 * {
404 * "file": FilePath
405 * "classes": List<ImplementedClass>
406 * "members": List<ImplementedMember>
407 * }
408 */
409 final Matcher isAnalysisImplementedParams = new LazyMatcher(() => new MatchesJso nObject(
410 "analysis.implemented params", {
411 "file": isFilePath,
412 "classes": isListOf(isImplementedClass),
413 "members": isListOf(isImplementedMember)
414 }));
415
416 /**
401 * analysis.invalidate params 417 * analysis.invalidate params
402 * 418 *
403 * { 419 * {
404 * "file": FilePath 420 * "file": FilePath
405 * "offset": int 421 * "offset": int
406 * "length": int 422 * "length": int
407 * "delta": int 423 * "delta": int
408 * } 424 * }
409 */ 425 */
410 final Matcher isAnalysisInvalidateParams = new LazyMatcher(() => new MatchesJson Object( 426 final Matcher isAnalysisInvalidateParams = new LazyMatcher(() => new MatchesJson Object(
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 "generateHints": isBool, 1115 "generateHints": isBool,
1100 "generateLints": isBool 1116 "generateLints": isBool
1101 })); 1117 }));
1102 1118
1103 /** 1119 /**
1104 * AnalysisService 1120 * AnalysisService
1105 * 1121 *
1106 * enum { 1122 * enum {
1107 * FOLDING 1123 * FOLDING
1108 * HIGHLIGHTS 1124 * HIGHLIGHTS
1125 * IMPLEMENTED
1109 * INVALIDATE 1126 * INVALIDATE
1110 * NAVIGATION 1127 * NAVIGATION
1111 * OCCURRENCES 1128 * OCCURRENCES
1112 * OUTLINE 1129 * OUTLINE
1113 * OVERRIDES 1130 * OVERRIDES
1114 * } 1131 * }
1115 */ 1132 */
1116 final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [ 1133 final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [
1117 "FOLDING", 1134 "FOLDING",
1118 "HIGHLIGHTS", 1135 "HIGHLIGHTS",
1136 "IMPLEMENTED",
1119 "INVALIDATE", 1137 "INVALIDATE",
1120 "NAVIGATION", 1138 "NAVIGATION",
1121 "OCCURRENCES", 1139 "OCCURRENCES",
1122 "OUTLINE", 1140 "OUTLINE",
1123 "OVERRIDES" 1141 "OVERRIDES"
1124 ]); 1142 ]);
1125 1143
1126 /** 1144 /**
1127 * AnalysisStatus 1145 * AnalysisStatus
1128 * 1146 *
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 "containingClassDescription": isString, 1629 "containingClassDescription": isString,
1612 "dartdoc": isString, 1630 "dartdoc": isString,
1613 "elementDescription": isString, 1631 "elementDescription": isString,
1614 "elementKind": isString, 1632 "elementKind": isString,
1615 "parameter": isString, 1633 "parameter": isString,
1616 "propagatedType": isString, 1634 "propagatedType": isString,
1617 "staticType": isString 1635 "staticType": isString
1618 })); 1636 }));
1619 1637
1620 /** 1638 /**
1639 * ImplementedClass
1640 *
1641 * {
1642 * "offset": int
1643 * "length": int
1644 * }
1645 */
1646 final Matcher isImplementedClass = new LazyMatcher(() => new MatchesJsonObject(
1647 "ImplementedClass", {
1648 "offset": isInt,
1649 "length": isInt
1650 }));
1651
1652 /**
1653 * ImplementedMember
1654 *
1655 * {
1656 * "offset": int
1657 * "length": int
1658 * }
1659 */
1660 final Matcher isImplementedMember = new LazyMatcher(() => new MatchesJsonObject(
1661 "ImplementedMember", {
1662 "offset": isInt,
1663 "length": isInt
1664 }));
1665
1666 /**
1621 * LinkedEditGroup 1667 * LinkedEditGroup
1622 * 1668 *
1623 * { 1669 * {
1624 * "positions": List<Position> 1670 * "positions": List<Position>
1625 * "length": int 1671 * "length": int
1626 * "suggestions": List<LinkedEditSuggestion> 1672 * "suggestions": List<LinkedEditSuggestion>
1627 * } 1673 * }
1628 */ 1674 */
1629 final Matcher isLinkedEditGroup = new LazyMatcher(() => new MatchesJsonObject( 1675 final Matcher isLinkedEditGroup = new LazyMatcher(() => new MatchesJsonObject(
1630 "LinkedEditGroup", { 1676 "LinkedEditGroup", {
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
2337 * 2383 *
2338 * { 2384 * {
2339 * "newName": String 2385 * "newName": String
2340 * } 2386 * }
2341 */ 2387 */
2342 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 2388 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
2343 "rename options", { 2389 "rename options", {
2344 "newName": isString 2390 "newName": isString
2345 })); 2391 }));
2346 2392
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698