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

Side by Side Diff: tests/compiler/dart2js/sourcemaps/data/invokes_test_file.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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 // Test file for testing source mappings of invocations. 5 // Test file for testing source mappings of invocations.
6 6
7 var counter = 0; 7 var counter = 0;
8 8
9 main(args) { 9 main(args) {
10 counter++; 10 counter++;
(...skipping 27 matching lines...) Expand all
38 (parameter)(); 38 (parameter)();
39 39
40 parameter.dynamicInvoke(); 40 parameter.dynamicInvoke();
41 new C(parameter).instanceInvokes(); 41 new C(parameter).instanceInvokes();
42 } 42 }
43 43
44 toplevelFunction() { 44 toplevelFunction() {
45 counter++; 45 counter++;
46 } 46 }
47 47
48 var toplevelField = () { 48 dynamic toplevelField = () {
49 counter++; 49 counter++;
50 }; 50 };
51 51
52 final toplevelFinalField = toplevelFunction; 52 final toplevelFinalField = toplevelFunction;
53 53
54 const toplevelConstField = toplevelFunction; 54 const toplevelConstField = toplevelFunction;
55 55
56 get toplevelGetter => () { 56 get toplevelGetter => () {
57 counter++; 57 counter++;
58 }; 58 };
59 59
60 typedef F(); 60 typedef F();
61 61
62 class B { 62 class B {
63 B(parameter); 63 B(parameter);
64 64
65 superMethod() { 65 superMethod() {
66 counter++; 66 counter++;
67 } 67 }
68 68
69 var superField = () { 69 dynamic superField = () {
70 counter++; 70 counter++;
71 }; 71 };
72 72
73 get superGetter => () { 73 get superGetter => () {
74 counter++; 74 counter++;
75 }; 75 };
76 } 76 }
77 77
78 class C<T> extends B { 78 class C<T> extends B {
79 C(parameter) : super(parameter); 79 C(parameter) : super(parameter);
80 80
81 static staticFunction() { 81 static staticFunction() {
82 counter++; 82 counter++;
83 } 83 }
84 84
85 static var staticField = () { 85 static dynamic staticField = () {
86 counter++; 86 counter++;
87 }; 87 };
88 88
89 static final staticFinalField = staticFunction; 89 static final staticFinalField = staticFunction;
90 90
91 static const staticConstField = staticFunction; 91 static const staticConstField = staticFunction;
92 92
93 static get staticGetter => () { 93 static get staticGetter => () {
94 counter++; 94 counter++;
95 }; 95 };
96 96
97 instanceMethod() { 97 instanceMethod() {
98 counter++; 98 counter++;
99 } 99 }
100 100
101 var instanceField = () { 101 dynamic instanceField = () {
102 counter++; 102 counter++;
103 }; 103 };
104 104
105 get instanceGetter => () { 105 get instanceGetter => () {
106 counter++; 106 counter++;
107 }; 107 };
108 108
109 instanceInvokes() { 109 instanceInvokes() {
110 instanceMethod(); 110 instanceMethod();
111 this.instanceMethod(); 111 this.instanceMethod();
112 instanceField(); 112 instanceField();
113 this.instanceField(); 113 this.instanceField();
114 instanceGetter(); 114 instanceGetter();
115 this.instanceGetter(); 115 this.instanceGetter();
116 116
117 super.superMethod(); 117 super.superMethod();
118 super.superField(); 118 super.superField();
119 super.superGetter(); 119 super.superGetter();
120 120
121 C(); 121 C();
122 dynamic(); 122 dynamic();
123 F(); 123 F();
124 T(); 124 T();
125 } 125 }
126 } 126 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/source_map_validator_helper.dart ('k') | tests/compiler/dart2js/sourcemaps/diff_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698