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

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

Issue 1569893002: Add some corner cases for resynthesis of field formal parameters. (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
« no previous file with comments | « no previous file | 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/src/generated/element.dart'; 7 import 'package:analyzer/src/generated/element.dart';
8 import 'package:analyzer/src/generated/source.dart'; 8 import 'package:analyzer/src/generated/source.dart';
9 import 'package:analyzer/src/summary/base.dart'; 9 import 'package:analyzer/src/summary/base.dart';
10 import 'package:analyzer/src/summary/format.dart'; 10 import 'package:analyzer/src/summary/format.dart';
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 } 587 }
588 588
589 test_class_constructor_external() { 589 test_class_constructor_external() {
590 checkLibrary('class C { external C(); }'); 590 checkLibrary('class C { external C(); }');
591 } 591 }
592 592
593 test_class_constructor_factory() { 593 test_class_constructor_factory() {
594 checkLibrary('class C { factory C() => null; }'); 594 checkLibrary('class C { factory C() => null; }');
595 } 595 }
596 596
597 test_class_constructor_field_formal_dynamic_dynamic() {
598 checkLibrary('class C { dynamic x; C(dynamic this.x); }');
599 }
600
601 test_class_constructor_field_formal_dynamic_typed() {
602 checkLibrary('class C { dynamic x; C(int this.x); }');
603 }
604
605 test_class_constructor_field_formal_dynamic_untyped() {
606 checkLibrary('class C { dynamic x; C(this.x); }');
607 }
608
609 test_class_constructor_field_formal_typed_dynamic() {
610 checkLibrary('class C { num x; C(dynamic this.x); }');
611 }
612
613 test_class_constructor_field_formal_typed_typed() {
614 checkLibrary('class C { num x; C(int this.x); }');
615 }
616
617 test_class_constructor_field_formal_typed_untyped() {
618 checkLibrary('class C { num x; C(this.x); }');
619 }
620
621 test_class_constructor_field_formal_untyped_dynamic() {
622 checkLibrary('class C { var x; C(dynamic this.x); }');
623 }
624
625 test_class_constructor_field_formal_untyped_typed() {
626 checkLibrary('class C { var x; C(int this.x); }');
627 }
628
629 test_class_constructor_field_formal_untyped_untyped() {
630 checkLibrary('class C { var x; C(this.x); }');
631 }
632
597 test_class_constructor_implicit() { 633 test_class_constructor_implicit() {
598 checkLibrary('class C {}'); 634 checkLibrary('class C {}');
599 } 635 }
600 636
601 test_class_constructor_implicit_type_params() { 637 test_class_constructor_implicit_type_params() {
602 checkLibrary('class C<T, U> {}'); 638 checkLibrary('class C<T, U> {}');
603 } 639 }
604 640
605 test_class_constructor_params() { 641 test_class_constructor_params() {
606 checkLibrary('class C { C(x, y); }'); 642 checkLibrary('class C { C(x, y); }');
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 } 1145 }
1110 1146
1111 test_variable_implicit_type() { 1147 test_variable_implicit_type() {
1112 checkLibrary('var x;'); 1148 checkLibrary('var x;');
1113 } 1149 }
1114 1150
1115 test_variables() { 1151 test_variables() {
1116 checkLibrary('int i; int j;'); 1152 checkLibrary('int i; int j;');
1117 } 1153 }
1118 } 1154 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698