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

Unified Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 1410573005: Memory leak fix. Use correct analysis context for annotation constants. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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/analyzer/lib/src/generated/constant.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/all_the_rest_test.dart
diff --git a/pkg/analyzer/test/generated/all_the_rest_test.dart b/pkg/analyzer/test/generated/all_the_rest_test.dart
index 9dd08e8ee4c3f6060abf4e720228dbb2c642e480..dc07ef9f3e4c6537207902c7f119147f8126f830 100644
--- a/pkg/analyzer/test/generated/all_the_rest_test.dart
+++ b/pkg/analyzer/test/generated/all_the_rest_test.dart
@@ -886,7 +886,7 @@ class ConstantFinderTest extends EngineTestCase {
void setUp() {
super.setUp();
_typeProvider = new TestTypeProvider();
- _context = new TestAnalysisContext();
+ _context = new TestAnalysisContext_ConstantFinderTest();
_source = new TestSource();
}
@@ -9068,6 +9068,16 @@ class StringScannerTest extends AbstractScannerTest {
}
}
+class TestAnalysisContext_ConstantFinderTest extends TestAnalysisContext {
+ bool invoked = false;
+ TestAnalysisContext_ConstantFinderTest();
+
+ @override
+ InternalAnalysisContext getContextFor(Source source) {
+ return this;
+ }
+}
+
/**
* Instances of the class `ToSourceVisitorTest`
*/
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698