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 '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/standard_resolution_map.dart'; | 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
(...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2106 } | 2106 } |
2107 class B<B1> { | 2107 class B<B1> { |
2108 } | 2108 } |
2109 class C<C1> { | 2109 class C<C1> { |
2110 } | 2110 } |
2111 '''); | 2111 '''); |
2112 } | 2112 } |
2113 | 2113 |
2114 test_class_mixins_unresolved() async { | 2114 test_class_mixins_unresolved() async { |
2115 var library = await checkLibrary( | 2115 var library = await checkLibrary( |
2116 'class C extends Object with X, Y, Z; class X {} class Z {}', | 2116 'class C extends Object with X, Y, Z {} class X {} class Z {}', |
2117 allowErrors: true); | 2117 allowErrors: true); |
2118 checkElementText(library, r''' | 2118 checkElementText(library, r''' |
2119 class C extends Object with X, Z { | 2119 class C extends Object with X, Z { |
2120 synthetic C(); | 2120 synthetic C(); |
2121 } | 2121 } |
2122 class X { | 2122 class X { |
2123 } | 2123 } |
2124 class Z { | 2124 class Z { |
2125 } | 2125 } |
2126 '''); | 2126 '''); |
(...skipping 7729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9856 fail('Unexpectedly tried to get unlinked summary for $uri'); | 9856 fail('Unexpectedly tried to get unlinked summary for $uri'); |
9857 } | 9857 } |
9858 return serializedUnit; | 9858 return serializedUnit; |
9859 } | 9859 } |
9860 | 9860 |
9861 @override | 9861 @override |
9862 bool hasLibrarySummary(String uri) { | 9862 bool hasLibrarySummary(String uri) { |
9863 return true; | 9863 return true; |
9864 } | 9864 } |
9865 } | 9865 } |
OLD | NEW |