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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend_helpers.dart

Issue 2707933002: Tests for `void`.
Patch Set: More tests. 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
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 dart2js.js_backend.helpers; 5 library dart2js.js_backend.helpers;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show Identifiers, Uris; 8 import '../common/names.dart' show Identifiers, Uris;
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../core_types.dart' show CommonElements, ElementEnvironment; 10 import '../core_types.dart' show CommonElements, ElementEnvironment;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 _jsStringClass ??= _findInterceptorsClass('JSString'); 158 _jsStringClass ??= _findInterceptorsClass('JSString');
159 159
160 ClassEntity _jsArrayClass; 160 ClassEntity _jsArrayClass;
161 ClassEntity get jsArrayClass => 161 ClassEntity get jsArrayClass =>
162 _jsArrayClass ??= _findInterceptorsClass('JSArray'); 162 _jsArrayClass ??= _findInterceptorsClass('JSArray');
163 163
164 ClassEntity _jsNumberClass; 164 ClassEntity _jsNumberClass;
165 ClassEntity get jsNumberClass => 165 ClassEntity get jsNumberClass =>
166 _jsNumberClass ??= _findInterceptorsClass('JSNumber'); 166 _jsNumberClass ??= _findInterceptorsClass('JSNumber');
167 167
168 ClassEntity _voidClass;
169 ClassEntity get voidClass =>
170 _voidClass ??= _findHelperClass("Void");
171
168 ClassEntity _jsIntClass; 172 ClassEntity _jsIntClass;
169 ClassEntity get jsIntClass => _jsIntClass ??= _findInterceptorsClass('JSInt'); 173 ClassEntity get jsIntClass => _jsIntClass ??= _findInterceptorsClass('JSInt');
170 174
171 ClassEntity _jsDoubleClass; 175 ClassEntity _jsDoubleClass;
172 ClassEntity get jsDoubleClass => 176 ClassEntity get jsDoubleClass =>
173 _jsDoubleClass ??= _findInterceptorsClass('JSDouble'); 177 _jsDoubleClass ??= _findInterceptorsClass('JSDouble');
174 178
175 ClassEntity _jsNullClass; 179 ClassEntity _jsNullClass;
176 ClassEntity get jsNullClass => 180 ClassEntity get jsNullClass =>
177 _jsNullClass ??= _findInterceptorsClass('JSNull'); 181 _jsNullClass ??= _findInterceptorsClass('JSNull');
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 ClassEntity get annotationReturnsClass => _findHelperClass('Returns'); 778 ClassEntity get annotationReturnsClass => _findHelperClass('Returns');
775 779
776 ClassEntity get annotationJSNameClass => _findHelperClass('JSName'); 780 ClassEntity get annotationJSNameClass => _findHelperClass('JSName');
777 781
778 FunctionEntity get toStringForNativeObject => 782 FunctionEntity get toStringForNativeObject =>
779 _findHelperFunction('toStringForNativeObject'); 783 _findHelperFunction('toStringForNativeObject');
780 784
781 FunctionEntity get hashCodeForNativeObject => 785 FunctionEntity get hashCodeForNativeObject =>
782 _findHelperFunction('hashCodeForNativeObject'); 786 _findHelperFunction('hashCodeForNativeObject');
783 } 787 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698