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

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

Issue 537733002: Use typed RefactoringOptions in the Dart version of the protocol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update also Java generator 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 624
625 /** 625 /**
626 * edit.getRefactoring params 626 * edit.getRefactoring params
627 * 627 *
628 * { 628 * {
629 * "kind": RefactoringKind 629 * "kind": RefactoringKind
630 * "file": FilePath 630 * "file": FilePath
631 * "offset": int 631 * "offset": int
632 * "length": int 632 * "length": int
633 * "validateOnly": bool 633 * "validateOnly": bool
634 * "options": optional object 634 * "options": optional RefactoringOptions
635 * } 635 * }
636 */ 636 */
637 final Matcher isEditGetRefactoringParams = new LazyMatcher(() => new MatchesJson Object( 637 final Matcher isEditGetRefactoringParams = new LazyMatcher(() => new MatchesJson Object(
638 "edit.getRefactoring params", { 638 "edit.getRefactoring params", {
639 "kind": isRefactoringKind, 639 "kind": isRefactoringKind,
640 "file": isFilePath, 640 "file": isFilePath,
641 "offset": isInt, 641 "offset": isInt,
642 "length": isInt, 642 "length": isInt,
643 "validateOnly": isBool 643 "validateOnly": isBool
644 }, optionalFields: { 644 }, optionalFields: {
645 "options": isObject 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 object
654 * "change": optional SourceChange 654 * "change": optional SourceChange
655 * "potentialEdits": optional List<String> 655 * "potentialEdits": optional List<String>
(...skipping 870 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 * RefactoringOptions
1537 *
1538 * {
1539 * }
1540 */
1541 final Matcher isRefactoringOptions = new LazyMatcher(() => new MatchesJsonObject (
1542 "RefactoringOptions", null));
1543
1544 /**
1536 * RefactoringMethodParameterKind 1545 * RefactoringMethodParameterKind
1537 * 1546 *
1538 * enum { 1547 * enum {
1539 * REQUIRED 1548 * REQUIRED
1540 * POSITIONAL 1549 * POSITIONAL
1541 * NAMED 1550 * NAMED
1542 * } 1551 * }
1543 */ 1552 */
1544 final Matcher isRefactoringMethodParameterKind = new MatchesEnum("RefactoringMet hodParameterKind", [ 1553 final Matcher isRefactoringMethodParameterKind = new MatchesEnum("RefactoringMet hodParameterKind", [
1545 "REQUIRED", 1554 "REQUIRED",
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 * 1922 *
1914 * { 1923 * {
1915 * "newName": String 1924 * "newName": String
1916 * } 1925 * }
1917 */ 1926 */
1918 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 1927 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
1919 "rename options", { 1928 "rename options", {
1920 "newName": isString 1929 "newName": isString
1921 })); 1930 }));
1922 1931
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698