We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a05fcc commit bd062c7Copy full SHA for bd062c7
crates/ide-completion/src/render/function.rs
@@ -154,11 +154,12 @@ fn render(
154
item
155
}
156
157
-/// When typing `::` of a type, the preferred orderer is:
+/// When typing `::` of a type, the preferred order is:
158
/// * Constructors: new like functions to be able to create the type,
159
/// * Constructors that take args: Any other function that creates Self
160
/// * Builder Methods: any builder methods available
161
-/// * Regular methods
+/// * Regular methods & Associated functions
162
+///
163
fn calculate_bonus(ctx: &RenderContext<'_>, func: hir::Function, db: &dyn HirDatabase) -> u32 {
164
if ctx.token().kind() != syntax::SyntaxKind::COLON2 || func.self_param(db).is_some() {
165
return 0;
0 commit comments