Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_common.dart

Issue 2835903003: Issue 29388. Resynthesize non-generic types for ReferenceInfo lazily. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 14289 matching lines...) Expand 10 before | Expand all | Expand 10 after
14300 checkElementText( 14300 checkElementText(
14301 library, 14301 library,
14302 r''' 14302 r'''
14303 typedef U F<T extends Object, U extends D>(T t); 14303 typedef U F<T extends Object, U extends D>(T t);
14304 class D { 14304 class D {
14305 } 14305 }
14306 '''); 14306 ''');
14307 } 14307 }
14308 } 14308 }
14309 14309
14310 test_typedef_type_parameters_bound_recursive() {
14311 shouldCompareLibraryElements = false;
14312 var library = checkLibrary('typedef void F<T extends F>();');
14313 checkElementText(
14314 library,
14315 r'''
14316 typedef void F<T extends F>();
14317 ''');
14318 }
14319
14310 test_typedef_type_parameters_f_bound_complex() { 14320 test_typedef_type_parameters_f_bound_complex() {
14311 var library = checkLibrary('typedef U F<T extends List<U>, U>(T t);'); 14321 var library = checkLibrary('typedef U F<T extends List<U>, U>(T t);');
14312 if (isStrongMode) { 14322 if (isStrongMode) {
14313 checkElementText( 14323 checkElementText(
14314 library, 14324 library,
14315 r''' 14325 r'''
14316 typedef U F<T extends List<U>, U>(T t); 14326 typedef U F<T extends List<U>, U>(T t);
14317 '''); 14327 ''');
14318 } else { 14328 } else {
14319 checkElementText( 14329 checkElementText(
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
15268 fail('Unexpectedly tried to get unlinked summary for $uri'); 15278 fail('Unexpectedly tried to get unlinked summary for $uri');
15269 } 15279 }
15270 return serializedUnit; 15280 return serializedUnit;
15271 } 15281 }
15272 15282
15273 @override 15283 @override
15274 bool hasLibrarySummary(String uri) { 15284 bool hasLibrarySummary(String uri) {
15275 return true; 15285 return true;
15276 } 15286 }
15277 } 15287 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698