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

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

Issue 837793003: Include required parameter names when completing a method call. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/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 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 * "isDeprecated": bool 1054 * "isDeprecated": bool
1055 * "isPotential": bool 1055 * "isPotential": bool
1056 * "docSummary": optional String 1056 * "docSummary": optional String
1057 * "docComplete": optional String 1057 * "docComplete": optional String
1058 * "declaringType": optional String 1058 * "declaringType": optional String
1059 * "element": optional Element 1059 * "element": optional Element
1060 * "returnType": optional String 1060 * "returnType": optional String
1061 * "parameterNames": optional List<String> 1061 * "parameterNames": optional List<String>
1062 * "parameterTypes": optional List<String> 1062 * "parameterTypes": optional List<String>
1063 * "requiredParameterCount": optional int 1063 * "requiredParameterCount": optional int
1064 * "positionalParameterCount": optional int 1064 * "hasNamedParameters": optional bool
1065 * "parameterName": optional String 1065 * "parameterName": optional String
1066 * "parameterType": optional String 1066 * "parameterType": optional String
1067 * } 1067 * }
1068 */ 1068 */
1069 final Matcher isCompletionSuggestion = new LazyMatcher(() => new MatchesJsonObje ct( 1069 final Matcher isCompletionSuggestion = new LazyMatcher(() => new MatchesJsonObje ct(
1070 "CompletionSuggestion", { 1070 "CompletionSuggestion", {
1071 "kind": isCompletionSuggestionKind, 1071 "kind": isCompletionSuggestionKind,
1072 "relevance": isCompletionRelevance, 1072 "relevance": isCompletionRelevance,
1073 "completion": isString, 1073 "completion": isString,
1074 "selectionOffset": isInt, 1074 "selectionOffset": isInt,
1075 "selectionLength": isInt, 1075 "selectionLength": isInt,
1076 "isDeprecated": isBool, 1076 "isDeprecated": isBool,
1077 "isPotential": isBool 1077 "isPotential": isBool
1078 }, optionalFields: { 1078 }, optionalFields: {
1079 "docSummary": isString, 1079 "docSummary": isString,
1080 "docComplete": isString, 1080 "docComplete": isString,
1081 "declaringType": isString, 1081 "declaringType": isString,
1082 "element": isElement, 1082 "element": isElement,
1083 "returnType": isString, 1083 "returnType": isString,
1084 "parameterNames": isListOf(isString), 1084 "parameterNames": isListOf(isString),
1085 "parameterTypes": isListOf(isString), 1085 "parameterTypes": isListOf(isString),
1086 "requiredParameterCount": isInt, 1086 "requiredParameterCount": isInt,
1087 "positionalParameterCount": isInt, 1087 "hasNamedParameters": isBool,
1088 "parameterName": isString, 1088 "parameterName": isString,
1089 "parameterType": isString 1089 "parameterType": isString
1090 })); 1090 }));
1091 1091
1092 /** 1092 /**
1093 * CompletionSuggestionKind 1093 * CompletionSuggestionKind
1094 * 1094 *
1095 * enum { 1095 * enum {
1096 * ARGUMENT_LIST 1096 * ARGUMENT_LIST
1097 * IMPORT 1097 * IMPORT
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 * 2109 *
2110 * { 2110 * {
2111 * "newName": String 2111 * "newName": String
2112 * } 2112 * }
2113 */ 2113 */
2114 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 2114 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
2115 "rename options", { 2115 "rename options", {
2116 "newName": isString 2116 "newName": isString
2117 })); 2117 }));
2118 2118
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698