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

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

Issue 472373002: Support potential edits (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/spec/generate_files". 7 // "pkg/analysis_server/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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 "options": isObject 645 "options": isObject
646 })); 646 }));
647 647
648 /** 648 /**
649 * edit.getRefactoring result 649 * edit.getRefactoring result
650 * 650 *
651 * { 651 * {
652 * "status": List<RefactoringProblem> 652 * "status": List<RefactoringProblem>
653 * "feedback": optional object 653 * "feedback": optional object
654 * "change": optional SourceChange 654 * "change": optional SourceChange
655 * "potentialChanges": optional List<String>
655 * } 656 * }
656 */ 657 */
657 final Matcher isEditGetRefactoringResult = new LazyMatcher(() => new MatchesJson Object( 658 final Matcher isEditGetRefactoringResult = new LazyMatcher(() => new MatchesJson Object(
658 "edit.getRefactoring result", { 659 "edit.getRefactoring result", {
659 "status": isListOf(isRefactoringProblem) 660 "status": isListOf(isRefactoringProblem)
660 }, optionalFields: { 661 }, optionalFields: {
661 "feedback": isObject, 662 "feedback": isObject,
662 "change": isSourceChange 663 "change": isSourceChange,
664 "potentialChanges": isListOf(isString)
663 })); 665 }));
664 666
665 /** 667 /**
666 * debug.createContext params 668 * debug.createContext params
667 * 669 *
668 * { 670 * {
669 * "contextRoot": FilePath 671 * "contextRoot": FilePath
670 * } 672 * }
671 */ 673 */
672 final Matcher isDebugCreateContextParams = new LazyMatcher(() => new MatchesJson Object( 674 final Matcher isDebugCreateContextParams = new LazyMatcher(() => new MatchesJson Object(
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1683 "selection": isPosition 1685 "selection": isPosition
1684 })); 1686 }));
1685 1687
1686 /** 1688 /**
1687 * SourceEdit 1689 * SourceEdit
1688 * 1690 *
1689 * { 1691 * {
1690 * "offset": int 1692 * "offset": int
1691 * "length": int 1693 * "length": int
1692 * "replacement": String 1694 * "replacement": String
1695 * "id": optional String
1693 * } 1696 * }
1694 */ 1697 */
1695 final Matcher isSourceEdit = new LazyMatcher(() => new MatchesJsonObject( 1698 final Matcher isSourceEdit = new LazyMatcher(() => new MatchesJsonObject(
1696 "SourceEdit", { 1699 "SourceEdit", {
1697 "offset": isInt, 1700 "offset": isInt,
1698 "length": isInt, 1701 "length": isInt,
1699 "replacement": isString 1702 "replacement": isString
1703 }, optionalFields: {
1704 "id": isString
1700 })); 1705 }));
1701 1706
1702 /** 1707 /**
1703 * SourceFileEdit 1708 * SourceFileEdit
1704 * 1709 *
1705 * { 1710 * {
1706 * "file": FilePath 1711 * "file": FilePath
1707 * "edits": List<SourceEdit> 1712 * "edits": List<SourceEdit>
1708 * } 1713 * }
1709 */ 1714 */
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 * 1889 *
1885 * { 1890 * {
1886 * "newName": String 1891 * "newName": String
1887 * } 1892 * }
1888 */ 1893 */
1889 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 1894 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
1890 "rename options", { 1895 "rename options", {
1891 "newName": isString 1896 "newName": isString
1892 })); 1897 }));
1893 1898
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698