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

Unified Diff: tests/try/poi/forget_element_test.dart

Issue 1079523004: Fix test in try affected by refactor (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/try/poi/forget_element_test.dart
diff --git a/tests/try/poi/forget_element_test.dart b/tests/try/poi/forget_element_test.dart
index e85067adb242144c4aae6be95438af72b029e380..e1ebd3ba50ad57399b440bb2b49afde34f03d7a3 100644
--- a/tests/try/poi/forget_element_test.dart
+++ b/tests/try/poi/forget_element_test.dart
@@ -198,7 +198,7 @@ class ForgetElementTestCase extends CompilerTestCase {
});
List<MetadataAnnotation> metadata =
- (new MetadataCollector()..visit(library)).metadata;
+ (new MetadataCollector()..visit(library, null)).metadata;
return collector.nodes;
}
@@ -282,16 +282,16 @@ class NodeCollector extends tree.Visitor {
class MetadataCollector extends ElementVisitor {
final List<MetadataAnnotation> metadata = <MetadataAnnotation>[];
- void visitElement(Element e) {
+ void visitElement(Element e, _) {
metadata.addAll(e.metadata.toList());
}
- void visitScopeContainerElement(ScopeContainerElement e) {
+ void visitScopeContainerElement(ScopeContainerElement e, _) {
super.visitScopeContainerElement(e);
e.forEachLocalMember(this.visit);
}
- void visitFunctionElement(FunctionElement e) {
+ void visitFunctionElement(FunctionElement e, _) {
super.visitFunctionElement(e);
if (e.hasFunctionSignature) {
e.functionSignature.forEachParameter(this.visit);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698