* Find a key for a Editor node.
(editor: Editor, node: Node)
| 272 | */ |
| 273 | |
| 274 | findKey(editor: Editor, node: Node): Key { |
| 275 | let key = NODE_TO_KEY.get(node) |
| 276 | |
| 277 | if (!key) { |
| 278 | key = new Key() |
| 279 | NODE_TO_KEY.set(node, key) |
| 280 | } |
| 281 | |
| 282 | return key |
| 283 | }, |
| 284 | |
| 285 | /** |
| 286 | * Find the path of Editor node. |
nothing calls this directly
no test coverage detected
searching dependent graphs…