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

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

Issue 2665013002: Issue 28550. Fix for resynthesizing invalid elements as declared types. (Closed)
Patch Set: Update link.dart Created 3 years, 10 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4632 matching lines...) Expand 10 before | Expand all | Expand 10 after
4643 } 4643 }
4644 4644
4645 test_type_arguments_implicit() { 4645 test_type_arguments_implicit() {
4646 checkLibrary('Map m;'); 4646 checkLibrary('Map m;');
4647 } 4647 }
4648 4648
4649 test_type_dynamic() { 4649 test_type_dynamic() {
4650 checkLibrary('dynamic d;'); 4650 checkLibrary('dynamic d;');
4651 } 4651 }
4652 4652
4653 test_type_invalid_topLevelVariableElement_asType() {
4654 checkLibrary(
4655 '''
4656 class C<T extends V> {}
4657 typedef V F(V p);
4658 V f(V p) {}
4659 V V2 = null;
4660 int V = 0;
4661 ''',
4662 allowErrors: true);
4663 }
4664
4653 test_type_invalid_typeParameter_asPrefix() { 4665 test_type_invalid_typeParameter_asPrefix() {
4654 checkLibrary( 4666 checkLibrary(
4655 ''' 4667 '''
4656 class C<T> { 4668 class C<T> {
4657 m(T.K p) {} 4669 m(T.K p) {}
4658 } 4670 }
4659 ''', 4671 ''',
4660 allowErrors: true); 4672 allowErrors: true);
4661 } 4673 }
4662 4674
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
5096 fail('Unexpectedly tried to get unlinked summary for $uri'); 5108 fail('Unexpectedly tried to get unlinked summary for $uri');
5097 } 5109 }
5098 return serializedUnit; 5110 return serializedUnit;
5099 } 5111 }
5100 5112
5101 @override 5113 @override
5102 bool hasLibrarySummary(String uri) { 5114 bool hasLibrarySummary(String uri) {
5103 return true; 5115 return true;
5104 } 5116 }
5105 } 5117 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698