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

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

Issue 541823004: Decode RefactoringFeedback automatically. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 "validateOnly": isBool 643 "validateOnly": isBool
644 }, optionalFields: { 644 }, optionalFields: {
645 "options": isRefactoringOptions 645 "options": isRefactoringOptions
646 })); 646 }));
647 647
648 /** 648 /**
649 * edit.getRefactoring result 649 * edit.getRefactoring result
650 * 650 *
651 * { 651 * {
652 * "problems": List<RefactoringProblem> 652 * "problems": List<RefactoringProblem>
653 * "feedback": optional object 653 * "feedback": optional RefactoringFeedback
654 * "change": optional SourceChange 654 * "change": optional SourceChange
655 * "potentialEdits": optional List<String> 655 * "potentialEdits": optional List<String>
656 * } 656 * }
657 */ 657 */
658 final Matcher isEditGetRefactoringResult = new LazyMatcher(() => new MatchesJson Object( 658 final Matcher isEditGetRefactoringResult = new LazyMatcher(() => new MatchesJson Object(
659 "edit.getRefactoring result", { 659 "edit.getRefactoring result", {
660 "problems": isListOf(isRefactoringProblem) 660 "problems": isListOf(isRefactoringProblem)
661 }, optionalFields: { 661 }, optionalFields: {
662 "feedback": isObject, 662 "feedback": isRefactoringFeedback,
663 "change": isSourceChange, 663 "change": isSourceChange,
664 "potentialEdits": isListOf(isString) 664 "potentialEdits": isListOf(isString)
665 })); 665 }));
666 666
667 /** 667 /**
668 * debug.createContext params 668 * debug.createContext params
669 * 669 *
670 * { 670 * {
671 * "contextRoot": FilePath 671 * "contextRoot": FilePath
672 * } 672 * }
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 "RefactoringMethodParameter", { 1526 "RefactoringMethodParameter", {
1527 "kind": isRefactoringMethodParameterKind, 1527 "kind": isRefactoringMethodParameterKind,
1528 "type": isString, 1528 "type": isString,
1529 "name": isString 1529 "name": isString
1530 }, optionalFields: { 1530 }, optionalFields: {
1531 "id": isString, 1531 "id": isString,
1532 "parameters": isString 1532 "parameters": isString
1533 })); 1533 }));
1534 1534
1535 /** 1535 /**
1536 * RefactoringFeedback
1537 *
1538 * {
1539 * }
1540 */
1541 final Matcher isRefactoringFeedback = new LazyMatcher(() => new MatchesJsonObjec t(
1542 "RefactoringFeedback", null));
1543
1544 /**
1536 * RefactoringOptions 1545 * RefactoringOptions
1537 * 1546 *
1538 * { 1547 * {
1539 * } 1548 * }
1540 */ 1549 */
1541 final Matcher isRefactoringOptions = new LazyMatcher(() => new MatchesJsonObject ( 1550 final Matcher isRefactoringOptions = new LazyMatcher(() => new MatchesJsonObject (
1542 "RefactoringOptions", null)); 1551 "RefactoringOptions", null));
1543 1552
1544 /** 1553 /**
1545 * RefactoringMethodParameterKind 1554 * RefactoringMethodParameterKind
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1922 * 1931 *
1923 * { 1932 * {
1924 * "newName": String 1933 * "newName": String
1925 * } 1934 * }
1926 */ 1935 */
1927 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 1936 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
1928 "rename options", { 1937 "rename options", {
1929 "newName": isString 1938 "newName": isString
1930 })); 1939 }));
1931 1940
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/integration/integration_test_methods.dart ('k') | pkg/analysis_server/test/protocol_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698