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

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

Issue 1227143003: Update Analysis Server highlight API and implementation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Split DYNAMIC_VARIABLE, add UNRESOLVED_INSTANCE_MEMBER_REFERENCE. Created 5 years, 5 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/protocol_matchers.dart
diff --git a/pkg/analysis_server/test/integration/protocol_matchers.dart b/pkg/analysis_server/test/integration/protocol_matchers.dart
index 60515ea100f7dd3bdb919ddb5fdfce7fb2afb204..57c7347519b9a39da7c562400c81bb7d0c36d673 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -1372,17 +1372,22 @@ final Matcher isHighlightRegion = new LazyMatcher(() => new MatchesJsonObject(
* COMMENT_END_OF_LINE
* CONSTRUCTOR
* DIRECTIVE
- * DYNAMIC_TYPE
+ * DYNAMIC_LOCAL_VARIABLE_DECLARATION
+ * DYNAMIC_LOCAL_VARIABLE_REFERENCE
+ * DYNAMIC_PARAMETER_DECLARATION
+ * DYNAMIC_PARAMETER_REFERENCE
* ENUM
* ENUM_CONSTANT
- * FIELD
- * FIELD_STATIC
- * FUNCTION
- * FUNCTION_DECLARATION
* FUNCTION_TYPE_ALIAS
- * GETTER_DECLARATION
* IDENTIFIER_DEFAULT
* IMPORT_PREFIX
+ * INSTANCE_FIELD_DECLARATION
+ * INSTANCE_FIELD_REFERENCE
+ * INSTANCE_GETTER_DECLARATION
+ * INSTANCE_METHOD_DECLARATION
+ * INSTANCE_METHOD_REFERENCE
+ * INSTANCE_SETTER_DECLARATION
+ * INVALID_STRING_ESCAPE
* KEYWORD
* LABEL
* LITERAL_BOOLEAN
@@ -1391,17 +1396,28 @@ final Matcher isHighlightRegion = new LazyMatcher(() => new MatchesJsonObject(
* LITERAL_LIST
* LITERAL_MAP
* LITERAL_STRING
- * LOCAL_VARIABLE
+ * LOCAL_FUNCTION_DECLARATION
+ * LOCAL_FUNCTION_REFERENCE
* LOCAL_VARIABLE_DECLARATION
- * METHOD
- * METHOD_DECLARATION
- * METHOD_DECLARATION_STATIC
- * METHOD_STATIC
- * PARAMETER
- * SETTER_DECLARATION
- * TOP_LEVEL_VARIABLE
+ * LOCAL_VARIABLE_REFERENCE
+ * PARAMETER_DECLARATION
+ * PARAMETER_REFERENCE
+ * STATIC_FIELD_DECLARATION
+ * STATIC_FIELD_REFERENCE
+ * STATIC_GETTER_DECLARATION
+ * STATIC_METHOD_DECLARATION
+ * STATIC_METHOD_REFERENCE
+ * STATIC_SETTER_DECLARATION
+ * TOP_LEVEL_FUNCTION_DECLARATION
+ * TOP_LEVEL_FUNCTION_REFERENCE
+ * TOP_LEVEL_GETTER_DECLARATION
+ * TOP_LEVEL_SETTER_DECLARATION
+ * TOP_LEVEL_VARIABLE_DECLARATION
+ * TOP_LEVEL_VARIABLE_REFERENCE
* TYPE_NAME_DYNAMIC
* TYPE_PARAMETER
+ * UNRESOLVED_INSTANCE_MEMBER_REFERENCE
+ * VALID_STRING_ESCAPE
* }
*/
final Matcher isHighlightRegionType = new MatchesEnum("HighlightRegionType", [
@@ -1413,17 +1429,22 @@ final Matcher isHighlightRegionType = new MatchesEnum("HighlightRegionType", [
"COMMENT_END_OF_LINE",
"CONSTRUCTOR",
"DIRECTIVE",
- "DYNAMIC_TYPE",
+ "DYNAMIC_LOCAL_VARIABLE_DECLARATION",
+ "DYNAMIC_LOCAL_VARIABLE_REFERENCE",
+ "DYNAMIC_PARAMETER_DECLARATION",
+ "DYNAMIC_PARAMETER_REFERENCE",
"ENUM",
"ENUM_CONSTANT",
- "FIELD",
- "FIELD_STATIC",
- "FUNCTION",
- "FUNCTION_DECLARATION",
"FUNCTION_TYPE_ALIAS",
- "GETTER_DECLARATION",
"IDENTIFIER_DEFAULT",
"IMPORT_PREFIX",
+ "INSTANCE_FIELD_DECLARATION",
+ "INSTANCE_FIELD_REFERENCE",
+ "INSTANCE_GETTER_DECLARATION",
+ "INSTANCE_METHOD_DECLARATION",
+ "INSTANCE_METHOD_REFERENCE",
+ "INSTANCE_SETTER_DECLARATION",
+ "INVALID_STRING_ESCAPE",
"KEYWORD",
"LABEL",
"LITERAL_BOOLEAN",
@@ -1432,17 +1453,28 @@ final Matcher isHighlightRegionType = new MatchesEnum("HighlightRegionType", [
"LITERAL_LIST",
"LITERAL_MAP",
"LITERAL_STRING",
- "LOCAL_VARIABLE",
+ "LOCAL_FUNCTION_DECLARATION",
+ "LOCAL_FUNCTION_REFERENCE",
"LOCAL_VARIABLE_DECLARATION",
- "METHOD",
- "METHOD_DECLARATION",
- "METHOD_DECLARATION_STATIC",
- "METHOD_STATIC",
- "PARAMETER",
- "SETTER_DECLARATION",
- "TOP_LEVEL_VARIABLE",
+ "LOCAL_VARIABLE_REFERENCE",
+ "PARAMETER_DECLARATION",
+ "PARAMETER_REFERENCE",
+ "STATIC_FIELD_DECLARATION",
+ "STATIC_FIELD_REFERENCE",
+ "STATIC_GETTER_DECLARATION",
+ "STATIC_METHOD_DECLARATION",
+ "STATIC_METHOD_REFERENCE",
+ "STATIC_SETTER_DECLARATION",
+ "TOP_LEVEL_FUNCTION_DECLARATION",
+ "TOP_LEVEL_FUNCTION_REFERENCE",
+ "TOP_LEVEL_GETTER_DECLARATION",
+ "TOP_LEVEL_SETTER_DECLARATION",
+ "TOP_LEVEL_VARIABLE_DECLARATION",
+ "TOP_LEVEL_VARIABLE_REFERENCE",
"TYPE_NAME_DYNAMIC",
- "TYPE_PARAMETER"
+ "TYPE_PARAMETER",
+ "UNRESOLVED_INSTANCE_MEMBER_REFERENCE",
+ "VALID_STRING_ESCAPE"
]);
/**

Powered by Google App Engine
This is Rietveld 408576698