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

Method is_async

codegraph-kernel/src/swift.rs:568–572  ·  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

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