/external/rust/crates/structopt-derive/src/ |
D | parse.rs | 9 Attribute, Expr, ExprLit, Ident, Lit, LitBool, LitStr, Token, 24 About(Ident, Option<LitStr>), 25 Author(Ident, Option<LitStr>), 26 DefaultValue(Ident, Option<LitStr>), 29 Version(Ident, LitStr), 30 RenameAllEnv(Ident, LitStr), 31 RenameAll(Ident, LitStr), 32 NameLitStr(Ident, LitStr), 58 if input.peek(LitStr) { in parse() 59 let lit: LitStr = input.parse()?; in parse() [all …]
|
D | spanned.rs | 4 use syn::LitStr; 53 impl From<LitStr> for Sp<String> { 54 fn from(lit: LitStr) -> Self { in from()
|
D | attrs.rs | 19 self, ext::IdentExt, spanned::Spanned, Attribute, Expr, Ident, LitStr, MetaNameValue, Type, 103 fn from_lit_or_env(ident: Ident, lit: Option<LitStr>, env_var: &str) -> Option<Self> { in from_lit_or_env() argument 108 Ok(val) => LitStr::new(&val, ident.span()), in from_lit_or_env() 121 lit = LitStr::new(&edited, lit.span()); in from_lit_or_env() 182 fn from_lit(name: LitStr) -> Sp<Self> { in from_lit()
|
/external/rust/cxx/syntax/ |
D | attrs.rs | 8 use syn::{Attribute, Error, LitStr, Path, Result, Token}; 150 fn parse_doc_attribute(input: ParseStream) -> Result<LitStr> { in parse_doc_attribute() argument 152 let lit: LitStr = input.parse()?; in parse_doc_attribute() 197 if input.peek(LitStr) { in parse_cxx_name_attribute() 198 let lit: LitStr = input.parse()?; in parse_cxx_name_attribute() 208 if input.peek(LitStr) { in parse_rust_name_attribute() 209 let lit: LitStr = input.parse()?; in parse_rust_name_attribute()
|
D | doc.rs | 3 use syn::LitStr; 6 fragments: Vec<LitStr>, 16 pub fn push(&mut self, lit: LitStr) { in push() argument
|
D | qualified.rs | 3 use syn::{Ident, LitStr, Token}; 29 if input.peek(LitStr) { in parse_quoted_or_unquoted() 30 let lit: LitStr = input.parse()?; in parse_quoted_or_unquoted()
|
D | file.rs | 6 ItemStruct, ItemUse, LitStr, Token, Visibility, 84 && ahead.parse::<Option<LitStr>>().is_ok() in parse()
|
D | parse.rs | 18 GenericArgument, GenericParam, Generics, Ident, ItemEnum, ItemImpl, ItemStruct, Lit, LitStr, 992 if input.peek(LitStr) { in parse_include() 993 let lit: LitStr = input.parse()?; in parse_include()
|
/external/rust/crates/paste/src/ |
D | segment.rs | 6 String(LitStr), 8 Env(LitStr), 12 pub(crate) struct LitStr { struct 78 segments.push(Segment::Env(LitStr { in parse() 92 segments.push(Segment::String(LitStr { in parse() 99 segments.push(Segment::String(LitStr { in parse() 105 '_' => segments.push(Segment::String(LitStr { in parse()
|
/external/llvm/utils/TableGen/ |
D | AsmWriterInst.h | 55 AsmWriterOperand(const std::string &LitStr, 57 : OperandType(op), Str(LitStr) {} in OperandType()
|
/external/llvm-project/llvm/utils/TableGen/ |
D | AsmWriterInst.h | 56 AsmWriterOperand(const std::string &LitStr, 58 : OperandType(op), Str(LitStr) {} in OperandType()
|
/external/rust/crates/syn/tests/ |
D | test_lit.rs | 8 use syn::{Lit, LitFloat, LitInt, LitStr}; 266 let err = syn::parse_str::<LitStr>("...").unwrap_err(); in test_error() 269 let err = syn::parse_str::<LitStr>("5").unwrap_err(); in test_error()
|
/external/rust/crates/thiserror-impl/src/ |
D | fmt.rs | 8 use syn::{Ident, Index, LitStr, Member, Result, Token}; 93 self.fmt = LitStr::new(&out, self.fmt.span()); in expand_shorthand()
|
D | attr.rs | 6 braced, bracketed, parenthesized, token, Attribute, Error, Ident, Index, LitInt, LitStr, 21 pub fmt: LitStr,
|
/external/rust/crates/syn/src/ |
D | lit.rs | 27 Str(LitStr), 56 pub struct LitStr { 123 impl LitStr { impl 127 LitStr { in new() 532 impl Debug for LitStr { implementation 677 lit_extra_traits!(LitStr); 791 impl Parse for LitStr { implementation 875 impl ToTokens for LitStr { implementation 940 return Lit::Str(LitStr { in new()
|
D | token.rs | 99 use crate::lit::{Lit, LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitInt, LitStr}; 188 impl_token!("string literal" LitStr);
|
D | lib.rs | 389 Lit, LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitInt, LitStr, StrStyle,
|
D | ty.rs | 282 pub name: Option<LitStr>,
|
D | item.rs | 1016 } else if lookahead.peek(LitStr) { in parse() 1017 ahead.parse::<LitStr>()?; in parse()
|
/external/adhd/cros_alsa/cros_alsa_derive/src/ |
D | control.rs | 25 None => syn::LitStr::new("cros_alsa", Span::call_site()) in impl_control_ops()
|
/external/rust/crates/serde_derive/src/internals/ |
D | attr.rs | 330 ser_name.set_opt(&m.path, ser.map(syn::LitStr::value)); in from_ast() 331 de_name.set_opt(&m.path, de.map(syn::LitStr::value)); in from_ast() 893 ser_name.set_opt(&m.path, ser.map(syn::LitStr::value)); in from_ast() 1195 ser_name.set_opt(&m.path, ser.map(syn::LitStr::value)); in from_ast() 1546 ) -> Result<SerAndDe<&'a syn::LitStr>, ()> { in get_renames() argument 1554 ) -> Result<(Option<&'a syn::LitStr>, Vec<&'a syn::LitStr>), ()> { in get_multiple_renames() argument 1585 fn get_lit_str<'a>(cx: &Ctxt, attr_name: Symbol, lit: &'a syn::Lit) -> Result<&'a syn::LitStr, ()> { in get_lit_str() argument 1594 ) -> Result<&'a syn::LitStr, ()> { in get_lit_str2() argument 1638 let where_string = syn::LitStr::new(&format!("where {}", string.value()), string.span()); in parse_lit_into_where() 1943 fn parse_lit_str<T>(s: &syn::LitStr) -> parse::Result<T> in parse_lit_str() [all …]
|
/external/rust/crates/syn/src/gen/ |
D | fold.rs | 458 fn fold_lit_str(&mut self, i: LitStr) -> LitStr { in fold_lit_str() argument 2242 pub fn fold_lit_str<F>(f: &mut F, node: LitStr) -> LitStr in fold_lit_str()
|
D | visit_mut.rs | 461 fn visit_lit_str_mut(&mut self, i: &mut LitStr) { in visit_lit_str_mut() argument 2600 pub fn visit_lit_str_mut<V>(v: &mut V, node: &mut LitStr) in visit_lit_str_mut()
|
D | visit.rs | 457 fn visit_lit_str(&mut self, i: &'ast LitStr) { in visit_lit_str() argument 2594 pub fn visit_lit_str<'ast, V>(v: &mut V, node: &'ast LitStr) in visit_lit_str()
|
/external/rust/crates/syn/tests/debug/ |
D | gen.rs | 13 struct Print(syn::LitStr); in fmt() 3498 impl Debug for Lite<syn::LitStr> {
|