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

Method is_async

codegraph-kernel/src/python.rs:397–399  ·  view source on GitHub ↗

pythonExtractor.isAsync: the PREVIOUS SIBLING token is `async`.

(&self, node: Node)

Source from the content-addressed store, hash-verified

395
396 /// pythonExtractor.isAsync: the PREVIOUS SIBLING token is `async`.
397 fn is_async(&self, node: Node) -> bool {
398 node.prev_sibling().map(|p| p.kind() == "async").unwrap_or(false)
399 }
400
401 /// pythonExtractor.isStatic: preceding decorator mentioning `staticmethod`.
402 fn is_static(&self, node: Node) -> bool {

Callers 2

extract_functionMethod · 0.45
extract_methodMethod · 0.45

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected