126 matches across 1 files for func main path:src/tools/rust-analyzer/crates/ide-completion/src/completions/postfix.rs lang:Rust
snippet_mode: grep · sorted by relevance
src/tools/rust-analyzer/crates/ide-completion/src/completions/postfix.rs RUST 126 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
· · ·
547 check(
548 r#"
549fn main() {
550 let bar = true;
551 bar.$0
· · ·
554 expect![[r#"
555 sn box Box::new(expr)
556 sn call function(expr)
557 sn const const {}
558 sn dbg dbg!(expr)
· · ·
574
575 #[test]
576 fn postfix_completion_works_for_function_calln() {
577 check(
578 r#"
· · ·
581}
582
583fn main() {
584 let bar = true;
585 foo(bar.$0)
+ 121 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.