95 matches across 1 files for func main path:src/tools/rust-analyzer/crates/ide-assists/src/handlers/inline_call.rs
snippet_mode: auto · sorted by relevance
src/tools/rust-analyzer/crates/ide-assists/src/handlers/inline_call.rs RUST 95 matches · showing 5 view file →
34// Assist: inline_into_callers
35//
36// Inline a function or method body into all of its callers where possible, creating a `let` statement per parameter
37// unless the parameter can be inlined. The parameter will be inlined either if it the supplied argument is a simple local
38// or if the parameter is only accessed inside the function body once.
· · ·
38// or if the parameter is only accessed inside the function body once.
39// If all calls can be inlined the function will be removed.
40//
· · ·
39// If all calls can be inlined the function will be removed.
40//
41// ```
· · ·
74 let vfs_def_file = ctx.vfs_file_id();
75 let name = ctx.find_node_at_offset::<ast::Name>()?;
76 let ast_func = name.syntax().parent().and_then(ast::Fn::cast)?;
77 let func_body = ast_func.body()?;
78 let param_list = ast_func.param_list()?;
· · ·
77 let func_body = ast_func.body()?;
78 let param_list = ast_func.param_list()?;
79
+ 90 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.