| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 test.src.serialization.elements_test; | 5 library test.src.serialization.elements_test; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 8 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
| 9 import 'package:analyzer/dart/constant/value.dart'; | 9 import 'package:analyzer/dart/constant/value.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 3828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3839 const C.named(); | 3839 const C.named(); |
| 3840 } | 3840 } |
| 3841 '''); | 3841 '''); |
| 3842 checkLibrary(''' | 3842 checkLibrary(''' |
| 3843 import "a.dart"; | 3843 import "a.dart"; |
| 3844 @C.named | 3844 @C.named |
| 3845 class D {} | 3845 class D {} |
| 3846 '''); | 3846 '''); |
| 3847 } | 3847 } |
| 3848 | 3848 |
| 3849 test_invalid_importPrefix_asTypeArgument() { |
| 3850 checkLibrary(''' |
| 3851 import 'dart:async' as ppp; |
| 3852 class C { |
| 3853 List<ppp> v; |
| 3854 } |
| 3855 '''); |
| 3856 } |
| 3857 |
| 3849 test_library() { | 3858 test_library() { |
| 3850 checkLibrary(''); | 3859 checkLibrary(''); |
| 3851 } | 3860 } |
| 3852 | 3861 |
| 3853 test_library_documented() { | 3862 test_library_documented() { |
| 3854 checkLibrary(''' | 3863 checkLibrary(''' |
| 3855 // Extra comment so doc comment offset != 0 | 3864 // Extra comment so doc comment offset != 0 |
| 3856 /** | 3865 /** |
| 3857 * Docs | 3866 * Docs |
| 3858 */ | 3867 */ |
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5017 fail('Unexpectedly tried to get unlinked summary for $uri'); | 5026 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 5018 } | 5027 } |
| 5019 return serializedUnit; | 5028 return serializedUnit; |
| 5020 } | 5029 } |
| 5021 | 5030 |
| 5022 @override | 5031 @override |
| 5023 bool hasLibrarySummary(String uri) { | 5032 bool hasLibrarySummary(String uri) { |
| 5024 return true; | 5033 return true; |
| 5025 } | 5034 } |
| 5026 } | 5035 } |
| OLD | NEW |