Index: pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
diff --git a/pkg/analysis_server/test/analysis/notification_highlights_test2.dart b/pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
index 2618777910ffc25e47e8f4b79f80f0a4be6b9a63..28568ef62631c1521f4d16f23f71d678d952adc0 100644 |
--- a/pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
+++ b/pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
@@ -911,6 +911,23 @@ main(int p) { |
assertHasRegion(HighlightRegionType.PARAMETER_REFERENCE, 'p = 42'); |
} |
+ test_PARAMETER_named() async { |
+ addTestFile(''' |
+class C { |
+ final int aaa; |
+ C({this.aaa, int bbb}); |
+} |
+main() { |
+ new C(aaa: 1, bbb: 2); |
+} |
+'''); |
+ await prepareHighlights(); |
+ assertHasRegion(HighlightRegionType.INSTANCE_FIELD_REFERENCE, 'aaa,'); |
+ assertHasRegion(HighlightRegionType.PARAMETER_DECLARATION, 'bbb}'); |
+ assertHasRegion(HighlightRegionType.PARAMETER_REFERENCE, 'aaa: 1'); |
+ assertHasRegion(HighlightRegionType.PARAMETER_REFERENCE, 'bbb: 2'); |
+ } |
+ |
test_SETTER_DECLARATION() async { |
addTestFile(''' |
set aaa(x) {} |