| 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.all_the_rest_test; | 5 library analyzer.test.generated.all_the_rest_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 * [code] the code to resolve. | 780 * [code] the code to resolve. |
| 781 * | 781 * |
| 782 * Returns the result of resolving the AST structure representing the content | 782 * Returns the result of resolving the AST structure representing the content |
| 783 * of the source. | 783 * of the source. |
| 784 * | 784 * |
| 785 * Throws if source cannot be verified. | 785 * Throws if source cannot be verified. |
| 786 */ | 786 */ |
| 787 Future<CompilationUnit> _resolveContents(String code) async { | 787 Future<CompilationUnit> _resolveContents(String code) async { |
| 788 Source source = addSource(code); | 788 Source source = addSource(code); |
| 789 LibraryElement library = resolve2(source); | 789 LibraryElement library = resolve2(source); |
| 790 await assertNoErrors(source); | 790 await computeAnalysisResult(source); |
| 791 assertNoErrors(source); |
| 791 verify([source]); | 792 verify([source]); |
| 792 return analysisContext.resolveCompilationUnit(source, library); | 793 return analysisContext.resolveCompilationUnit(source, library); |
| 793 } | 794 } |
| 794 } | 795 } |
| 795 | 796 |
| 796 @reflectiveTest | 797 @reflectiveTest |
| 797 class EnumMemberBuilderTest extends EngineTestCase { | 798 class EnumMemberBuilderTest extends EngineTestCase { |
| 798 test_visitEnumDeclaration_multiple() async { | 799 test_visitEnumDeclaration_multiple() async { |
| 799 String firstName = "ONE"; | 800 String firstName = "ONE"; |
| 800 String secondName = "TWO"; | 801 String secondName = "TWO"; |
| (...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2271 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); | 2272 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); |
| 2272 expect(UriKind.fromEncoding(0x58), same(null)); | 2273 expect(UriKind.fromEncoding(0x58), same(null)); |
| 2273 } | 2274 } |
| 2274 | 2275 |
| 2275 test_getEncoding() async { | 2276 test_getEncoding() async { |
| 2276 expect(UriKind.DART_URI.encoding, 0x64); | 2277 expect(UriKind.DART_URI.encoding, 0x64); |
| 2277 expect(UriKind.FILE_URI.encoding, 0x66); | 2278 expect(UriKind.FILE_URI.encoding, 0x66); |
| 2278 expect(UriKind.PACKAGE_URI.encoding, 0x70); | 2279 expect(UriKind.PACKAGE_URI.encoding, 0x70); |
| 2279 } | 2280 } |
| 2280 } | 2281 } |
| OLD | NEW |