| 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/error/error.dart'; | 9 import 'package:analyzer/error/error.dart'; |
| 10 import 'package:analyzer/src/error/codes.dart'; | 10 import 'package:analyzer/src/error/codes.dart'; |
| (...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1702 verify([source]); | 1702 verify([source]); |
| 1703 } | 1703 } |
| 1704 | 1704 |
| 1705 void test_duplicateDefinition_getter() { | 1705 void test_duplicateDefinition_getter() { |
| 1706 Source source = addSource("bool get a => true;"); | 1706 Source source = addSource("bool get a => true;"); |
| 1707 computeLibrarySourceErrors(source); | 1707 computeLibrarySourceErrors(source); |
| 1708 assertNoErrors(source); | 1708 assertNoErrors(source); |
| 1709 verify([source]); | 1709 verify([source]); |
| 1710 } | 1710 } |
| 1711 | 1711 |
| 1712 void test_duplicatePart() { |
| 1713 addNamedSource('/part1.dart', 'part of lib;'); |
| 1714 addNamedSource('/part2.dart', 'part of lib;'); |
| 1715 Source source = addSource(r''' |
| 1716 library lib; |
| 1717 part 'part1.dart'; |
| 1718 part 'part2.dart'; |
| 1719 '''); |
| 1720 computeLibrarySourceErrors(source); |
| 1721 assertNoErrors(source); |
| 1722 verify([source]); |
| 1723 } |
| 1724 |
| 1712 void test_dynamicIdentifier() { | 1725 void test_dynamicIdentifier() { |
| 1713 Source source = addSource(r''' | 1726 Source source = addSource(r''' |
| 1714 main() { | 1727 main() { |
| 1715 var v = dynamic; | 1728 var v = dynamic; |
| 1716 }'''); | 1729 }'''); |
| 1717 computeLibrarySourceErrors(source); | 1730 computeLibrarySourceErrors(source); |
| 1718 assertNoErrors(source); | 1731 assertNoErrors(source); |
| 1719 verify([source]); | 1732 verify([source]); |
| 1720 } | 1733 } |
| 1721 | 1734 |
| (...skipping 4492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6214 reset(); | 6227 reset(); |
| 6215 } | 6228 } |
| 6216 | 6229 |
| 6217 void _check_wrongNumberOfParametersForOperator1(String name) { | 6230 void _check_wrongNumberOfParametersForOperator1(String name) { |
| 6218 _check_wrongNumberOfParametersForOperator(name, "a"); | 6231 _check_wrongNumberOfParametersForOperator(name, "a"); |
| 6219 } | 6232 } |
| 6220 | 6233 |
| 6221 CompilationUnit _getResolvedLibraryUnit(Source source) => | 6234 CompilationUnit _getResolvedLibraryUnit(Source source) => |
| 6222 analysisContext.getResolvedCompilationUnit2(source, source); | 6235 analysisContext.getResolvedCompilationUnit2(source, source); |
| 6223 } | 6236 } |
| OLD | NEW |