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

Unified Diff: dart/tests/compiler/dart2js/mock_compiler.dart

Issue 21242002: Retain elements a finer granularity than library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 7 years, 4 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 | « dart/tests/compiler/dart2js/mirrors_used_test.dart ('k') | dart/tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js/mock_compiler.dart
diff --git a/dart/tests/compiler/dart2js/mock_compiler.dart b/dart/tests/compiler/dart2js/mock_compiler.dart
index 950a7e5ebbc2cb3eebb519ac4a7847a7ff739cd5..ec113a8a5aa486ad0d954688b8a14b1359c58cde 100644
--- a/dart/tests/compiler/dart2js/mock_compiler.dart
+++ b/dart/tests/compiler/dart2js/mock_compiler.dart
@@ -340,7 +340,7 @@ class MockCompiler extends Compiler {
errors = [];
}
- TreeElementMapping resolveStatement(String text) {
+ CollectingTreeElements resolveStatement(String text) {
parsedTree = parseStatement(text);
return resolveNodeStatement(parsedTree, mainApp);
}
@@ -380,10 +380,6 @@ class MockCompiler extends Compiler {
// Do nothing. The mock core library is already handled in the constructor.
}
- void importCoreLibrary(LibraryElement library) {
- scanner.importLibrary(library, coreLibrary, null);
- }
-
Uri translateResolvedUri(LibraryElement importingLibrary,
Uri resolvedUri, Node node) => resolvedUri;
@@ -427,7 +423,7 @@ void compareWarningKinds(String text, expectedWarnings, foundWarnings) {
}
}
-void importLibrary(LibraryElement target, LibraryElement imported,
+void importLibrary(LibraryElement target, LibraryElementX imported,
Compiler compiler) {
for (var element in imported.localMembers) {
compiler.withCurrentElement(element, () {
« no previous file with comments | « dart/tests/compiler/dart2js/mirrors_used_test.dart ('k') | dart/tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698