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

Method is_async

codegraph-kernel/src/kotlin.rs:571–575  ·  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

569 /// isAsync: modifiers text includes 'suspend' (text-includes false
570 /// positive on `@suspendMarker` annotations — preserve).
571 fn is_async(&self, node: Node) -> bool {
572 (0..node.child_count())
573 .filter_map(|i| node.child(i))
574 .any(|c| c.kind() == "modifiers" && self.text(c).contains("suspend"))
575 }
576
577 /// `(params): ReturnType` — the positional read TreeSitterExtractor's
578 /// kotlin getSignature does (#1495): the `function_value_parameters` child,

Callers 2

extract_functionMethod · 0.45
extract_methodMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected