| /linux/rust/proc-macro2/ |
| H A D | wrapper.rs | 176 TokenTree::Literal(tt) => proc_macro::TokenTree::Literal(tt.inner.unwrap_nightly()), in into_compiler_token() 357 proc_macro::TokenTree::Literal(l) => { in next() 358 TokenTree::Literal(crate::Literal::_new(Literal::Compiler(l))) in next() 760 pub(crate) enum Literal { enum 761 Compiler(proc_macro::Literal), 762 Fallback(fallback::Literal), 767 pub(crate) fn $name(n: $kind) -> Literal { 769 Literal::Compiler(proc_macro::Literal::$name(n)) 771 Literal::Fallback(fallback::Literal::$name(n)) 779 pub(crate) fn $name(n: $kind) -> Literal { [all …]
|
| H A D | lib.rs | 547 Literal(Literal), enumerator 558 TokenTree::Literal(t) => t.span(), in span() 572 TokenTree::Literal(t) => t.set_span(span), in set_span() 595 impl From<Literal> for TokenTree { 596 fn from(g: Literal) -> Self { in from() 597 TokenTree::Literal(g) in from() 611 TokenTree::Literal(t) => Display::fmt(t, f), in fmt() 630 TokenTree::Literal(t) => Debug::fmt(t, f), in fmt() 1063 pub struct Literal { struct 1064 inner: imp::Literal, argument [all …]
|
| H A D | fallback.rs | 107 TokenTree::Literal(crate::Literal { in push_token_from_proc_macro() 109 inner: crate::imp::Literal::Fallback(literal), in push_token_from_proc_macro() 120 fn push_negative_literal(mut vec: RcVecMut<TokenTree>, mut literal: Literal) { in push_token_from_proc_macro() argument 125 vec.push(TokenTree::Literal(crate::Literal::_new_fallback(literal))); in push_token_from_proc_macro() 233 TokenTree::Literal(tt) => Display::fmt(tt, f), in fmt() 922 pub(crate) struct Literal { struct 929 pub(crate) fn $name(n: $kind) -> Literal { argument 930 Literal::_new(format!(concat!("{}", stringify!($kind)), n)) 937 pub(crate) fn $name(n: $kind) -> Literal { 938 Literal::_new(n.to_string()) [all …]
|
| H A D | parse.rs | 4 self, is_ident_continue, is_ident_start, Group, Ident, LexError, Literal, Span, TokenStream, 271 Ok((input, TokenTree::Literal(crate::Literal::_new_fallback(l)))) in leaf_token() 278 let repr = crate::Literal::_new_fallback(Literal::_new(ERROR.to_owned())); in leaf_token() 279 Ok((rest, TokenTree::Literal(repr))) in leaf_token() 339 pub(crate) fn literal(input: Cursor) -> PResult<Literal> { in literal() argument 342 Ok((rest, Literal::_new(input.rest[..end].to_string()))) in literal() 948 let mut literal = crate::Literal::_new_fallback(Literal::string(comment)); in doc_comment() 953 bracketed.push_token_from_parser(TokenTree::Literal(literal)); in doc_comment()
|
| /linux/rust/quote/ |
| H A D | to_tokens.rs | 7 use proc_macro2::{Group, Ident, Literal, Punct, Span, TokenStream, TokenTree}; 116 tokens.append(Literal::string(self)); in to_tokens() 128 tokens.append(Literal::i8_suffixed(*self)); in to_tokens() 134 tokens.append(Literal::i16_suffixed(*self)); in to_tokens() 140 tokens.append(Literal::i32_suffixed(*self)); in to_tokens() 146 tokens.append(Literal::i64_suffixed(*self)); in to_tokens() 152 tokens.append(Literal::i128_suffixed(*self)); in to_tokens() 158 tokens.append(Literal::isize_suffixed(*self)); in to_tokens() 164 tokens.append(Literal::u8_suffixed(*self)); in to_tokens() 170 tokens.append(Literal::u16_suffixed(*self)); in to_tokens() [all …]
|
| /linux/rust/syn/ |
| H A D | buffer.rs | 12 use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; 25 Literal(Literal), enumerator 46 TokenTree::Literal(literal) => entries.push(Entry::Literal(literal)), in recursive_new() 213 pub fn literal(mut self) -> Option<(Literal, Cursor<'a>)> { in literal() argument 216 Entry::Literal(literal) => Some((literal.clone(), unsafe { self.bump_ignore_group() })), in literal() 309 Entry::Literal(literal) => (literal.clone().into(), 1), in token_tree() 324 Entry::Literal(literal) => literal.span(), in span()
|
| H A D | lit.rs | 8 use proc_macro2::{Ident, Literal, Span}; 54 Verbatim(Literal), 94 token: Literal, 106 token: Literal, 121 token: Literal, 136 let mut token = Literal::string(value); in new() 270 pub fn token(&self) -> Literal { in token() argument 277 let mut token = Literal::byte_string(value); in new() 305 pub fn token(&self) -> Literal { in token() argument 312 let mut token = Literal::c_string(value); in new() [all …]
|
| H A D | tt.rs | 43 (TokenTree::Literal(l1), TokenTree::Literal(l2)) => l1.to_string() == l2.to_string(), in eq() 77 TokenTree::Literal(lit) => (2u8, lit.to_string()).hash(h), in hash()
|
| H A D | error.rs | 7 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 315 TokenStream::from_iter([TokenTree::Literal({ in to_compile_error() 316 let mut string = Literal::string(&self.message); in to_compile_error()
|
| H A D | parse.rs | 192 use proc_macro2::{Delimiter, Group, Literal, Punct, Span, TokenStream, TokenTree}; 1227 impl Parse for Literal { implementation
|
| H A D | token.rs | 112 use proc_macro2::{Literal, Punct, TokenTree}; 184 impl_low_level_token!("literal" Literal literal);
|
| H A D | expr.rs | 3149 use proc_macro2::{Literal, Span, TokenStream}; 4129 let mut lit = Literal::i64_unsuffixed(i64::from(self.index)); in to_tokens()
|
| /linux/rust/proc-macro2/probe/ |
| H A D | proc_macro_span.rs | 12 use proc_macro::{Literal, Span}; 47 pub fn subspan<R: RangeBounds<usize>>(this: &Literal, range: R) -> Option<Span> { in subspan() argument
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | ltl2ba.py | 124 if isinstance(self.op, Literal): 311 return UntilOp(ASTNode(Literal(True)), self.child) 323 new = ASTNode(Literal(False)) 402 class Literal: class 466 p[0] = ASTNode(Literal(True)) 468 p[0] = ASTNode(Literal(False))
|
| /linux/tools/perf/pmu-events/ |
| H A D | intel_metrics.py | 12 Literal, LoadEvents, Metric, MetricConstraint, MetricGroup, 529 l2_s = Select(DC_OUT_S / 2, Literal("#smt_on"), DC_OUT_S) 698 l1dc = Select(l1dc / 2, Literal("#smt_on"), l1dc) 713 smt_cycles = Select(core_cycles / 2, Literal("#smt_on"), core_cycles) 891 num_cores = Literal("#num_cores") / Literal("#num_packages")
|
| H A D | amd_metrics.py | 9 JsonEncodeMetricGroupDescriptions, Literal, LoadEvents, 19 smt_cycles = Select(cycles / 2, Literal("#smt_on"), cycles)
|
| H A D | metric.py | 528 class Literal(Expression): class 547 return isinstance(other, Literal) and self.value == other.value
|
| /linux/rust/macros/ |
| H A D | module.rs | 6 Literal, 66 let string = Literal::byte_string(string.as_bytes()); in emit_base()
|
| H A D | fmt.rs | 17 Some(TokenTree::Literal(first_lit)) => { in fmt()
|
| H A D | helpers.rs | |
| H A D | pin_data.rs | |
| H A D | paste.rs | 12 Some(TokenTree::Literal(lit)) => { in concat_helper()
|
| /linux/Documentation/networking/ |
| H A D | filter.rst | 272 4 #k Literal value stored in k
|