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

Unified Diff: pkg/analysis_server/test/integration/integration_test_methods.dart

Issue 1372623004: New analysis.implemented notification specification. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Simplify to just list of classes/members that have implementations. Created 5 years, 3 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/integration_test_methods.dart
diff --git a/pkg/analysis_server/test/integration/integration_test_methods.dart b/pkg/analysis_server/test/integration/integration_test_methods.dart
index f6aa68d4a8981044b6745f1f76b69ea5771817a5..836f884ea943595032654cd1556816550514fe40 100644
--- a/pkg/analysis_server/test/integration/integration_test_methods.dart
+++ b/pkg/analysis_server/test/integration/integration_test_methods.dart
@@ -689,6 +689,35 @@ abstract class IntegrationTestMixin {
StreamController<AnalysisHighlightsParams> _onAnalysisHighlights;
/**
+ * Reports the classes that are implemented or extended and class members
+ * that are implemented or overridden in a file.
+ *
+ * This notification is not subscribed to by default. Clients can subscribe
+ * by including the value "IMPLEMENTED" in the list of services passed in an
+ * analysis.setSubscriptions request.
+ *
+ * Parameters
+ *
+ * file ( FilePath )
+ *
+ * The file with which the implementations are associated.
+ *
+ * classes ( List<ImplementedClass> )
+ *
+ * The classes defined in the file that are implemented or extended.
+ *
+ * members ( List<ImplementedMember> )
+ *
+ * The member defined in the file that are implemented or overridden.
+ */
+ Stream<AnalysisImplementedParams> onAnalysisImplemented;
+
+ /**
+ * Stream controller for [onAnalysisImplemented].
+ */
+ StreamController<AnalysisImplementedParams> _onAnalysisImplemented;
+
+ /**
* Reports that the navigation information associated with a region of a
* single file has become invalid and should be re-requested.
*
@@ -1607,6 +1636,8 @@ abstract class IntegrationTestMixin {
onAnalysisFolding = _onAnalysisFolding.stream.asBroadcastStream();
_onAnalysisHighlights = new StreamController<AnalysisHighlightsParams>(sync: true);
onAnalysisHighlights = _onAnalysisHighlights.stream.asBroadcastStream();
+ _onAnalysisImplemented = new StreamController<AnalysisImplementedParams>(sync: true);
+ onAnalysisImplemented = _onAnalysisImplemented.stream.asBroadcastStream();
_onAnalysisInvalidate = new StreamController<AnalysisInvalidateParams>(sync: true);
onAnalysisInvalidate = _onAnalysisInvalidate.stream.asBroadcastStream();
_onAnalysisNavigation = new StreamController<AnalysisNavigationParams>(sync: true);
@@ -1664,6 +1695,10 @@ abstract class IntegrationTestMixin {
expect(params, isAnalysisHighlightsParams);
_onAnalysisHighlights.add(new AnalysisHighlightsParams.fromJson(decoder, 'params', params));
break;
+ case "analysis.implemented":
+ expect(params, isAnalysisImplementedParams);
+ _onAnalysisImplemented.add(new AnalysisImplementedParams.fromJson(decoder, 'params', params));
+ break;
case "analysis.invalidate":
expect(params, isAnalysisInvalidateParams);
_onAnalysisInvalidate.add(new AnalysisInvalidateParams.fromJson(decoder, 'params', params));
« no previous file with comments | « pkg/analysis_server/lib/src/generated_protocol.dart ('k') | pkg/analysis_server/test/integration/protocol_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698