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

Unified Diff: pkg/analysis_server/lib/src/protocol.dart

Issue 647563002: Test that analysis server and analysis engine enums properly match. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/lib/src/protocol.dart
diff --git a/pkg/analysis_server/lib/src/protocol.dart b/pkg/analysis_server/lib/src/protocol.dart
index 83a10557781675d2e3ff15ae7b53719dc75e67ee..94da4eaf01f15d9b651c02aa8e97569d12a04b61 100644
--- a/pkg/analysis_server/lib/src/protocol.dart
+++ b/pkg/analysis_server/lib/src/protocol.dart
@@ -226,6 +226,18 @@ RefactoringOptions _refactoringOptionsFromJson(JsonDecoder jsonDecoder,
/**
+ * Classes implementing [Enum] represent enumerated types in the protocol.
+ */
+abstract class Enum {
Brian Wilkerson 2014/10/09 21:41:22 I can't think of a better name, but I am mildly co
+ /**
+ * The name of the enumerated value. This should match the name of the
+ * static getter which provides access to this enumerated value.
+ */
+ String get name;
+}
+
+
+/**
* Type of callbacks used to decode parts of JSON objects. [jsonPath] is a
* string describing the part of the JSON object being decoded, and [value] is
* the part to decode.

Powered by Google App Engine
This is Rietveld 408576698