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

Unified Diff: pkg/analysis_server/test/plugin/set_analysis_domain_test.dart

Issue 1338153002: Merge occurrences. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/lib/src/domains/analysis/occurrences.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/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));
}
}
« no previous file with comments | « pkg/analysis_server/lib/src/domains/analysis/occurrences.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698