Home
last modified time | relevance | path

Searched refs:LitStr (Results 1 – 25 of 26) sorted by relevance

12

/external/rust/crates/structopt-derive/src/
Dparse.rs9 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 …]
Dspanned.rs4 use syn::LitStr;
53 impl From<LitStr> for Sp<String> {
54 fn from(lit: LitStr) -> Self { in from()
Dattrs.rs19 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/
Dattrs.rs8 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()
Ddoc.rs3 use syn::LitStr;
6 fragments: Vec<LitStr>,
16 pub fn push(&mut self, lit: LitStr) { in push() argument
Dqualified.rs3 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()
Dfile.rs6 ItemStruct, ItemUse, LitStr, Token, Visibility,
84 && ahead.parse::<Option<LitStr>>().is_ok() in parse()
Dparse.rs18 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/
Dsegment.rs6 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/
DAsmWriterInst.h55 AsmWriterOperand(const std::string &LitStr,
57 : OperandType(op), Str(LitStr) {} in OperandType()
/external/llvm-project/llvm/utils/TableGen/
DAsmWriterInst.h56 AsmWriterOperand(const std::string &LitStr,
58 : OperandType(op), Str(LitStr) {} in OperandType()
/external/rust/crates/syn/tests/
Dtest_lit.rs8 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/
Dfmt.rs8 use syn::{Ident, Index, LitStr, Member, Result, Token};
93 self.fmt = LitStr::new(&out, self.fmt.span()); in expand_shorthand()
Dattr.rs6 braced, bracketed, parenthesized, token, Attribute, Error, Ident, Index, LitInt, LitStr,
21 pub fmt: LitStr,
/external/rust/crates/syn/src/
Dlit.rs27 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()
Dtoken.rs99 use crate::lit::{Lit, LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitInt, LitStr};
188 impl_token!("string literal" LitStr);
Dlib.rs389 Lit, LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitInt, LitStr, StrStyle,
Dty.rs282 pub name: Option<LitStr>,
Ditem.rs1016 } else if lookahead.peek(LitStr) { in parse()
1017 ahead.parse::<LitStr>()?; in parse()
/external/adhd/cros_alsa/cros_alsa_derive/src/
Dcontrol.rs25 None => syn::LitStr::new("cros_alsa", Span::call_site()) in impl_control_ops()
/external/rust/crates/serde_derive/src/internals/
Dattr.rs330 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/
Dfold.rs458 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()
Dvisit_mut.rs461 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()
Dvisit.rs457 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/
Dgen.rs13 struct Print(syn::LitStr); in fmt()
3498 impl Debug for Lite<syn::LitStr> {

12