MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / is_static

Function is_static

parser/src/parsing/function.rs:189–194  ·  view source on GitHub ↗
(signature: &syn::Signature)

Source from the content-addressed store, hash-verified

187}
188
189fn is_static(signature: &syn::Signature) -> bool {
190 !signature
191 .inputs
192 .iter()
193 .any(|fn_arg| matches!(fn_arg, syn::FnArg::Receiver(_)))
194}
195
196fn parse_nested_func(parent_breakpoint: FunctionDef, block: &syn::Block) -> Vec<FunctionDef> {
197 let mut nested_func = block.stmts.iter().fold(Vec::new(), |mut acc, stmt| {

Callers 1

parseMethod · 0.85

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected