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

Method is_async

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

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