(node: Node, module: SourceModule)
| 7397 | namedFunctionOf(node.parent, module) === node |
| 7398 | |
| 7399 | const initOf = (node: Node, module: SourceModule): Node | undefined => { |
| 7400 | const binding = module.scopes.byId.get(node)?.binding |
| 7401 | return ( |
| 7402 | binding && |
| 7403 | !binding.writes.length && |
| 7404 | binding.declaration.type === "VariableDeclarator" && |
| 7405 | binding.declaration.init |
| 7406 | ) ? |
| 7407 | unwrapExpression(binding.declaration.init) |
| 7408 | : undefined |
| 7409 | } |
| 7410 | |
| 7411 | const compactTextOf = (node: Node, module: SourceModule) => |
| 7412 | module.textOf(node).replace(/\s/g, "") |
no test coverage detected