Extract the name of a node by looking for a "name" field child.
(state: &ExtractionState, node: TsNode<'_>)
| 926 | |
| 927 | /// Extract the name of a node by looking for a "name" field child. |
| 928 | fn extract_name(state: &ExtractionState, node: TsNode<'_>) -> Option<String> { |
| 929 | node.child_by_field_name("name").map(|n| state.node_text(n)) |
| 930 | } |
| 931 | |
| 932 | /// Extract Java visibility from modifiers child. |
| 933 | fn extract_java_visibility(node: TsNode<'_>, state: &ExtractionState) -> Visibility { |