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

Unified Diff: pkg/analysis_server/lib/src/computer/element.dart

Issue 396063002: Include 'element' into 'search.findElementReferences' response. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/search/element_references.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/search/element_references.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698