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

Method is_async

codegraph-kernel/src/kotlin.rs:486–490  ·  view source on GitHub ↗

isAsync: modifiers text includes 'suspend' (text-includes false positive on `@suspendMarker` annotations — preserve).

(&self, node: Node)

Source from the content-addressed store, hash-verified

484 /// isAsync: modifiers text includes 'suspend' (text-includes false
485 /// positive on `@suspendMarker` annotations — preserve).
486 fn is_async(&self, node: Node) -> bool {
487 (0..node.child_count())
488 .filter_map(|i| node.child(i))
489 .any(|c| c.kind() == "modifiers" && self.text(c).contains("suspend"))
490 }
491
492 /// extractKotlinReturnType — positional: the first user_type/nullable_type
493 /// AFTER function_value_parameters; function_body/type_constraints first →

Callers 2

extract_functionMethod · 0.45
extract_methodMethod · 0.45

Calls 1

textMethod · 0.45

Tested by

no test coverage detected