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

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

Issue 10855262: Make patching of classes lazy. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « lib/compiler/implementation/scanner/class_element_parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/patch_test.dart
diff --git a/tests/compiler/dart2js/patch_test.dart b/tests/compiler/dart2js/patch_test.dart
index 5ac187ecfbb5dc788aa2fcf05d691d66bd8e4f17..3397230e6d44ed50506ec43b4240f728eeb85cbb 100644
--- a/tests/compiler/dart2js/patch_test.dart
+++ b/tests/compiler/dart2js/patch_test.dart
@@ -16,7 +16,6 @@ Compiler applyPatch(String script, String patch) {
var uri = new Uri("core.dartp");
compiler.sourceFiles[uri.toString()] = new MockFile(patch);
compiler.patchParser.patchLibrary(uri, compiler.coreLibrary);
- compiler.applyClassPatches(compiler.coreLibrary);
return compiler;
}
@@ -66,6 +65,7 @@ testPatchMember() {
}
""");
var container = ensure(compiler, "Class", compiler.coreLibrary.find);
+ container.parseNode(compiler);
ensure(compiler, "toString", container.lookupLocalMember, hasBody:true);
}
@@ -82,6 +82,7 @@ testPatchGetter() {
}
""");
var container = ensure(compiler, "Class", compiler.coreLibrary.find);
+ container.parseNode(compiler);
ensure(compiler,
"field",
container.lookupLocalMember,
« no previous file with comments | « lib/compiler/implementation/scanner/class_element_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698