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

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: 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 * "implementedElements": List<ImplementedElement>
406 * }
407 */
408 final Matcher isAnalysisImplementedParams = new LazyMatcher(() => new MatchesJso nObject(
409 "analysis.implemented params", {
410 "file": isFilePath,
411 "implementedElements": isListOf(isImplementedElement)
412 }));
413
414 /**
401 * analysis.invalidate params 415 * analysis.invalidate params
402 * 416 *
403 * { 417 * {
404 * "file": FilePath 418 * "file": FilePath
405 * "offset": int 419 * "offset": int
406 * "length": int 420 * "length": int
407 * "delta": int 421 * "delta": int
408 * } 422 * }
409 */ 423 */
410 final Matcher isAnalysisInvalidateParams = new LazyMatcher(() => new MatchesJson Object( 424 final Matcher isAnalysisInvalidateParams = new LazyMatcher(() => new MatchesJson Object(
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 "generateHints": isBool, 1113 "generateHints": isBool,
1100 "generateLints": isBool 1114 "generateLints": isBool
1101 })); 1115 }));
1102 1116
1103 /** 1117 /**
1104 * AnalysisService 1118 * AnalysisService
1105 * 1119 *
1106 * enum { 1120 * enum {
1107 * FOLDING 1121 * FOLDING
1108 * HIGHLIGHTS 1122 * HIGHLIGHTS
1123 * IMPLEMENTED
1109 * INVALIDATE 1124 * INVALIDATE
1110 * NAVIGATION 1125 * NAVIGATION
1111 * OCCURRENCES 1126 * OCCURRENCES
1112 * OUTLINE 1127 * OUTLINE
1113 * OVERRIDES 1128 * OVERRIDES
1114 * } 1129 * }
1115 */ 1130 */
1116 final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [ 1131 final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [
1117 "FOLDING", 1132 "FOLDING",
1118 "HIGHLIGHTS", 1133 "HIGHLIGHTS",
1134 "IMPLEMENTED",
1119 "INVALIDATE", 1135 "INVALIDATE",
1120 "NAVIGATION", 1136 "NAVIGATION",
1121 "OCCURRENCES", 1137 "OCCURRENCES",
1122 "OUTLINE", 1138 "OUTLINE",
1123 "OVERRIDES" 1139 "OVERRIDES"
1124 ]); 1140 ]);
1125 1141
1126 /** 1142 /**
1127 * AnalysisStatus 1143 * AnalysisStatus
1128 * 1144 *
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 "containingClassDescription": isString, 1627 "containingClassDescription": isString,
1612 "dartdoc": isString, 1628 "dartdoc": isString,
1613 "elementDescription": isString, 1629 "elementDescription": isString,
1614 "elementKind": isString, 1630 "elementKind": isString,
1615 "parameter": isString, 1631 "parameter": isString,
1616 "propagatedType": isString, 1632 "propagatedType": isString,
1617 "staticType": isString 1633 "staticType": isString
1618 })); 1634 }));
1619 1635
1620 /** 1636 /**
1637 * ImplementedElement
1638 *
1639 * {
1640 * "offset": int
1641 * "length": int
1642 * "implementations": optional List<Implementation>
1643 * }
1644 */
1645 final Matcher isImplementedElement = new LazyMatcher(() => new MatchesJsonObject (
1646 "ImplementedElement", {
1647 "offset": isInt,
1648 "length": isInt
1649 }, optionalFields: {
1650 "implementations": isListOf(isImplementation)
1651 }));
1652
1653 /**
1654 * Implementation
1655 *
1656 * {
1657 * "element": Element
1658 * "className": optional String
1659 * }
1660 */
1661 final Matcher isImplementation = new LazyMatcher(() => new MatchesJsonObject(
1662 "Implementation", {
1663 "element": isElement
1664 }, optionalFields: {
1665 "className": isString
1666 }));
1667
1668 /**
1621 * LinkedEditGroup 1669 * LinkedEditGroup
1622 * 1670 *
1623 * { 1671 * {
1624 * "positions": List<Position> 1672 * "positions": List<Position>
1625 * "length": int 1673 * "length": int
1626 * "suggestions": List<LinkedEditSuggestion> 1674 * "suggestions": List<LinkedEditSuggestion>
1627 * } 1675 * }
1628 */ 1676 */
1629 final Matcher isLinkedEditGroup = new LazyMatcher(() => new MatchesJsonObject( 1677 final Matcher isLinkedEditGroup = new LazyMatcher(() => new MatchesJsonObject(
1630 "LinkedEditGroup", { 1678 "LinkedEditGroup", {
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
2337 * 2385 *
2338 * { 2386 * {
2339 * "newName": String 2387 * "newName": String
2340 * } 2388 * }
2341 */ 2389 */
2342 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 2390 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
2343 "rename options", { 2391 "rename options", {
2344 "newName": isString 2392 "newName": isString
2345 })); 2393 }));
2346 2394
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698