OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library analyzer.test.generated.non_error_resolver_test; | 5 library analyzer.test.generated.non_error_resolver_test; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
10 import 'package:analyzer/src/generated/error.dart'; | 10 import 'package:analyzer/src/generated/error.dart'; |
11 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; | 11 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; |
12 import 'package:analyzer/src/generated/source_io.dart'; | 12 import 'package:analyzer/src/generated/source_io.dart'; |
13 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
14 | 14 |
15 import '../reflective_tests.dart'; | 15 import '../reflective_tests.dart'; |
16 import '../utils.dart'; | 16 import '../utils.dart'; |
17 import 'resolver_test.dart'; | 17 import 'resolver_test_case.dart'; |
18 import 'test_support.dart'; | 18 import 'test_support.dart'; |
19 | 19 |
20 main() { | 20 main() { |
21 initializeTestEnvironment(); | 21 initializeTestEnvironment(); |
22 runReflectiveTests(NonErrorResolverTest); | 22 runReflectiveTests(NonErrorResolverTest); |
23 } | 23 } |
24 | 24 |
25 @reflectiveTest | 25 @reflectiveTest |
26 class NonErrorResolverTest extends ResolverTestCase { | 26 class NonErrorResolverTest extends ResolverTestCase { |
27 void fail_undefinedEnumConstant() { | 27 void fail_undefinedEnumConstant() { |
(...skipping 6040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6068 reset(); | 6068 reset(); |
6069 } | 6069 } |
6070 | 6070 |
6071 void _check_wrongNumberOfParametersForOperator1(String name) { | 6071 void _check_wrongNumberOfParametersForOperator1(String name) { |
6072 _check_wrongNumberOfParametersForOperator(name, "a"); | 6072 _check_wrongNumberOfParametersForOperator(name, "a"); |
6073 } | 6073 } |
6074 | 6074 |
6075 CompilationUnit _getResolvedLibraryUnit(Source source) => | 6075 CompilationUnit _getResolvedLibraryUnit(Source source) => |
6076 analysisContext.getResolvedCompilationUnit2(source, source); | 6076 analysisContext.getResolvedCompilationUnit2(source, source); |
6077 } | 6077 } |
OLD | NEW |