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

Method is_async

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

494 /// isAsync: dead hook — `async` never sits inside `modifiers` (it's an
495 /// anon child after the params) → effectively always false, but PRESENT.
496 fn is_async(&self, node: Node) -> bool {
497 (0..node.child_count())
498 .filter_map(|i| node.child(i))
499 .any(|c| c.kind() == "modifiers" && self.text(c).contains("async"))
500 }
501
502 /// extractSwiftReturnType — POSITIONAL: first user_type/optional_type after
503 /// the name simple_identifier, before function_body; last dotted segment;

Callers 2

extract_functionMethod · 0.45
extract_methodMethod · 0.45

Calls 1

textMethod · 0.45

Tested by

no test coverage detected