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

Function wrapped_operand

codegraph-kernel/src/swift.rs:145–147  ·  view source on GitHub ↗

swiftWrappedOperand: the operand a call wrapper wraps.

(node: Node<'t>)

Source from the content-addressed store, hash-verified

143
144/// swiftWrappedOperand: the operand a call wrapper wraps.
145fn wrapped_operand<'t>(node: Node<'t>) -> Option<Node<'t>> {
146 node.child_by_field_name(if node.kind() == "prefix_expression" { "target" } else { "expr" })
147}
148
149/// peelSwiftCallWrappers: strip call wrappers off a callee or receiver.
150fn peel_call_wrappers<'t>(node: Node<'t>, src: &str) -> Node<'t> {

Callers 2

peel_call_wrappersFunction · 0.85
unwrapped_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected