OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import "package:expect/expect.dart"; | |
6 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t'; | 5 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t'; |
7 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; | 6 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; |
8 import '../../../sdk/lib/_internal/compiler/implementation/util/util.dart'; | 7 import '../../../sdk/lib/_internal/compiler/implementation/util/util.dart'; |
9 import 'mock_compiler.dart'; | 8 import 'mock_compiler.dart'; |
10 import 'parser_helper.dart'; | 9 import 'parser_helper.dart'; |
11 | 10 |
12 import '../../../sdk/lib/_internal/compiler/implementation/elements/modelx.dart' | 11 import '../../../sdk/lib/_internal/compiler/implementation/elements/modelx.dart' |
13 show ElementX; | 12 show ElementX; |
14 | 13 |
15 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' | 14 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 Node node = listener.popNode(); | 753 Node node = listener.popNode(); |
755 classElement.ensureResolved(compiler); | 754 classElement.ensureResolved(compiler); |
756 TreeElements elements = compiler.resolveNodeStatement(node, classElement); | 755 TreeElements elements = compiler.resolveNodeStatement(node, classElement); |
757 TypeCheckerVisitor checker = new TypeCheckerVisitor(compiler, elements, | 756 TypeCheckerVisitor checker = new TypeCheckerVisitor(compiler, elements, |
758 types); | 757 types); |
759 compiler.clearWarnings(); | 758 compiler.clearWarnings(); |
760 checker.currentClass = classElement; | 759 checker.currentClass = classElement; |
761 checker.analyze(node); | 760 checker.analyze(node); |
762 compareWarningKinds(text, expectedWarnings, compiler.warnings); | 761 compareWarningKinds(text, expectedWarnings, compiler.warnings); |
763 } | 762 } |
OLD | NEW |