Lines Matching defs:res

63         let mut res = Self::new(name, ident, None, argument_casing, env_casing, kind);
65 res.infer_kind(&parsed_attrs)?;
66 res.push_attrs(&parsed_attrs)?;
67 res.push_doc_comment(attrs, "about", Some("long_about"));
69 Ok(res)
80 let mut res = Self::new(name, ident, None, argument_casing, env_casing, kind);
82 res.infer_kind(&parsed_attrs)?;
83 res.push_attrs(&parsed_attrs)?;
84 res.push_doc_comment(attrs, "about", Some("long_about"));
86 Ok(res)
97 let mut res = Self::new(name, ident, None, argument_casing, env_casing, kind);
99 res.infer_kind(&parsed_attrs)?;
100 res.push_attrs(&parsed_attrs)?;
104 if res.has_explicit_methods() {
106 res.methods[0].name.span(),
108 res.methods[0].name
112 Ok(res)
132 let mut res = Self::new(
141 res.infer_kind(&parsed_attrs)?;
142 res.push_attrs(&parsed_attrs)?;
143 if matches!(&*res.kind, Kind::Command(_) | Kind::Subcommand(_)) {
144 res.push_doc_comment(&variant.attrs, "about", Some("long_about"));
147 match &*res.kind {
149 if res.has_explicit_methods() {
151 res.kind.span(),
166 Ok(res)
177 let mut res = Self::new(
186 res.infer_kind(&parsed_attrs)?;
187 res.push_attrs(&parsed_attrs)?;
188 if matches!(&*res.kind, Kind::Value) {
189 res.push_doc_comment(&variant.attrs, "help", None);
192 Ok(res)
205 let mut res = Self::new(
214 res.infer_kind(&parsed_attrs)?;
215 res.push_attrs(&parsed_attrs)?;
216 if matches!(&*res.kind, Kind::Arg(_)) {
217 res.push_doc_comment(&field.attrs, "help", Some("long_help"));
220 match &*res.kind {
222 if res.has_explicit_methods() {
224 res.kind.span(),
231 if res.has_explicit_methods() {
233 res.kind.span(),
246 Ok(res)
1332 let mut res = String::with_capacity(author.len());
1338 res.push(ch);
1341 res.push(ch);
1343 res.push_str(", ");
1345 res.push(ch);
1349 res