OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /** | 5 /** |
6 * This part contains helpers for supporting runtime type information. | 6 * This part contains helpers for supporting runtime type information. |
7 * | 7 * |
8 * The helper use a mixture of Dart and JavaScript objects. To indicate which is | 8 * The helper use a mixture of Dart and JavaScript objects. To indicate which is |
9 * used where we adopt the scheme of using explicit type annotation for Dart | 9 * used where we adopt the scheme of using explicit type annotation for Dart |
10 * objects and 'var' or omitted return type for JavaScript objects. | 10 * objects and 'var' or omitted return type for JavaScript objects. |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 * and [t] are Dart values. | 697 * and [t] are Dart values. |
698 */ | 698 */ |
699 bool isIdentical(var s, var t) => JS('bool', '# === #', s, t); | 699 bool isIdentical(var s, var t) => JS('bool', '# === #', s, t); |
700 | 700 |
701 /** | 701 /** |
702 * Returns [:true:] if the JavaScript values [s] and [t] are not identical. We | 702 * Returns [:true:] if the JavaScript values [s] and [t] are not identical. We |
703 * use this helper to avoid generating code under the invalid assumption that | 703 * use this helper to avoid generating code under the invalid assumption that |
704 * [s] and [t] are Dart values. | 704 * [s] and [t] are Dart values. |
705 */ | 705 */ |
706 bool isNotIdentical(var s, var t) => JS('bool', '# !== #', s, t); | 706 bool isNotIdentical(var s, var t) => JS('bool', '# !== #', s, t); |
OLD | NEW |