Lines Matching refs:value

333             if let Some(AttrValue::Call(_)) = &attr.value {
340 if attr.value.is_some() {
342 abort!(expr, "attribute `{}` does not accept a value", attr.name);
352 Some(MagicAttrName::Subcommand) if attr.value.is_none() => {
353 if attr.value.is_some() {
355 abort!(expr, "attribute `{}` does not accept a value", attr.name);
365 Some(MagicAttrName::ExternalSubcommand) if attr.value.is_none() => {
366 if attr.value.is_some() {
368 abort!(expr, "attribute `{}` does not accept a value", attr.name);
373 Some(MagicAttrName::Flatten) if attr.value.is_none() => {
374 if attr.value.is_some() {
376 abort!(expr, "attribute `{}` does not accept a value", attr.name);
387 let expr = attr.value.clone();
433 if let Some(AttrValue::Call(tokens)) = &attr.value {
440 Some(MagicAttrName::Short) if attr.value.is_none() => {
450 Some(MagicAttrName::Long) if attr.value.is_none() => {
456 Some(MagicAttrName::ValueParser) if attr.value.is_none() => {
468 Some(MagicAttrName::Action) if attr.value.is_none() => {
480 Some(MagicAttrName::Env) if attr.value.is_none() => {
490 Some(MagicAttrName::ValueEnum) if attr.value.is_none() => {
496 Some(MagicAttrName::VerbatimDocComment) if attr.value.is_none() => {
500 Some(MagicAttrName::About) if attr.value.is_none() => {
510 Some(MagicAttrName::LongAbout) if attr.value.is_none() => {
516 Some(MagicAttrName::LongHelp) if attr.value.is_none() => {
522 Some(MagicAttrName::Author) if attr.value.is_none() => {
530 Some(MagicAttrName::Version) if attr.value.is_none() => {
553 let val = if let Some(expr) = &attr.value {
685 let val = if let Some(expr) = &attr.value {
853 // Directives that never receive a value
857 abort!(expr, "attribute `{}` does not accept a value", attr.name);
1173 Self::Value => "value",
1238 let edited = process_author_str(&lit.value());
1377 let normalized = name.value().to_upper_camel_case().to_lowercase();