Function frame_support_procedural_tools::is_using_frame_crate

source ยท
pub fn is_using_frame_crate(path: &Path) -> bool
Expand description

Check if a path is using the frame crate or not.

This will usually check the output of generate_access_from_frame_or_crate. We want to know if whatever the path takes us to, is exported from frame or not. In that case path would start with frame, something like polkadot_sdk_frame::x::y:z or frame::x::y:z.