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

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

Issue 1113423003: Remove AnalysisContext.refactoringUnsafeSources. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/engine.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/engine_test.dart
diff --git a/pkg/analyzer/test/generated/engine_test.dart b/pkg/analyzer/test/generated/engine_test.dart
index 67e80fa8e63207864453cdddce4db2a512a5780c..06cafa05676814a95ba89eed417b97ec439cbff2 100644
--- a/pkg/analyzer/test/generated/engine_test.dart
+++ b/pkg/analyzer/test/generated/engine_test.dart
@@ -1221,21 +1221,6 @@ main() {}''');
(obj) => obj is ClassElement, ClassElement, namespace.get("A"));
}
- void test_getRefactoringUnsafeSources() {
- // not sources initially
- List<Source> sources = _context.refactoringUnsafeSources;
- expect(sources, hasLength(0));
- // add new source, unresolved
- Source source = _addSource("/test.dart", "library lib;");
- sources = _context.refactoringUnsafeSources;
- expect(sources, hasLength(1));
- expect(sources[0], source);
- // resolve source
- _context.computeLibraryElement(source);
- sources = _context.refactoringUnsafeSources;
- expect(sources, hasLength(0));
- }
-
void test_getResolvedCompilationUnit_library() {
_context = AnalysisContextFactory.contextWithCore();
_sourceFactory = _context.sourceFactory;
@@ -5505,11 +5490,6 @@ class TestAnalysisContext implements InternalAnalysisContext {
fail("Unexpected invocation of visitCacheItems");
return null;
}
- @override
- List<Source> get refactoringUnsafeSources {
- fail("Unexpected invocation of getRefactoringUnsafeSources");
- return null;
- }
@override
ResolverVisitorFactory get resolverVisitorFactory {
@@ -6144,17 +6124,6 @@ class TestAnalysisContext_test_getPublicNamespace extends TestAnalysisContext {
}
}
-class TestAnalysisContext_test_getRefactoringUnsafeSources
- extends TestAnalysisContext {
- bool invoked = false;
- TestAnalysisContext_test_getRefactoringUnsafeSources();
- @override
- List<Source> get refactoringUnsafeSources {
- invoked = true;
- return null;
- }
-}
-
class TestAnalysisContext_test_getResolvedCompilationUnit_element
extends TestAnalysisContext {
bool invoked = false;
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698