(node: Node)
| 1033 | (kind & (kinds.holder | kinds.unknown)) !== 0 |
| 1034 | |
| 1035 | const isPrimitiveNode = (node: Node): boolean => |
| 1036 | (node.type === "Literal" && !("regex" in node && node.regex)) || |
| 1037 | node.type === "TemplateLiteral" || |
| 1038 | node.type === "UnaryExpression" |
| 1039 | |
| 1040 | // e.g. `{ o, toString() { ... } }`, whose conversion calls a method with what it holds |
| 1041 | const isMethodHolder = (node: Node): boolean => |