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

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

Issue 2784673003: Add getStatementCompletion to the API spec (Closed)
Patch Set: Add experimental attribute Created 3 years, 8 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) 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/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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 "initialProblems": isListOf(isRefactoringProblem), 802 "initialProblems": isListOf(isRefactoringProblem),
803 "optionsProblems": isListOf(isRefactoringProblem), 803 "optionsProblems": isListOf(isRefactoringProblem),
804 "finalProblems": isListOf(isRefactoringProblem) 804 "finalProblems": isListOf(isRefactoringProblem)
805 }, optionalFields: { 805 }, optionalFields: {
806 "feedback": isRefactoringFeedback, 806 "feedback": isRefactoringFeedback,
807 "change": isSourceChange, 807 "change": isSourceChange,
808 "potentialEdits": isListOf(isString) 808 "potentialEdits": isListOf(isString)
809 })); 809 }));
810 810
811 /** 811 /**
812 * edit.getStatementCompletion params
813 *
814 * {
815 * "file": FilePath
816 * "offset": int
817 * }
818 */
819 final Matcher isEditGetStatementCompletionParams = new LazyMatcher(() =>
820 new MatchesJsonObject("edit.getStatementCompletion params",
821 {"file": isFilePath, "offset": isInt}));
822
823 /**
824 * edit.getStatementCompletion result
825 *
826 * {
827 * "change": SourceChange
828 * "whitespaceOnly": bool
829 * }
830 */
831 final Matcher isEditGetStatementCompletionResult = new LazyMatcher(() =>
832 new MatchesJsonObject("edit.getStatementCompletion result",
833 {"change": isSourceChange, "whitespaceOnly": isBool}));
834
835 /**
812 * edit.sortMembers params 836 * edit.sortMembers params
813 * 837 *
814 * { 838 * {
815 * "file": FilePath 839 * "file": FilePath
816 * } 840 * }
817 */ 841 */
818 final Matcher isEditSortMembersParams = new LazyMatcher(() => 842 final Matcher isEditSortMembersParams = new LazyMatcher(() =>
819 new MatchesJsonObject("edit.sortMembers params", {"file": isFilePath})); 843 new MatchesJsonObject("edit.sortMembers params", {"file": isFilePath}));
820 844
821 /** 845 /**
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 2340
2317 /** 2341 /**
2318 * rename options 2342 * rename options
2319 * 2343 *
2320 * { 2344 * {
2321 * "newName": String 2345 * "newName": String
2322 * } 2346 * }
2323 */ 2347 */
2324 final Matcher isRenameOptions = new LazyMatcher( 2348 final Matcher isRenameOptions = new LazyMatcher(
2325 () => new MatchesJsonObject("rename options", {"newName": isString})); 2349 () => new MatchesJsonObject("rename options", {"newName": isString}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698