| Index: pkg/analysis_server/lib/src/computer/element.dart
|
| diff --git a/pkg/analysis_server/lib/src/computer/element.dart b/pkg/analysis_server/lib/src/computer/element.dart
|
| index 2ba29901fd93ba6dc556722c2b5a359170bd9c66..5ceac100a082c61779d2f142d01e5848c851d359 100644
|
| --- a/pkg/analysis_server/lib/src/computer/element.dart
|
| +++ b/pkg/analysis_server/lib/src/computer/element.dart
|
| @@ -231,8 +231,10 @@ class ElementKind {
|
| static const LIBRARY = const ElementKind('LIBRARY');
|
| static const LOCAL_VARIABLE = const ElementKind('LOCAL_VARIABLE');
|
| static const METHOD = const ElementKind('METHOD');
|
| + static const PARAMETER = const ElementKind('PARAMETER');
|
| static const SETTER = const ElementKind('SETTER');
|
| static const TOP_LEVEL_VARIABLE = const ElementKind('TOP_LEVEL_VARIABLE');
|
| + static const TYPE_PARAMETER = const ElementKind('TYPE_PARAMETER');
|
| static const UNIT_TEST_CASE = const ElementKind('UNIT_TEST_CASE');
|
| static const UNIT_TEST_GROUP = const ElementKind('UNIT_TEST_GROUP');
|
| static const UNKNOWN = const ElementKind('UNKNOWN');
|
| @@ -256,8 +258,10 @@ class ElementKind {
|
| if (LIBRARY.name == name) return LIBRARY;
|
| if (LOCAL_VARIABLE.name == name) return LOCAL_VARIABLE;
|
| if (METHOD.name == name) return METHOD;
|
| + if (PARAMETER.name == name) return PARAMETER;
|
| if (SETTER.name == name) return SETTER;
|
| if (TOP_LEVEL_VARIABLE.name == name) return TOP_LEVEL_VARIABLE;
|
| + if (TYPE_PARAMETER.name == name) return TYPE_PARAMETER;
|
| if (UNIT_TEST_CASE.name == name) return UNIT_TEST_CASE;
|
| if (UNIT_TEST_GROUP.name == name) return UNIT_TEST_GROUP;
|
| if (UNKNOWN.name == name) return UNKNOWN;
|
| @@ -295,12 +299,18 @@ class ElementKind {
|
| if (kind == engine.ElementKind.METHOD) {
|
| return METHOD;
|
| }
|
| + if (kind == engine.ElementKind.PARAMETER) {
|
| + return PARAMETER;
|
| + }
|
| if (kind == engine.ElementKind.SETTER) {
|
| return SETTER;
|
| }
|
| if (kind == engine.ElementKind.TOP_LEVEL_VARIABLE) {
|
| return TOP_LEVEL_VARIABLE;
|
| }
|
| + if (kind == engine.ElementKind.TYPE_PARAMETER) {
|
| + return TYPE_PARAMETER;
|
| + }
|
| return UNKNOWN;
|
| }
|
| }
|
|
|