(declaration: Node)
| 880 | |
| 881 | // a unit module declares each value as one const, as isUnitModule checks |
| 882 | const declaredNameOf = (declaration: Node): string => |
| 883 | ( |
| 884 | (declaration as Extract<Node, { type: "VariableDeclaration" }>) |
| 885 | .declarations[0].id as { name: string } |
| 886 | ).name |
| 887 | |
| 888 | const isPure = (statement: Node, source: string): boolean => { |
| 889 | switch (statement.type) { |
no outgoing calls
no test coverage detected