Home
last modified time | relevance | path

Searched refs:self_param (Results 1 – 25 of 109) sorted by relevance

12345

/dports/devel/pytype/pytype-2021.9.9/pytype/
H A Doverlay_utils.py44 return_type=None, self_param=None, varargs=None, kwargs=None, argument
83 self_param = [self_param or Param("self", None, None)]
85 self_param = [Param("cls", None, None)]
88 self_param = []
91 params = self_param + params
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/ide/src/
H A Drename.rs90 if let Some(self_param) = local.as_self_param(sema.db) { in rename()
92 return rename_self_to_param(&sema, local, self_param, new_name); in rename()
214 if fn_def.self_param(sema.db).is_some() { in rename_to_self()
237 let (ty, self_param) = if impl_ty.remove_ref().is_some() { in rename_to_self()
261 TextEdit::replace(param_source.syntax().text_range(), String::from(self_param)), in rename_to_self()
269 self_param: hir::SelfParam, in rename_self_to_param()
280 let InFile { file_id, value: self_param } = in rename_self_to_param()
285 let edit = text_edit_from_self_param(&self_param, new_name) in rename_self_to_param()
306 let impl_def = self_param.syntax().ancestors().find_map(ast::Impl::cast)?; in text_edit_from_self_param()
311 match (self_param.amp_token(), self_param.mut_token()) { in text_edit_from_self_param()
[all …]
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/ide/src/
H A Drename.rs90 if let Some(self_param) = local.as_self_param(sema.db) { in rename()
92 return rename_self_to_param(&sema, local, self_param, new_name); in rename()
214 if fn_def.self_param(sema.db).is_some() { in rename_to_self()
237 let (ty, self_param) = if impl_ty.remove_ref().is_some() { in rename_to_self()
261 TextEdit::replace(param_source.syntax().text_range(), String::from(self_param)), in rename_to_self()
269 self_param: hir::SelfParam, in rename_self_to_param()
280 let InFile { file_id, value: self_param } = in rename_self_to_param()
285 let edit = text_edit_from_self_param(&self_param, new_name) in rename_self_to_param()
306 let impl_def = self_param.syntax().ancestors().find_map(ast::Impl::cast)?; in text_edit_from_self_param()
311 match (self_param.amp_token(), self_param.mut_token()) { in text_edit_from_self_param()
[all …]
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/
H A Dunused_self.rs52 if let [self_param, ..] = body.params; in check_impl_item()
53 if !is_local_used(cx, body, self_param.pat.hir_id); in check_impl_item()
58 self_param.span, in check_impl_item()
H A Dto_string_in_display.rs85 let self_param = &body.params[0]; in check_impl_item() localVariable
86 self.self_hir_id = Some(self_param.pat.hir_id); in check_impl_item()
H A Dneedless_arbitrary_self_type.rs78 let self_param = match (binding_mode, mutbl) { in check_param_inner() localVariable
107 self_param, in check_param_inner()
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/ide_assists/src/handlers/
H A Dgenerate_enum_projection_method.rs46 self_param: "self", in generate_enum_try_into_method()
90 self_param: "&self", in generate_enum_as_method()
101 self_param: &'static str, field
154 props.self_param, in generate_enum_projection_method()
H A Dintroduce_named_lifetime.rs61 let self_param = in generate_fn_def_assist() localVariable
63 param_list.self_param().filter(|p| p.lifetime().is_none() && p.amp_token().is_some()); in generate_fn_def_assist()
65 let loc_needing_lifetime = if let Some(self_param) = self_param { in generate_fn_def_assist()
67 Some(NeedsLifetime::SelfParam(self_param)) in generate_fn_def_assist()
H A Dgenerate_documentation_template.rs262 let self_param = ast_func.param_list()?.self_param()?; in is_ref_mut_self() localVariable
263 Some(self_param.mut_token().is_some() && self_param.amp_token().is_some()) in is_ref_mut_self()
324 let function_call = if param_list.self_param().is_some() { in function_call()
339 param_list.params().count() + if param_list.self_param().is_some() { 1 } else { 0 } in count_parameters()
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/ide_assists/src/handlers/
H A Dgenerate_enum_projection_method.rs46 self_param: "self", in generate_enum_try_into_method()
90 self_param: "&self", in generate_enum_as_method()
101 self_param: &'static str, field
154 props.self_param, in generate_enum_projection_method()
H A Dintroduce_named_lifetime.rs61 let self_param = in generate_fn_def_assist() localVariable
63 param_list.self_param().filter(|p| p.lifetime().is_none() && p.amp_token().is_some()); in generate_fn_def_assist()
65 let loc_needing_lifetime = if let Some(self_param) = self_param { in generate_fn_def_assist()
67 Some(NeedsLifetime::SelfParam(self_param)) in generate_fn_def_assist()
/dports/devel/py-jedi/jedi-0.18.0/jedi/api/refactoring/
H A Dextract.py256 self_param = None
261 self_param = function_param_names[0].string_name
262 params = [p for p in params if p != self_param]
272 ', '.join(params if self_param is None else [self_param] + params),
277 ('' if self_param is None else self_param + '.') + name,
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/ide_completion/src/render/
H A Dfunction.rs134 if let Some(self_param) = self.func.self_param(self.ctx.db()) { in params_display()
142 std::iter::once(self_param.display(self.ctx.db()).to_owned()).chain(params).join(", ") in params_display()
165 .self_param() in params()
177 if self.func.self_param(self.ctx.db()).is_some() { in kind()
H A Dbuilder_ext.rs87 Either::Left(self_param) => ( in add_call_parens()
88 match self_param.kind() { in add_call_parens()
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/ide_completion/src/render/
H A Dfunction.rs136 if let Some(self_param) = self.func.self_param(self.ctx.db()) { in params_display()
144 std::iter::once(self_param.display(self.ctx.db()).to_owned()).chain(params).join(", ") in params_display()
173 .self_param() in params()
185 if self.func.self_param(self.ctx.db()).is_some() { in kind()
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/syntax/src/
H A Ddisplay.rs38 .self_param() in function_declaration()
40 .map(|self_param| self_param.to_string()) in function_declaration()
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/syntax/src/
H A Ddisplay.rs34 .self_param() in function_declaration()
36 .map(|self_param| self_param.to_string()) in function_declaration()
/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/derive_builder_core-0.10.2/src/
H A Dsetter.rs90 let self_param: TokenStream; in to_tokens() localVariable
96 self_param = quote!(self); in to_tokens()
101 self_param = quote!(&mut self); in to_tokens()
106 self_param = quote!(&self); in to_tokens()
133 #vis fn #ident #ty_params (#self_param, value: #param_ty) in to_tokens()
150 #vis fn #try_ident #try_ty_params (#self_param, value: VALUE) in to_tokens()
165 #vis fn #ident_each <VALUE>(#self_param, item: VALUE) -> #return_ty in to_tokens()
/dports/audio/gnome-podcasts/podcasts-c86f7bfdef7692bbf20f315a90450321f6ca9ce7/cargo-crates/derive_builder_core-0.10.2/src/
H A Dsetter.rs90 let self_param: TokenStream; in to_tokens() localVariable
96 self_param = quote!(self); in to_tokens()
101 self_param = quote!(&mut self); in to_tokens()
106 self_param = quote!(&self); in to_tokens()
133 #vis fn #ident #ty_params (#self_param, value: #param_ty) in to_tokens()
150 #vis fn #try_ident #try_ty_params (#self_param, value: VALUE) in to_tokens()
165 #vis fn #ident_each <VALUE>(#self_param, item: VALUE) -> #return_ty in to_tokens()
/dports/www/ffsend/ffsend-ccd489ce2e75b91c0f17fbf13dbd91fe84f5ad98/cargo-crates/derive_builder_core-0.10.2/src/
H A Dsetter.rs90 let self_param: TokenStream; in to_tokens() localVariable
96 self_param = quote!(self); in to_tokens()
101 self_param = quote!(&mut self); in to_tokens()
106 self_param = quote!(&self); in to_tokens()
133 #vis fn #ident #ty_params (#self_param, value: #param_ty) in to_tokens()
150 #vis fn #try_ident #try_ty_params (#self_param, value: VALUE) in to_tokens()
165 #vis fn #ident_each <VALUE>(#self_param, item: VALUE) -> #return_ty in to_tokens()
/dports/security/arti/arti-9d0ede26801cdb182daa85c3eb5f0058dc178eb6/cargo-crates/derive_builder_core-0.10.2/src/
H A Dsetter.rs90 let self_param: TokenStream; in to_tokens() localVariable
96 self_param = quote!(self); in to_tokens()
101 self_param = quote!(&mut self); in to_tokens()
106 self_param = quote!(&self); in to_tokens()
133 #vis fn #ident #ty_params (#self_param, value: #param_ty) in to_tokens()
150 #vis fn #try_ident #try_ty_params (#self_param, value: VALUE) in to_tokens()
165 #vis fn #ident_each <VALUE>(#self_param, item: VALUE) -> #return_ty in to_tokens()
/dports/audio/gnome-podcasts/podcasts-c86f7bfdef7692bbf20f315a90450321f6ca9ce7/cargo-crates/derive_builder_core-0.9.0/src/
H A Dsetter.rs95 let self_param: TokenStream; in to_tokens() localVariable
101 self_param = quote!(self); in to_tokens()
106 self_param = quote!(&mut self); in to_tokens()
111 self_param = quote!(&self); in to_tokens()
136 #vis fn #ident #ty_params (#self_param, value: #param_ty) in to_tokens()
153 #vis fn #try_ident #try_ty_params (#self_param, value: VALUE) in to_tokens()
/dports/www/ffsend/ffsend-ccd489ce2e75b91c0f17fbf13dbd91fe84f5ad98/cargo-crates/derive_builder_core-0.9.0/src/
H A Dsetter.rs95 let self_param: TokenStream; in to_tokens() localVariable
101 self_param = quote!(self); in to_tokens()
106 self_param = quote!(&mut self); in to_tokens()
111 self_param = quote!(&self); in to_tokens()
136 #vis fn #ident #ty_params (#self_param, value: #param_ty) in to_tokens()
153 #vis fn #try_ident #try_ty_params (#self_param, value: VALUE) in to_tokens()
/dports/audio/spotify-tui/spotify-tui-0.25.0/cargo-crates/derive_builder_core-0.5.0/src/
H A Dsetter.rs92 let self_param: TokenStream; in to_tokens() localVariable
98 self_param = quote!(self); in to_tokens()
103 self_param = quote!(&mut self); in to_tokens()
108 self_param = quote!(&self); in to_tokens()
133 #vis fn #ident #ty_params (#self_param, value: #param_ty) in to_tokens()
150 #vis fn #try_ident #try_ty_params (#self_param, value: VALUE) in to_tokens()
/dports/audio/spotifyd/spotifyd-0.3.0/cargo-crates/derive_builder_core-0.5.0/src/
H A Dsetter.rs92 let self_param: TokenStream; in to_tokens() localVariable
98 self_param = quote!(self); in to_tokens()
103 self_param = quote!(&mut self); in to_tokens()
108 self_param = quote!(&self); in to_tokens()
133 #vis fn #ident #ty_params (#self_param, value: #param_ty) in to_tokens()
150 #vis fn #try_ident #try_ty_params (#self_param, value: VALUE) in to_tokens()

12345