(declaration: Node)
| 969 | : (node as IdentifierReference).name |
| 970 | |
| 971 | export const declaredIds = (declaration: Node): Node[] => |
| 972 | declaration.type === "VariableDeclaration" ? |
| 973 | declaration.declarations.flatMap(declarator => idsOf(declarator.id)) |
| 974 | : "id" in declaration && declaration.id?.type === "Identifier" ? |
| 975 | [declaration.id] |
| 976 | : [] |
| 977 | |
| 978 | export const idsOf = (pattern: Node): Node[] => { |
| 979 | switch (pattern.type) { |
no test coverage detected