Index: pkg/analysis_server/test/plugin/set_analysis_domain_test.dart |
diff --git a/pkg/analysis_server/test/plugin/set_analysis_domain_test.dart b/pkg/analysis_server/test/plugin/set_analysis_domain_test.dart |
index a6ee01f9499f2f5a8cfccbfcf10e581f0705603a..02200c08a078432f185a99fcb15926a79539ab2f 100644 |
--- a/pkg/analysis_server/test/plugin/set_analysis_domain_test.dart |
+++ b/pkg/analysis_server/test/plugin/set_analysis_domain_test.dart |
@@ -124,8 +124,9 @@ class TestOccurrencesContributor implements OccurrencesContributor { |
@override |
void computeOccurrences( |
OccurrencesCollector collector, AnalysisContext context, Source source) { |
- collector.addOccurrences(new Occurrences( |
- new Element(ElementKind.UNKNOWN, 'TestElement', 0), <int>[1, 2, 3], 5)); |
+ Element element = new Element(ElementKind.UNKNOWN, 'TestElement', 0); |
+ collector.addOccurrences(new Occurrences(element, <int>[1, 2], 5)); |
+ collector.addOccurrences(new Occurrences(element, <int>[3], 5)); |
} |
} |