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

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

Issue 1602263002: Fix summarization of trailing `dynamic` type arguments. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/element/element.dart'; 7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/dart/element/type.dart'; 8 import 'package:analyzer/dart/element/type.dart';
9 import 'package:analyzer/src/dart/element/element.dart'; 9 import 'package:analyzer/src/dart/element/element.dart';
10 import 'package:analyzer/src/dart/element/type.dart'; 10 import 'package:analyzer/src/dart/element/type.dart';
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 } 1341 }
1342 1342
1343 test_setter_external() { 1343 test_setter_external() {
1344 checkLibrary('external void set x(int value);'); 1344 checkLibrary('external void set x(int value);');
1345 } 1345 }
1346 1346
1347 test_setters() { 1347 test_setters() {
1348 checkLibrary('void set x(int value) {} set y(value) {}'); 1348 checkLibrary('void set x(int value) {} set y(value) {}');
1349 } 1349 }
1350 1350
1351 test_type_arguments_explicit() { 1351 test_type_arguments_explicit_dynamic_dynamic() {
1352 checkLibrary('Map<dynamic, dynamic> m;');
1353 }
1354
1355 test_type_arguments_explicit_dynamic_int() {
1356 checkLibrary('Map<dynamic, int> m;');
1357 }
1358
1359 test_type_arguments_explicit_String_dynamic() {
1360 checkLibrary('Map<String, dynamic> m;');
1361 }
1362
1363 test_type_arguments_explicit_String_int() {
1352 checkLibrary('Map<String, int> m;'); 1364 checkLibrary('Map<String, int> m;');
1353 } 1365 }
1354 1366
1355 test_type_arguments_implicit() { 1367 test_type_arguments_implicit() {
1356 checkLibrary('Map m;'); 1368 checkLibrary('Map m;');
1357 } 1369 }
1358 1370
1359 test_type_dynamic() { 1371 test_type_dynamic() {
1360 checkLibrary('dynamic d;'); 1372 checkLibrary('dynamic d;');
1361 } 1373 }
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1628 fail('Unexpectedly tried to get unlinked summary for $uri'); 1640 fail('Unexpectedly tried to get unlinked summary for $uri');
1629 } 1641 }
1630 return serializedUnit; 1642 return serializedUnit;
1631 } 1643 }
1632 1644
1633 @override 1645 @override
1634 bool hasLibrarySummary(String uri) { 1646 bool hasLibrarySummary(String uri) {
1635 return true; 1647 return true;
1636 } 1648 }
1637 } 1649 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_elements.dart ('k') | pkg/analyzer/test/src/summary/summary_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698