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

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

Issue 470723003: Proposal for RefactoringMethodParameter. (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 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 * "className": String 1479 * "className": String
1480 * } 1480 * }
1481 */ 1481 */
1482 final Matcher isOverriddenMember = new MatchesJsonObject( 1482 final Matcher isOverriddenMember = new MatchesJsonObject(
1483 "OverriddenMember", { 1483 "OverriddenMember", {
1484 "element": isElement, 1484 "element": isElement,
1485 "className": isString 1485 "className": isString
1486 }); 1486 });
1487 1487
1488 /** 1488 /**
1489 * Parameter
1490 *
1491 * {
1492 * "type": String
1493 * "name": String
1494 * }
1495 */
1496 final Matcher isParameter = new MatchesJsonObject(
1497 "Parameter", {
1498 "type": isString,
1499 "name": isString
1500 });
1501
1502 /**
1503 * Position 1489 * Position
1504 * 1490 *
1505 * { 1491 * {
1506 * "file": FilePath 1492 * "file": FilePath
1507 * "offset": int 1493 * "offset": int
1508 * } 1494 * }
1509 */ 1495 */
1510 final Matcher isPosition = new MatchesJsonObject( 1496 final Matcher isPosition = new MatchesJsonObject(
1511 "Position", { 1497 "Position", {
1512 "file": isFilePath, 1498 "file": isFilePath,
(...skipping 17 matching lines...) Expand all
1530 "CONVERT_GETTER_TO_METHOD", 1516 "CONVERT_GETTER_TO_METHOD",
1531 "CONVERT_METHOD_TO_GETTER", 1517 "CONVERT_METHOD_TO_GETTER",
1532 "EXTRACT_LOCAL_VARIABLE", 1518 "EXTRACT_LOCAL_VARIABLE",
1533 "EXTRACT_METHOD", 1519 "EXTRACT_METHOD",
1534 "INLINE_LOCAL_VARIABLE", 1520 "INLINE_LOCAL_VARIABLE",
1535 "INLINE_METHOD", 1521 "INLINE_METHOD",
1536 "RENAME" 1522 "RENAME"
1537 ]); 1523 ]);
1538 1524
1539 /** 1525 /**
1526 * RefactoringMethodParameter
1527 *
1528 * {
1529 * "id": optional String
1530 * "type": String
1531 * "name": String
1532 * }
1533 */
1534 final Matcher isRefactoringMethodParameter = new MatchesJsonObject(
1535 "RefactoringMethodParameter", {
1536 "type": isString,
1537 "name": isString
1538 }, optionalFields: {
1539 "id": isString
1540 });
1541
1542 /**
1540 * RefactoringProblem 1543 * RefactoringProblem
1541 * 1544 *
1542 * { 1545 * {
1543 * "severity": RefactoringProblemSeverity 1546 * "severity": RefactoringProblemSeverity
1544 * "message": String 1547 * "message": String
1545 * "location": Location 1548 * "location": Location
1546 * } 1549 * }
1547 */ 1550 */
1548 final Matcher isRefactoringProblem = new MatchesJsonObject( 1551 final Matcher isRefactoringProblem = new MatchesJsonObject(
1549 "RefactoringProblem", { 1552 "RefactoringProblem", {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1764 1767
1765 /** 1768 /**
1766 * extractMethod feedback 1769 * extractMethod feedback
1767 * 1770 *
1768 * { 1771 * {
1769 * "offset": int 1772 * "offset": int
1770 * "length": int 1773 * "length": int
1771 * "returnType": String 1774 * "returnType": String
1772 * "names": List<String> 1775 * "names": List<String>
1773 * "canCreateGetter": bool 1776 * "canCreateGetter": bool
1774 * "parameters": List<Parameter> 1777 * "parameters": List<RefactoringMethodParameter>
1775 * "occurrences": int 1778 * "occurrences": int
1776 * "offsets": List<int> 1779 * "offsets": List<int>
1777 * "lengths": List<int> 1780 * "lengths": List<int>
1778 * } 1781 * }
1779 */ 1782 */
1780 final Matcher isExtractMethodFeedback = new MatchesJsonObject( 1783 final Matcher isExtractMethodFeedback = new MatchesJsonObject(
1781 "extractMethod feedback", { 1784 "extractMethod feedback", {
1782 "offset": isInt, 1785 "offset": isInt,
1783 "length": isInt, 1786 "length": isInt,
1784 "returnType": isString, 1787 "returnType": isString,
1785 "names": isListOf(isString), 1788 "names": isListOf(isString),
1786 "canCreateGetter": isBool, 1789 "canCreateGetter": isBool,
1787 "parameters": isListOf(isParameter), 1790 "parameters": isListOf(isRefactoringMethodParameter),
1788 "occurrences": isInt, 1791 "occurrences": isInt,
1789 "offsets": isListOf(isInt), 1792 "offsets": isListOf(isInt),
1790 "lengths": isListOf(isInt) 1793 "lengths": isListOf(isInt)
1791 }); 1794 });
1792 1795
1793 /** 1796 /**
1794 * extractMethod options 1797 * extractMethod options
1795 * 1798 *
1796 * { 1799 * {
1797 * "returnType": String 1800 * "returnType": String
1798 * "createGetter": bool 1801 * "createGetter": bool
1799 * "name": String 1802 * "name": String
1800 * "parameters": List<Parameter> 1803 * "parameters": List<RefactoringMethodParameter>
1801 * "extractAll": bool 1804 * "extractAll": bool
1802 * } 1805 * }
1803 */ 1806 */
1804 final Matcher isExtractMethodOptions = new MatchesJsonObject( 1807 final Matcher isExtractMethodOptions = new MatchesJsonObject(
1805 "extractMethod options", { 1808 "extractMethod options", {
1806 "returnType": isString, 1809 "returnType": isString,
1807 "createGetter": isBool, 1810 "createGetter": isBool,
1808 "name": isString, 1811 "name": isString,
1809 "parameters": isListOf(isParameter), 1812 "parameters": isListOf(isRefactoringMethodParameter),
1810 "extractAll": isBool 1813 "extractAll": isBool
1811 }); 1814 });
1812 1815
1813 /** 1816 /**
1814 * inlineLocalVariable feedback 1817 * inlineLocalVariable feedback
1815 */ 1818 */
1816 final Matcher isInlineLocalVariableFeedback = isNull; 1819 final Matcher isInlineLocalVariableFeedback = isNull;
1817 1820
1818 /** 1821 /**
1819 * inlineLocalVariable options 1822 * inlineLocalVariable options
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 * 1861 *
1859 * { 1862 * {
1860 * "newName": String 1863 * "newName": String
1861 * } 1864 * }
1862 */ 1865 */
1863 final Matcher isRenameOptions = new MatchesJsonObject( 1866 final Matcher isRenameOptions = new MatchesJsonObject(
1864 "rename options", { 1867 "rename options", {
1865 "newName": isString 1868 "newName": isString
1866 }); 1869 });
1867 1870
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698