MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / lua_static_field_name

Method lua_static_field_name

codegraph-kernel/src/lua.rs:655–672  ·  view source on GitHub ↗
(&self, node: Node<'t>, bracketed: bool)

Source from the content-addressed store, hash-verified

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,

Callers 2

lua_assignment_targetMethod · 0.80

Calls 2

walkMethod · 0.80
textMethod · 0.65

Tested by

no test coverage detected