Lines Matching refs:Lit
14 use syn::{Lit, LitFloat, LitInt, LitStr};
16 fn lit(s: &str) -> Lit {
21 Lit::new(lit)
31 Lit::Str(lit) => {
70 Lit::ByteStr(lit) => {
102 Lit::Byte(lit) => {
124 Lit::Char(lit) => {
150 Lit::Int(lit) => {
190 Lit::Float(lit) => {
228 let lit = syn::parse_str::<Lit>(token).unwrap();
230 Lit::Str(lit) => lit.suffix().to_owned(),
231 Lit::ByteStr(lit) => lit.suffix().to_owned(),
232 Lit::Byte(lit) => lit.suffix().to_owned(),
233 Lit::Char(lit) => lit.suffix().to_owned(),
234 Lit::Int(lit) => lit.suffix().to_owned(),
235 Lit::Float(lit) => lit.suffix().to_owned(),
263 snapshot!(tokens as Lit, @r#""hi""# );