| OLD | NEW |
| 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 /* This library defines the representation of runtime types. | 5 /* This library defines the representation of runtime types. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 dart_library.library('dart_runtime/_types', null, /* Imports */[ | 8 dart_library.library('dart/_types', null, /* Imports */[ |
| 9 ], /* Lazy Imports */[ | 9 ], /* Lazy Imports */[ |
| 10 'dart/core', | 10 'dart/core', |
| 11 'dart_runtime/_classes', | 11 'dart/_classes', |
| 12 'dart_runtime/_rtti' | 12 'dart/_rtti' |
| 13 ], function(exports, core, classes, rtti) { | 13 ], function(exports, core, classes, rtti) { |
| 14 'use strict'; | 14 'use strict'; |
| 15 | 15 |
| 16 const getOwnPropertyNames = Object.getOwnPropertyNames; | 16 const getOwnPropertyNames = Object.getOwnPropertyNames; |
| 17 | 17 |
| 18 const assert = dart_utils.assert; | 18 const assert = dart_utils.assert; |
| 19 | 19 |
| 20 /** | 20 /** |
| 21 * Types in dart are represented at runtime as follows. | 21 * Types in dart are represented at runtime as follows. |
| 22 * - Normal nominal types, produced from classes, are represented | 22 * - Normal nominal types, produced from classes, are represented |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 let typeArgs = classes.getGenericArgs(type); | 537 let typeArgs = classes.getGenericArgs(type); |
| 538 if (!typeArgs) return true; | 538 if (!typeArgs) return true; |
| 539 for (let t of typeArgs) { | 539 for (let t of typeArgs) { |
| 540 if (t != core.Object && t != dynamicR) return false; | 540 if (t != core.Object && t != dynamicR) return false; |
| 541 } | 541 } |
| 542 return true; | 542 return true; |
| 543 } | 543 } |
| 544 exports.isGroundType = isGroundType; | 544 exports.isGroundType = isGroundType; |
| 545 | 545 |
| 546 }); | 546 }); |
| OLD | NEW |