(target: Node)
| 6527 | } |
| 6528 | |
| 6529 | export const writeOf = (target: Node): Node => { |
| 6530 | const parent = target.parent! |
| 6531 | switch (parent.type) { |
| 6532 | case "AssignmentExpression": |
| 6533 | case "UpdateExpression": |
| 6534 | case "UnaryExpression": |
| 6535 | return parent |
| 6536 | case "ForInStatement": |
| 6537 | case "ForOfStatement": |
| 6538 | return target |
| 6539 | } |
| 6540 | return writeOf(parent) |
| 6541 | } |
| 6542 | |
| 6543 | type TypeContext = Node | { node: Node; parent: TypeContext } |
| 6544 |
no outgoing calls
no test coverage detected