| Index: tests/compiler/dart2js/resolver_test.dart
|
| diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
|
| index 3c3234dc12a12f3dc58cd8b9bca4084feec93ca1..df03f94feadb51819d5a514b3dd5abbe9ef85016 100644
|
| --- a/tests/compiler/dart2js/resolver_test.dart
|
| +++ b/tests/compiler/dart2js/resolver_test.dart
|
| @@ -222,7 +222,7 @@ testLocalsTwo() {
|
| Node tree = parseStatement("if (true) { var a = 1; var b = 2; }");
|
| Element element = visitor.visit(tree);
|
| Expect.equals(null, element);
|
| - BlockScope scope = visitor.scope;
|
| + MethodScope scope = visitor.scope;
|
| Expect.equals(0, scope.elements.length);
|
| Expect.equals(2, map(visitor).length);
|
|
|
| @@ -236,7 +236,7 @@ testLocalsThree() {
|
| Node tree = parseStatement("{ var a = 1; if (true) { a; } }");
|
| Element element = visitor.visit(tree);
|
| Expect.equals(null, element);
|
| - BlockScope scope = visitor.scope;
|
| + MethodScope scope = visitor.scope;
|
| Expect.equals(0, scope.elements.length);
|
| Expect.equals(3, map(visitor).length);
|
| List<Element> elements = map(visitor).getValues();
|
| @@ -249,7 +249,7 @@ testLocalsFour() {
|
| Node tree = parseStatement("{ var a = 1; if (true) { var a = 1; } }");
|
| Element element = visitor.visit(tree);
|
| Expect.equals(null, element);
|
| - BlockScope scope = visitor.scope;
|
| + MethodScope scope = visitor.scope;
|
| Expect.equals(0, scope.elements.length);
|
| Expect.equals(2, map(visitor).length);
|
| List<Element> elements = map(visitor).getValues();
|
| @@ -262,7 +262,7 @@ testLocalsFive() {
|
| If tree = parseStatement("if (true) { var a = 1; a; } else { var a = 2; a;}");
|
| Element element = visitor.visit(tree);
|
| Expect.equals(null, element);
|
| - BlockScope scope = visitor.scope;
|
| + MethodScope scope = visitor.scope;
|
| Expect.equals(0, scope.elements.length);
|
| Expect.equals(6, map(visitor).length);
|
|
|
| @@ -308,7 +308,7 @@ testFor() {
|
| For tree = parseStatement("for (int i = 0; i < 10; i = i + 1) { i = 5; }");
|
| visitor.visit(tree);
|
|
|
| - BlockScope scope = visitor.scope;
|
| + MethodScope scope = visitor.scope;
|
| Expect.equals(0, scope.elements.length);
|
| Expect.equals(10, map(visitor).length);
|
|
|
|
|