Searched refs:Literal (Results 1 – 6 of 6) sorted by relevance
4 use proc_macro::{token_stream, Delimiter, Literal, TokenStream, TokenTree};71 string = Literal::byte_string(string.as_bytes()), in emit_base()
12 Some(TokenTree::Literal(lit)) => segments.push((lit.to_string(), lit.span())), in concat()
118 TokenTree::Literal(_) | TokenTree::Punct(_) | TokenTree::Ident(_) => vec![tt], in replace_self_and_deny_type_defs()
14 if let Some(TokenTree::Literal(literal)) = it.next() { in try_literal()
362 class Literal(Expression): class378 return isinstance(other, Literal) and self.value == other.value
272 4 #k Literal value stored in k