(t: Type)
| 131 | } |
| 132 | |
| 133 | function assertIsClass(t: Type): ClassType { |
| 134 | if (!(t instanceof ClassType)) { |
| 135 | return panic("Supposed class type is not a class type"); |
| 136 | } |
| 137 | return t; |
| 138 | } |
| 139 | |
| 140 | function makeImmutablePath(path: Ref): List<any> { |
| 141 | return path.map(pe => fromJS(pe)); |