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

Method is_async

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

isAsync: dead hook — `async` never sits inside `modifiers` (it's an anon child after the params) → effectively always false, but PRESENT.

(&self, node: Node)

Source from the content-addressed store, hash-verified

567 /// isAsync: dead hook — `async` never sits inside `modifiers` (it's an
568 /// anon child after the params) → effectively always false, but PRESENT.
569 fn is_async(&self, node: Node) -> bool {
570 (0..node.child_count())
571 .filter_map(|i| node.child(i))
572 .any(|c| c.kind() == "modifiers" && self.text(c).contains("async"))
573 }
574
575 /// extractSwiftReturnType — POSITIONAL: first user_type/optional_type after
576 /// the name simple_identifier, before function_body; last dotted segment;

Callers 2

extract_functionMethod · 0.45
extract_methodMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected