(
node: TSNode,
code: string
)
| 100 | * - `{...}` => object mapping |
| 101 | */ |
| 102 | export function parseKeysArgument( |
| 103 | node: TSNode, |
| 104 | code: string |
| 105 | ): { [key: string]: string } | null | 'empty' { |
| 106 | if (node.type === 'none') { |
| 107 | return null; |
| 108 | } |
| 109 | if (node.type === 'dictionary') { |
| 110 | const parsed = parseDictArgument(node, code); |
| 111 | return parsed ?? 'empty'; |
| 112 | } |
| 113 | return null; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Graph base type constants |
no test coverage detected