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

Function record_is_struct

codegraph-kernel/src/csharp.rs:257–261  ·  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

255/// classifyClassNode (languages/csharp.ts): a record_declaration with an
256/// anonymous `struct` keyword child is a record struct.
257fn record_is_struct(node: Node) -> bool {
258 (0..node.child_count())
259 .filter_map(|i| node.child(i))
260 .any(|c| c.kind() == "struct")
261}
262
263/// csharpExtractor.extractPackage: `name` field ?? first qualified_name /
264/// identifier named child. No trim; None when empty.

Callers 2

visit_nodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected