| Index: pkg/analysis_server/lib/src/computer/computer_highlights.dart
|
| diff --git a/pkg/analysis_server/lib/src/computer/computer_highlights.dart b/pkg/analysis_server/lib/src/computer/computer_highlights.dart
|
| index c01c4ac0bf2598ba234e4e1b8f50b9e51dce6f5b..83480b1b43e59b94883dbd124d97c17ef0533202 100644
|
| --- a/pkg/analysis_server/lib/src/computer/computer_highlights.dart
|
| +++ b/pkg/analysis_server/lib/src/computer/computer_highlights.dart
|
| @@ -82,6 +82,9 @@ class DartUnitHighlightsComputer {
|
| if (_addIdentifierRegion_importPrefix(node)) {
|
| return;
|
| }
|
| + if (_addIdentifierRegion_label(node)) {
|
| + return;
|
| + }
|
| if (_addIdentifierRegion_localVariable(node)) {
|
| return;
|
| }
|
| @@ -225,6 +228,14 @@ class DartUnitHighlightsComputer {
|
| return false;
|
| }
|
|
|
| + bool _addIdentifierRegion_label(SimpleIdentifier node) {
|
| + Element element = node.staticElement;
|
| + if (element is! LabelElement) {
|
| + return false;
|
| + }
|
| + return _addRegion_node(node, HighlightRegionType.LABEL);
|
| + }
|
| +
|
| bool _addIdentifierRegion_localVariable(SimpleIdentifier node) {
|
| Element element = node.staticElement;
|
| if (element is! LocalVariableElement) {
|
|
|