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

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

Issue 809213003: Add format API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add handler hook and missed classes 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 /** 9 /**
10 * Matchers for data types defined in the analysis server API 10 * Matchers for data types defined in the analysis server API
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 * } 593 * }
594 */ 594 */
595 final Matcher isSearchResultsParams = new LazyMatcher(() => new MatchesJsonObjec t( 595 final Matcher isSearchResultsParams = new LazyMatcher(() => new MatchesJsonObjec t(
596 "search.results params", { 596 "search.results params", {
597 "id": isSearchId, 597 "id": isSearchId,
598 "results": isListOf(isSearchResult), 598 "results": isListOf(isSearchResult),
599 "isLast": isBool 599 "isLast": isBool
600 })); 600 }));
601 601
602 /** 602 /**
603 * edit.format params
604 *
605 * {
606 * "file": FilePath
607 * "selectionOffset": int
608 * "selectionLength": int
609 * }
610 */
611 final Matcher isEditFormatParams = new LazyMatcher(() => new MatchesJsonObject(
612 "edit.format params", {
613 "file": isFilePath,
614 "selectionOffset": isInt,
615 "selectionLength": isInt
616 }));
617
618 /**
619 * edit.format result
620 *
621 * {
622 * "edits": List<SourceEdit>
623 * "selectionOffset": int
624 * "selectionLength": int
625 * }
626 */
627 final Matcher isEditFormatResult = new LazyMatcher(() => new MatchesJsonObject(
628 "edit.format result", {
629 "edits": isListOf(isSourceEdit),
630 "selectionOffset": isInt,
631 "selectionLength": isInt
632 }));
633
634 /**
603 * edit.getAssists params 635 * edit.getAssists params
604 * 636 *
605 * { 637 * {
606 * "file": FilePath 638 * "file": FilePath
607 * "offset": int 639 * "offset": int
608 * "length": int 640 * "length": int
609 * } 641 * }
610 */ 642 */
611 final Matcher isEditGetAssistsParams = new LazyMatcher(() => new MatchesJsonObje ct( 643 final Matcher isEditGetAssistsParams = new LazyMatcher(() => new MatchesJsonObje ct(
612 "edit.getAssists params", { 644 "edit.getAssists params", {
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 * 2141 *
2110 * { 2142 * {
2111 * "newName": String 2143 * "newName": String
2112 * } 2144 * }
2113 */ 2145 */
2114 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 2146 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
2115 "rename options", { 2147 "rename options", {
2116 "newName": isString 2148 "newName": isString
2117 })); 2149 }));
2118 2150
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/integration/integration_test_methods.dart ('k') | pkg/analysis_server/tool/spec/spec_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698