| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 * "kind": RefactoringMethodParameterKind |
| 1531 * "type": String |
| 1532 * "name": String |
| 1533 * "parameters": optional String |
| 1534 * } |
| 1535 */ |
| 1536 final Matcher isRefactoringMethodParameter = new MatchesJsonObject( |
| 1537 "RefactoringMethodParameter", { |
| 1538 "kind": isRefactoringMethodParameterKind, |
| 1539 "type": isString, |
| 1540 "name": isString |
| 1541 }, optionalFields: { |
| 1542 "id": isString, |
| 1543 "parameters": isString |
| 1544 }); |
| 1545 |
| 1546 /** |
| 1547 * RefactoringMethodParameterKind |
| 1548 * |
| 1549 * enum { |
| 1550 * REQUIRED |
| 1551 * POSITIONAL |
| 1552 * NAMED |
| 1553 * } |
| 1554 */ |
| 1555 final Matcher isRefactoringMethodParameterKind = new MatchesEnum("RefactoringMet
hodParameterKind", [ |
| 1556 "REQUIRED", |
| 1557 "POSITIONAL", |
| 1558 "NAMED" |
| 1559 ]); |
| 1560 |
| 1561 /** |
| 1540 * RefactoringProblem | 1562 * RefactoringProblem |
| 1541 * | 1563 * |
| 1542 * { | 1564 * { |
| 1543 * "severity": RefactoringProblemSeverity | 1565 * "severity": RefactoringProblemSeverity |
| 1544 * "message": String | 1566 * "message": String |
| 1545 * "location": Location | 1567 * "location": Location |
| 1546 * } | 1568 * } |
| 1547 */ | 1569 */ |
| 1548 final Matcher isRefactoringProblem = new MatchesJsonObject( | 1570 final Matcher isRefactoringProblem = new MatchesJsonObject( |
| 1549 "RefactoringProblem", { | 1571 "RefactoringProblem", { |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1764 | 1786 |
| 1765 /** | 1787 /** |
| 1766 * extractMethod feedback | 1788 * extractMethod feedback |
| 1767 * | 1789 * |
| 1768 * { | 1790 * { |
| 1769 * "offset": int | 1791 * "offset": int |
| 1770 * "length": int | 1792 * "length": int |
| 1771 * "returnType": String | 1793 * "returnType": String |
| 1772 * "names": List<String> | 1794 * "names": List<String> |
| 1773 * "canCreateGetter": bool | 1795 * "canCreateGetter": bool |
| 1774 * "parameters": List<Parameter> | 1796 * "parameters": List<RefactoringMethodParameter> |
| 1775 * "occurrences": int | 1797 * "occurrences": int |
| 1776 * "offsets": List<int> | 1798 * "offsets": List<int> |
| 1777 * "lengths": List<int> | 1799 * "lengths": List<int> |
| 1778 * } | 1800 * } |
| 1779 */ | 1801 */ |
| 1780 final Matcher isExtractMethodFeedback = new MatchesJsonObject( | 1802 final Matcher isExtractMethodFeedback = new MatchesJsonObject( |
| 1781 "extractMethod feedback", { | 1803 "extractMethod feedback", { |
| 1782 "offset": isInt, | 1804 "offset": isInt, |
| 1783 "length": isInt, | 1805 "length": isInt, |
| 1784 "returnType": isString, | 1806 "returnType": isString, |
| 1785 "names": isListOf(isString), | 1807 "names": isListOf(isString), |
| 1786 "canCreateGetter": isBool, | 1808 "canCreateGetter": isBool, |
| 1787 "parameters": isListOf(isParameter), | 1809 "parameters": isListOf(isRefactoringMethodParameter), |
| 1788 "occurrences": isInt, | 1810 "occurrences": isInt, |
| 1789 "offsets": isListOf(isInt), | 1811 "offsets": isListOf(isInt), |
| 1790 "lengths": isListOf(isInt) | 1812 "lengths": isListOf(isInt) |
| 1791 }); | 1813 }); |
| 1792 | 1814 |
| 1793 /** | 1815 /** |
| 1794 * extractMethod options | 1816 * extractMethod options |
| 1795 * | 1817 * |
| 1796 * { | 1818 * { |
| 1797 * "returnType": String | 1819 * "returnType": String |
| 1798 * "createGetter": bool | 1820 * "createGetter": bool |
| 1799 * "name": String | 1821 * "name": String |
| 1800 * "parameters": List<Parameter> | 1822 * "parameters": List<RefactoringMethodParameter> |
| 1801 * "extractAll": bool | 1823 * "extractAll": bool |
| 1802 * } | 1824 * } |
| 1803 */ | 1825 */ |
| 1804 final Matcher isExtractMethodOptions = new MatchesJsonObject( | 1826 final Matcher isExtractMethodOptions = new MatchesJsonObject( |
| 1805 "extractMethod options", { | 1827 "extractMethod options", { |
| 1806 "returnType": isString, | 1828 "returnType": isString, |
| 1807 "createGetter": isBool, | 1829 "createGetter": isBool, |
| 1808 "name": isString, | 1830 "name": isString, |
| 1809 "parameters": isListOf(isParameter), | 1831 "parameters": isListOf(isRefactoringMethodParameter), |
| 1810 "extractAll": isBool | 1832 "extractAll": isBool |
| 1811 }); | 1833 }); |
| 1812 | 1834 |
| 1813 /** | 1835 /** |
| 1814 * inlineLocalVariable feedback | 1836 * inlineLocalVariable feedback |
| 1815 */ | 1837 */ |
| 1816 final Matcher isInlineLocalVariableFeedback = isNull; | 1838 final Matcher isInlineLocalVariableFeedback = isNull; |
| 1817 | 1839 |
| 1818 /** | 1840 /** |
| 1819 * inlineLocalVariable options | 1841 * inlineLocalVariable options |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1858 * | 1880 * |
| 1859 * { | 1881 * { |
| 1860 * "newName": String | 1882 * "newName": String |
| 1861 * } | 1883 * } |
| 1862 */ | 1884 */ |
| 1863 final Matcher isRenameOptions = new MatchesJsonObject( | 1885 final Matcher isRenameOptions = new MatchesJsonObject( |
| 1864 "rename options", { | 1886 "rename options", { |
| 1865 "newName": isString | 1887 "newName": isString |
| 1866 }); | 1888 }); |
| 1867 | 1889 |
| OLD | NEW |