MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / call_module

Function call_module

plugins/ast/python/src/lib.rs:573–581  ·  view source on GitHub ↗

Leading dotted segment: `models.CharField` -> "models", bare `Column` -> None.

(func: &Expression)

Source from the content-addressed store, hash-verified

571
572/// Leading dotted segment: `models.CharField` -> "models", bare `Column` -> None.
573fn call_module(func: &Expression) -> Option<String> {
574 if let Expression::Attribute(AttributeExpression { value, .. }) = func {
575 if let Expression::Name(NameExpression { id, .. }) = &**value {
576 return Some(id.to_string());
577 }
578 }
579
580 None
581}
582
583/// Render a dotted name expression: `models.Model` -> "models.Model", `Base` -> "Base".
584fn dotted(expression: &Expression) -> Option<String> {

Callers 1

analyze_callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected