* Convert a property map, handling nested maps and parameter references. * Transforms NestedMap AST nodes into plain objects.
(props: Record<string, unknown> | undefined)
| 579 | * Transforms NestedMap AST nodes into plain objects. |
| 580 | */ |
| 581 | function convertPropertyMap(props: Record<string, unknown> | undefined): Record<string, unknown> { |
| 582 | if (!props) return {}; |
| 583 | |
| 584 | const result: Record<string, unknown> = {}; |
| 585 | for (const [key, value] of Object.entries(props)) { |
| 586 | result[key] = convertNestedPropertyValue(value); |
| 587 | } |
| 588 | return result; |
| 589 | } |
| 590 | |
| 591 | /** |
| 592 | * Convert a single property value, handling NestedMap, ListLiteral, and ParameterRef. |
no test coverage detected