• Home
  • Raw
  • Download

Lines Matching refs:Sp

25 use crate::utils::{extract_doc_comment, format_doc_comment, inner_type, is_simple_ty, Sp, Ty};
37 casing: Sp<CasingStyle>,
38 env_casing: Sp<CasingStyle>,
52 kind: Sp<Kind>,
60 let argument_casing = Sp::new(DEFAULT_CASING, span); in from_args_struct()
61 let env_casing = Sp::new(DEFAULT_ENV_CASING, span); in from_args_struct()
62 let kind = Sp::new(Kind::Command(Sp::new(Ty::Other, span)), span); in from_args_struct()
77 let argument_casing = Sp::new(DEFAULT_CASING, span); in from_subcommand_enum()
78 let env_casing = Sp::new(DEFAULT_ENV_CASING, span); in from_subcommand_enum()
79 let kind = Sp::new(Kind::Command(Sp::new(Ty::Other, span)), span); in from_subcommand_enum()
94 let argument_casing = Sp::new(DEFAULT_CASING, span); in from_value_enum()
95 let env_casing = Sp::new(DEFAULT_ENV_CASING, span); in from_value_enum()
96 let kind = Sp::new(Kind::Value, span); in from_value_enum()
118 struct_casing: Sp<CasingStyle>, in from_subcommand_variant()
119 env_casing: Sp<CasingStyle>, in from_subcommand_variant()
129 Sp::new(Ty::Other, span) in from_subcommand_variant()
132 let kind = Sp::new(Kind::Command(ty), span); in from_subcommand_variant()
172 argument_casing: Sp<CasingStyle>, in from_value_enum_variant()
173 env_casing: Sp<CasingStyle>, in from_value_enum_variant()
177 let kind = Sp::new(Kind::Value, span); in from_value_enum_variant()
198 struct_casing: Sp<CasingStyle>, in from_args_field()
199 env_casing: Sp<CasingStyle>, in from_args_field()
205 let kind = Sp::new(Kind::Arg(ty), span); in from_args_field()
254 casing: Sp<CasingStyle>, in new()
255 env_casing: Sp<CasingStyle>, in new()
256 kind: Sp<Kind>, in new()
349 .unwrap_or_else(|| Sp::new(Ty::Other, self.kind.span())); in infer_kind()
350 let kind = Sp::new(Kind::FromGlobal(ty), attr.name.clone().span()); in infer_kind()
362 .unwrap_or_else(|| Sp::new(Ty::Other, self.kind.span())); in infer_kind()
363 let kind = Sp::new(Kind::Subcommand(ty), attr.name.clone().span()); in infer_kind()
371 let kind = Sp::new(Kind::ExternalSubcommand, attr.name.clone().span()); in infer_kind()
383 .unwrap_or_else(|| Sp::new(Ty::Other, self.kind.span())); in infer_kind()
384 let kind = Sp::new(Kind::Flatten(ty), attr.name.clone().span()); in infer_kind()
389 let kind = Sp::new( in infer_kind()
915 fn set_kind(&mut self, kind: Sp<Kind>) { in set_kind()
1040 pub fn kind(&self) -> Sp<Kind> { in kind()
1048 pub fn casing(&self) -> Sp<CasingStyle> { in casing()
1052 pub fn env_casing(&self) -> Sp<CasingStyle> { in env_casing()
1154 Arg(Sp<Ty>),
1155 Command(Sp<Ty>),
1157 FromGlobal(Sp<Ty>),
1158 Subcommand(Sp<Ty>),
1159 Flatten(Sp<Ty>),
1191 pub fn ty(&self) -> Option<&Sp<Ty>> { in ty()
1367 fn from_lit(name: &LitStr) -> Sp<Self> { in from_lit()
1371 let cs = |kind| Sp::new(kind, name.span()); in from_lit()