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

Function record_is_struct

codegraph-kernel/src/csharp.rs:260–264  ·  view source on GitHub ↗

classifyClassNode (languages/csharp.ts): a record_declaration with an anonymous `struct` keyword child is a record struct.

(node: Node)

Source from the content-addressed store, hash-verified

258/// classifyClassNode (languages/csharp.ts): a record_declaration with an
259/// anonymous `struct` keyword child is a record struct.
260fn record_is_struct(node: Node) -> bool {
261 (0..node.child_count())
262 .filter_map(|i| node.child(i))
263 .any(|c| c.kind() == "struct")
264}
265
266impl<'t> Walker<'t> {
267 fn text(&self, node: Node) -> &'t str {

Callers 2

visit_nodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected