144 matches across 1 files for func main lang:Rust path:src/tools/rust-analyzer/crates/ide-completion/src/completions/postfix.rs
snippet_mode: grep · sorted by relevance
src/tools/rust-analyzer/crates/ide-completion/src/completions/postfix.rs RUST 144 matches · showing 5 view file →
115 postfix_snippet("dbg", "dbg!(expr)", format!("dbg!({receiver_text})")).add_to(acc, ctx.db); // fixme
116 postfix_snippet("dbgr", "dbg!(&expr)", format!("dbg!(&{receiver_text})")).add_to(acc, ctx.db);
117 postfix_snippet("call", "function(expr)", format!("${{1}}({receiver_text})"))
118 .add_to(acc, ctx.db);
119
· · ·
123 let is_valid_new = expected_ty
124 .iterate_assoc_items(ctx.db, |item| {
125 if let hir::AssocItem::Function(func) = item
126 && func.name(ctx.db) == hir::sym::new
127 && !func.has_self_param(ctx.db)
· · ·
126 && func.name(ctx.db) == hir::sym::new
127 && !func.has_self_param(ctx.db)
128 {
· · ·
127 && !func.has_self_param(ctx.db)
128 {
129 let params = func.params_without_self(ctx.db);
· · ·
129 let params = func.params_without_self(ctx.db);
130 if params.len() == 1 {
131 return Some(());
+ 139 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.