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

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

Issue 2972473002: Run the generator after updates to spec (Closed)
Patch Set: 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 daba1b742a0115337b1d54fd2caa93dc9ebc3654..e6c2f2729d7cc77ac069c830dbbbd237fbf6ff10 100644
--- a/pkg/analysis_server/test/integration/support/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/support/protocol_matchers.dart
@@ -685,6 +685,24 @@ final Matcher isImplementedMember = new LazyMatcher(() => new MatchesJsonObject(
"ImplementedMember", {"offset": isInt, "length": isInt}));
/**
+ * ImportedElements
+ *
+ * {
+ * "path": FilePath
+ * "uri": String
+ * "prefix": String
+ * "elements": List<String>
+ * }
+ */
+final Matcher isImportedElements =
+ new LazyMatcher(() => new MatchesJsonObject("ImportedElements", {
+ "path": isFilePath,
+ "uri": isString,
+ "prefix": isString,
+ "elements": isListOf(isString)
+ }));
+
+/**
* LinkedEditGroup
*
* {
@@ -1009,6 +1027,7 @@ final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject(
* FORMAT_INVALID_FILE
* FORMAT_WITH_ERRORS
* GET_ERRORS_INVALID_FILE
+ * GET_IMPORTED_ELEMENTS_INVALID_FILE
* GET_NAVIGATION_INVALID_FILE
* GET_REACHABLE_SOURCES_INVALID_FILE
* INVALID_ANALYSIS_ROOT
@@ -1036,6 +1055,7 @@ final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [
"FORMAT_INVALID_FILE",
"FORMAT_WITH_ERRORS",
"GET_ERRORS_INVALID_FILE",
+ "GET_IMPORTED_ELEMENTS_INVALID_FILE",
"GET_NAVIGATION_INVALID_FILE",
"GET_REACHABLE_SOURCES_INVALID_FILE",
"INVALID_ANALYSIS_ROOT",
@@ -1275,6 +1295,31 @@ final Matcher isAnalysisGetHoverResult = new LazyMatcher(() =>
"analysis.getHover result", {"hovers": isListOf(isHoverInformation)}));
/**
+ * analysis.getImportedElements params
+ *
+ * {
+ * "file": FilePath
+ * "offset": int
+ * "length": int
+ * }
+ */
+final Matcher isAnalysisGetImportedElementsParams = new LazyMatcher(() =>
+ new MatchesJsonObject("analysis.getImportedElements params",
+ {"file": isFilePath, "offset": isInt, "length": isInt}));
+
+/**
+ * analysis.getImportedElements result
+ *
+ * {
+ * "elements": List<ImportedElements>
+ * "complete": bool
+ * }
+ */
+final Matcher isAnalysisGetImportedElementsResult = new LazyMatcher(() =>
+ new MatchesJsonObject("analysis.getImportedElements result",
+ {"elements": isListOf(isImportedElements), "complete": isBool}));
+
+/**
* analysis.getLibraryDependencies params
*/
final Matcher isAnalysisGetLibraryDependenciesParams = isNull;
@@ -1927,6 +1972,30 @@ final Matcher isEditGetStatementCompletionResult = new LazyMatcher(() =>
{"change": isSourceChange, "whitespaceOnly": isBool}));
/**
+ * edit.importElements params
+ *
+ * {
+ * "file": FilePath
+ * "elements": List<ImportedElements>
+ * }
+ */
+final Matcher isEditImportElementsParams = new LazyMatcher(() =>
+ new MatchesJsonObject("edit.importElements params",
+ {"file": isFilePath, "elements": isListOf(isImportedElements)}));
+
+/**
+ * edit.importElements result
+ *
+ * {
+ * "edits": List<SourceEdit>
+ * "complete": bool
+ * }
+ */
+final Matcher isEditImportElementsResult = new LazyMatcher(() =>
+ new MatchesJsonObject("edit.importElements result",
+ {"edits": isListOf(isSourceEdit), "complete": isBool}));
+
+/**
* edit.isPostfixCompletionApplicable params
*
* {

Powered by Google App Engine
This is Rietveld 408576698