Index: pkg/analysis_server/test/integration/analysis/highlights_test.dart |
diff --git a/pkg/analysis_server/test/integration/analysis/highlights_test.dart b/pkg/analysis_server/test/integration/analysis/highlights_test.dart |
index b466ff66660c3106fb92fe433fb439d7b24e2d9a..50acb488e31134cf1ce0e8d12b6c20263de4225f 100644 |
--- a/pkg/analysis_server/test/integration/analysis/highlights_test.dart |
+++ b/pkg/analysis_server/test/integration/analysis/highlights_test.dart |
@@ -49,6 +49,7 @@ class Class<TypeParameter> { |
} |
set setter(int parameter) { |
+ print(parameter); |
} |
} |
@@ -118,13 +119,14 @@ int topLevelVariable; |
HighlightRegionType.COMMENT_END_OF_LINE, ['// End of line comment']); |
check(HighlightRegionType.CONSTRUCTOR, ['constructor']); |
check(HighlightRegionType.DIRECTIVE, ["import 'dart:async' as async;"]); |
- check(HighlightRegionType.DYNAMIC_TYPE, ['dynamicType']); |
- check(HighlightRegionType.FIELD, ['field']); |
- check(HighlightRegionType.FIELD_STATIC, ['staticField']); |
- check(HighlightRegionType.FUNCTION, ['print']); |
- check(HighlightRegionType.FUNCTION_DECLARATION, ['function']); |
+ check(HighlightRegionType.DYNAMIC_PARAMETER_DECLARATION, ['dynamicType']); |
+ check(HighlightRegionType.INSTANCE_FIELD_DECLARATION, ['field']); |
+ check(HighlightRegionType.INSTANCE_FIELD_REFERENCE, ['field']); |
+ check(HighlightRegionType.STATIC_FIELD_DECLARATION, ['staticField']); |
+ check(HighlightRegionType.TOP_LEVEL_FUNCTION_REFERENCE, ['print']); |
+ check(HighlightRegionType.TOP_LEVEL_FUNCTION_DECLARATION, ['function']); |
check(HighlightRegionType.FUNCTION_TYPE_ALIAS, ['functionType']); |
- check(HighlightRegionType.GETTER_DECLARATION, ['getter']); |
+ check(HighlightRegionType.INSTANCE_GETTER_DECLARATION, ['getter']); |
check(HighlightRegionType.IDENTIFIER_DEFAULT, ['unresolvedIdentifier']); |
check(HighlightRegionType.IMPORT_PREFIX, ['async']); |
check(HighlightRegionType.KEYWORD, ['class', 'true', 'return']); |
@@ -137,18 +139,18 @@ int topLevelVariable; |
'{2: local}' |
]); |
check(HighlightRegionType.LITERAL_STRING, ["'dart:async'", "'string'"]); |
- check(HighlightRegionType.LOCAL_VARIABLE, ['local']); |
check(HighlightRegionType.LOCAL_VARIABLE_DECLARATION, ['local']); |
- check(HighlightRegionType.METHOD, ['toList']); |
- check(HighlightRegionType.METHOD_DECLARATION, ['method']); |
- check(HighlightRegionType.METHOD_DECLARATION_STATIC, ['staticMethod']); |
- check(HighlightRegionType.METHOD_STATIC, ['wait']); |
- check(HighlightRegionType.PARAMETER, ['parameter']); |
- check(HighlightRegionType.SETTER_DECLARATION, ['setter']); |
- check(HighlightRegionType.TOP_LEVEL_VARIABLE, [ |
- 'override', |
- 'topLevelVariable' |
- ]); |
+ check(HighlightRegionType.LOCAL_VARIABLE_REFERENCE, ['local']); |
+ check(HighlightRegionType.INSTANCE_METHOD_REFERENCE, ['toList']); |
+ check(HighlightRegionType.INSTANCE_METHOD_DECLARATION, ['method']); |
+ check(HighlightRegionType.STATIC_METHOD_DECLARATION, ['staticMethod']); |
+ check(HighlightRegionType.STATIC_METHOD_REFERENCE, ['wait']); |
+ check(HighlightRegionType.PARAMETER_DECLARATION, ['parameter']); |
+ check(HighlightRegionType.PARAMETER_REFERENCE, ['parameter']); |
+ check(HighlightRegionType.INSTANCE_SETTER_DECLARATION, ['setter']); |
+ check(HighlightRegionType.TOP_LEVEL_VARIABLE_REFERENCE, ['override']); |
+ check(HighlightRegionType.TOP_LEVEL_VARIABLE_DECLARATION, |
+ ['topLevelVariable']); |
check(HighlightRegionType.TYPE_NAME_DYNAMIC, ['dynamic']); |
check(HighlightRegionType.TYPE_PARAMETER, ['TypeParameter']); |
expect(highlights, isEmpty); |