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

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

Issue 2917943002: Postfix completion (Closed)
Patch Set: typo Created 3 years, 5 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 * 842 *
843 * { 843 * {
844 * "file": FilePath 844 * "file": FilePath
845 * "offset": int 845 * "offset": int
846 * } 846 * }
847 */ 847 */
848 final Matcher isPosition = new LazyMatcher(() => 848 final Matcher isPosition = new LazyMatcher(() =>
849 new MatchesJsonObject("Position", {"file": isFilePath, "offset": isInt})); 849 new MatchesJsonObject("Position", {"file": isFilePath, "offset": isInt}));
850 850
851 /** 851 /**
852 * PostfixTemplateDescriptor
853 *
854 * {
855 * "name": String
856 * "key": String
857 * "example": String
858 * }
859 */
860 final Matcher isPostfixTemplateDescriptor = new LazyMatcher(() =>
861 new MatchesJsonObject("PostfixTemplateDescriptor",
862 {"name": isString, "key": isString, "example": isString}));
863
864 /**
852 * PubStatus 865 * PubStatus
853 * 866 *
854 * { 867 * {
855 * "isListingPackageDirs": bool 868 * "isListingPackageDirs": bool
856 * } 869 * }
857 */ 870 */
858 final Matcher isPubStatus = new LazyMatcher( 871 final Matcher isPubStatus = new LazyMatcher(
859 () => new MatchesJsonObject("PubStatus", {"isListingPackageDirs": isBool})); 872 () => new MatchesJsonObject("PubStatus", {"isListingPackageDirs": isBool}));
860 873
861 /** 874 /**
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
1813 * 1826 *
1814 * { 1827 * {
1815 * "fixes": List<AnalysisErrorFixes> 1828 * "fixes": List<AnalysisErrorFixes>
1816 * } 1829 * }
1817 */ 1830 */
1818 final Matcher isEditGetFixesResult = new LazyMatcher(() => 1831 final Matcher isEditGetFixesResult = new LazyMatcher(() =>
1819 new MatchesJsonObject( 1832 new MatchesJsonObject(
1820 "edit.getFixes result", {"fixes": isListOf(isAnalysisErrorFixes)})); 1833 "edit.getFixes result", {"fixes": isListOf(isAnalysisErrorFixes)}));
1821 1834
1822 /** 1835 /**
1836 * edit.getPostfixCompletion params
1837 *
1838 * {
1839 * "file": FilePath
1840 * "key": String
1841 * "offset": int
1842 * }
1843 */
1844 final Matcher isEditGetPostfixCompletionParams = new LazyMatcher(() =>
1845 new MatchesJsonObject("edit.getPostfixCompletion params",
1846 {"file": isFilePath, "key": isString, "offset": isInt}));
1847
1848 /**
1849 * edit.getPostfixCompletion result
1850 *
1851 * {
1852 * "change": SourceChange
1853 * }
1854 */
1855 final Matcher isEditGetPostfixCompletionResult = new LazyMatcher(() =>
1856 new MatchesJsonObject(
1857 "edit.getPostfixCompletion result", {"change": isSourceChange}));
1858
1859 /**
1823 * edit.getRefactoring params 1860 * edit.getRefactoring params
1824 * 1861 *
1825 * { 1862 * {
1826 * "kind": RefactoringKind 1863 * "kind": RefactoringKind
1827 * "file": FilePath 1864 * "file": FilePath
1828 * "offset": int 1865 * "offset": int
1829 * "length": int 1866 * "length": int
1830 * "validateOnly": bool 1867 * "validateOnly": bool
1831 * "options": optional RefactoringOptions 1868 * "options": optional RefactoringOptions
1832 * } 1869 * }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 * { 1920 * {
1884 * "change": SourceChange 1921 * "change": SourceChange
1885 * "whitespaceOnly": bool 1922 * "whitespaceOnly": bool
1886 * } 1923 * }
1887 */ 1924 */
1888 final Matcher isEditGetStatementCompletionResult = new LazyMatcher(() => 1925 final Matcher isEditGetStatementCompletionResult = new LazyMatcher(() =>
1889 new MatchesJsonObject("edit.getStatementCompletion result", 1926 new MatchesJsonObject("edit.getStatementCompletion result",
1890 {"change": isSourceChange, "whitespaceOnly": isBool})); 1927 {"change": isSourceChange, "whitespaceOnly": isBool}));
1891 1928
1892 /** 1929 /**
1930 * edit.isPostfixCompletionApplicable params
1931 *
1932 * {
1933 * "file": FilePath
1934 * "key": String
1935 * "offset": int
1936 * }
1937 */
1938 final Matcher isEditIsPostfixCompletionApplicableParams = new LazyMatcher(() =>
1939 new MatchesJsonObject("edit.isPostfixCompletionApplicable params",
1940 {"file": isFilePath, "key": isString, "offset": isInt}));
1941
1942 /**
1943 * edit.isPostfixCompletionApplicable result
1944 *
1945 * {
1946 * "value": bool
1947 * }
1948 */
1949 final Matcher isEditIsPostfixCompletionApplicableResult = new LazyMatcher(() =>
1950 new MatchesJsonObject(
1951 "edit.isPostfixCompletionApplicable result", {"value": isBool}));
1952
1953 /**
1954 * edit.listPostfixCompletionTemplates params
1955 */
1956 final Matcher isEditListPostfixCompletionTemplatesParams = isNull;
1957
1958 /**
1959 * edit.listPostfixCompletionTemplates result
1960 *
1961 * {
1962 * "templates": List<PostfixTemplateDescriptor>
1963 * }
1964 */
1965 final Matcher isEditListPostfixCompletionTemplatesResult = new LazyMatcher(() =>
1966 new MatchesJsonObject("edit.listPostfixCompletionTemplates result",
1967 {"templates": isListOf(isPostfixTemplateDescriptor)}));
1968
1969 /**
1893 * edit.organizeDirectives params 1970 * edit.organizeDirectives params
1894 * 1971 *
1895 * { 1972 * {
1896 * "file": FilePath 1973 * "file": FilePath
1897 * } 1974 * }
1898 */ 1975 */
1899 final Matcher isEditOrganizeDirectivesParams = new LazyMatcher(() => 1976 final Matcher isEditOrganizeDirectivesParams = new LazyMatcher(() =>
1900 new MatchesJsonObject( 1977 new MatchesJsonObject(
1901 "edit.organizeDirectives params", {"file": isFilePath})); 1978 "edit.organizeDirectives params", {"file": isFilePath}));
1902 1979
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
2398 * server.status params 2475 * server.status params
2399 * 2476 *
2400 * { 2477 * {
2401 * "analysis": optional AnalysisStatus 2478 * "analysis": optional AnalysisStatus
2402 * "pub": optional PubStatus 2479 * "pub": optional PubStatus
2403 * } 2480 * }
2404 */ 2481 */
2405 final Matcher isServerStatusParams = new LazyMatcher(() => 2482 final Matcher isServerStatusParams = new LazyMatcher(() =>
2406 new MatchesJsonObject("server.status params", null, 2483 new MatchesJsonObject("server.status params", null,
2407 optionalFields: {"analysis": isAnalysisStatus, "pub": isPubStatus})); 2484 optionalFields: {"analysis": isAnalysisStatus, "pub": isPubStatus}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698