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

Method lua_static_field_name

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

Source from the content-addressed store, hash-verified

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,

Callers 2

lua_assignment_targetMethod · 0.80

Calls 2

walkMethod · 0.80
textMethod · 0.65

Tested by

no test coverage detected