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

Unified Diff: pkg/analysis_server/test/integration/support/protocol_matchers.dart

Issue 2917943002: Postfix completion (Closed)
Patch Set: typo Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/integration/support/protocol_matchers.dart
diff --git a/pkg/analysis_server/test/integration/support/protocol_matchers.dart b/pkg/analysis_server/test/integration/support/protocol_matchers.dart
index dbbc6574d6da4066ceb2d0a462feeee06cd912a5..daba1b742a0115337b1d54fd2caa93dc9ebc3654 100644
--- a/pkg/analysis_server/test/integration/support/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/support/protocol_matchers.dart
@@ -849,6 +849,19 @@ final Matcher isPosition = new LazyMatcher(() =>
new MatchesJsonObject("Position", {"file": isFilePath, "offset": isInt}));
/**
+ * PostfixTemplateDescriptor
+ *
+ * {
+ * "name": String
+ * "key": String
+ * "example": String
+ * }
+ */
+final Matcher isPostfixTemplateDescriptor = new LazyMatcher(() =>
+ new MatchesJsonObject("PostfixTemplateDescriptor",
+ {"name": isString, "key": isString, "example": isString}));
+
+/**
* PubStatus
*
* {
@@ -1820,6 +1833,30 @@ final Matcher isEditGetFixesResult = new LazyMatcher(() =>
"edit.getFixes result", {"fixes": isListOf(isAnalysisErrorFixes)}));
/**
+ * edit.getPostfixCompletion params
+ *
+ * {
+ * "file": FilePath
+ * "key": String
+ * "offset": int
+ * }
+ */
+final Matcher isEditGetPostfixCompletionParams = new LazyMatcher(() =>
+ new MatchesJsonObject("edit.getPostfixCompletion params",
+ {"file": isFilePath, "key": isString, "offset": isInt}));
+
+/**
+ * edit.getPostfixCompletion result
+ *
+ * {
+ * "change": SourceChange
+ * }
+ */
+final Matcher isEditGetPostfixCompletionResult = new LazyMatcher(() =>
+ new MatchesJsonObject(
+ "edit.getPostfixCompletion result", {"change": isSourceChange}));
+
+/**
* edit.getRefactoring params
*
* {
@@ -1890,6 +1927,46 @@ final Matcher isEditGetStatementCompletionResult = new LazyMatcher(() =>
{"change": isSourceChange, "whitespaceOnly": isBool}));
/**
+ * edit.isPostfixCompletionApplicable params
+ *
+ * {
+ * "file": FilePath
+ * "key": String
+ * "offset": int
+ * }
+ */
+final Matcher isEditIsPostfixCompletionApplicableParams = new LazyMatcher(() =>
+ new MatchesJsonObject("edit.isPostfixCompletionApplicable params",
+ {"file": isFilePath, "key": isString, "offset": isInt}));
+
+/**
+ * edit.isPostfixCompletionApplicable result
+ *
+ * {
+ * "value": bool
+ * }
+ */
+final Matcher isEditIsPostfixCompletionApplicableResult = new LazyMatcher(() =>
+ new MatchesJsonObject(
+ "edit.isPostfixCompletionApplicable result", {"value": isBool}));
+
+/**
+ * edit.listPostfixCompletionTemplates params
+ */
+final Matcher isEditListPostfixCompletionTemplatesParams = isNull;
+
+/**
+ * edit.listPostfixCompletionTemplates result
+ *
+ * {
+ * "templates": List<PostfixTemplateDescriptor>
+ * }
+ */
+final Matcher isEditListPostfixCompletionTemplatesResult = new LazyMatcher(() =>
+ new MatchesJsonObject("edit.listPostfixCompletionTemplates result",
+ {"templates": isListOf(isPostfixTemplateDescriptor)}));
+
+/**
* edit.organizeDirectives params
*
* {

Powered by Google App Engine
This is Rietveld 408576698