(strandsContext, dep)
| 327 | } |
| 328 | |
| 329 | export function castToFloat(strandsContext, dep) { |
| 330 | const { id, dimension } = functionCallNode( |
| 331 | strandsContext, |
| 332 | strandsContext.backend.getTypeName('float', dep.typeInfo().dimension), |
| 333 | [dep], |
| 334 | { |
| 335 | overloads: [{ |
| 336 | params: [dep.typeInfo()], |
| 337 | returnType: { |
| 338 | ...dep.typeInfo(), |
| 339 | baseType: BaseType.FLOAT, |
| 340 | }, |
| 341 | }], |
| 342 | } |
| 343 | ); |
| 344 | return createStrandsNode(id, dimension, strandsContext); |
| 345 | } |
| 346 | |
| 347 | export function structConstructorNode(strandsContext, structTypeInfo, rawUserArgs) { |
| 348 | const { cfg, dag } = strandsContext; |
no test coverage detected