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

Side by Side Diff: tool/input_sdk/private/js_number.dart

Issue 1170813008: fixes detection of SDK libraries (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of _interceptors; 5 part of dart._interceptors;
6 6
7 /** 7 /**
8 * The super interceptor class for [JSInt] and [JSDouble]. The compiler 8 * The super interceptor class for [JSInt] and [JSDouble]. The compiler
9 * recognizes this class as an interceptor, and changes references to 9 * recognizes this class as an interceptor, and changes references to
10 * [:this:] to actually use the receiver of the method, which is 10 * [:this:] to actually use the receiver of the method, which is
11 * generated as an extra argument added to each member. 11 * generated as an extra argument added to each member.
12 * 12 *
13 * Note that none of the methods here delegate to a method defined on JSInt or 13 * Note that none of the methods here delegate to a method defined on JSInt or
14 * JSDouble. This is exploited in [tryComputeConstantInterceptor]. 14 * JSDouble. This is exploited in [tryComputeConstantInterceptor].
15 */ 15 */
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 } 416 }
417 417
418 class JSDouble extends JSNumber implements double { 418 class JSDouble extends JSNumber implements double {
419 const JSDouble(); 419 const JSDouble();
420 Type get runtimeType => double; 420 Type get runtimeType => double;
421 } 421 }
422 422
423 class JSPositiveInt extends JSInt {} 423 class JSPositiveInt extends JSInt {}
424 class JSUInt32 extends JSPositiveInt {} 424 class JSUInt32 extends JSPositiveInt {}
425 class JSUInt31 extends JSUInt32 {} 425 class JSUInt31 extends JSUInt32 {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698