pub trait FunctionCallHook: Provider {
// Provided methods
fn before_function_call(
&self,
_call: &FunctionCall<'_>,
_context: &mut HookContext<'_, '_>,
) -> HookResult<ExpressionHookResult> { ... }
fn after_function_call(
&self,
_call: &FunctionCall<'_>,
_context: &mut HookContext<'_, '_>,
) -> HookResult<()> { ... }
}Expand description
Hook trait for intercepting function call analysis.
This hook receives the real AST function call node and full mutable context, allowing hooks to inspect calls, report issues, modify analysis state, and optionally skip analysis with a custom return type.
Provided Methods§
Sourcefn before_function_call(
&self,
_call: &FunctionCall<'_>,
_context: &mut HookContext<'_, '_>,
) -> HookResult<ExpressionHookResult>
fn before_function_call( &self, _call: &FunctionCall<'_>, _context: &mut HookContext<'_, '_>, ) -> HookResult<ExpressionHookResult>
Called before a function call is analyzed.
Return ExpressionHookResult::Continue to proceed with normal analysis,
ExpressionHookResult::Skip to skip analysis (type will be mixed), or
ExpressionHookResult::SkipWithType(ty) to skip with a custom return type.
Sourcefn after_function_call(
&self,
_call: &FunctionCall<'_>,
_context: &mut HookContext<'_, '_>,
) -> HookResult<()>
fn after_function_call( &self, _call: &FunctionCall<'_>, _context: &mut HookContext<'_, '_>, ) -> HookResult<()>
Called after a function call has been analyzed.