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

Unified Diff: pkg/analysis_server/test/services/index/dart_index_contributor_test.dart

Issue 685493003: Index EnumDeclaration definitions as top-level elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 | « pkg/analysis_server/test/abstract_context.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/index/dart_index_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart b/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart
index f0b26947aa8f1c50969e09df68c9510bfc96fc9f..0f7d336417d43171023593307806f107a52855b6 100644
--- a/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart
+++ b/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart
@@ -298,6 +298,16 @@ main(a) {
_expectedLocation(classElement, 'A {}'));
}
+ void test_definesClassEnum() {
+ _indexTestUnit('enum MyEnum {A, B, c}');
+ // prepare elements
+ ClassElement classElement = findElement("MyEnum");
+ // verify
+ _assertDefinesTopLevelElement(
+ IndexConstants.DEFINES,
+ _expectedLocation(classElement, 'MyEnum {'));
+ }
+
void test_definesClassAlias() {
_indexTestUnit('''
class Mix {}
« no previous file with comments | « pkg/analysis_server/test/abstract_context.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698