(node: N)
| 13 | } |
| 14 | |
| 15 | pub fn from_node<N>(node: N) -> Self |
| 16 | where |
| 17 | N: HasNodeIndex, |
| 18 | { |
| 19 | NodeKey(node.node_index().load()) |
| 20 | } |
| 21 | |
| 22 | pub(crate) fn from_node_ref<T>(node_ref: &AstNodeRef<T>) -> Self { |
| 23 | NodeKey(node_ref.index()) |
nothing calls this directly
no test coverage detected