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