(&self, node: Node<'t>, bracketed: bool)
| 653 | } |
| 654 | |
| 655 | fn lua_static_field_name(&self, node: Node<'t>, bracketed: bool) -> String { |
| 656 | if node.kind() == "identifier" { |
| 657 | return if bracketed { |
| 658 | String::new() |
| 659 | } else { |
| 660 | self.text(node).trim().to_string() |
| 661 | }; |
| 662 | } |
| 663 | if node.kind() == "string" { |
| 664 | let mut cursor = node.walk(); |
| 665 | for child in node.named_children(&mut cursor) { |
| 666 | if child.kind() == "string_content" { |
| 667 | return self.text(child).trim().to_string(); |
| 668 | } |
| 669 | } |
| 670 | } |
| 671 | String::new() |
| 672 | } |
| 673 | |
| 674 | fn extract_lua_function_value( |
| 675 | &mut self, |
no test coverage detected