| /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 | 546 /// A literal character (`'a'`), string (`"hello"`), number (`2.3`), etc. 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() 1056 /// A literal string (`"hello"`), byte string (`b"hello"`), character (`'a'`), [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() 111 inner: literal, in push_token_from_proc_macro() 113 }) if literal.repr.starts_with('-') => { in push_token_from_proc_macro() 114 push_negative_literal(vec, 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 121 literal.repr.remove(0); in push_token_from_proc_macro() 123 punct.set_span(crate::Span::_new_fallback(literal.span)); in push_token_from_proc_macro() 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() [all …]
|
| H A D | parse.rs | 4 self, is_ident_continue, is_ident_start, Group, Ident, LexError, Literal, Span, TokenStream, 269 if let Ok((input, l)) = literal(input) { in leaf_token() 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() localVariable 949 literal.set_span(span); 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 | lit.rs | 8 use proc_macro2::{Ident, Literal, Span}; 18 /// A Rust literal such as a string or integer or boolean. 27 /// A UTF-8 string literal: `"foo"`. 30 /// A byte string literal: `b"foo"`. 33 /// A nul-terminated C-string literal: `c"foo"`. 36 /// A byte literal: `b'f'`. 39 /// A character literal: `'a'`. 42 /// An integer literal: `1` or `1u16`. 45 /// A floating point literal: `1f64` or `1.0e10f64`. 50 /// A boolean literal: `true` or `false`. [all …]
|
| 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() 211 /// If the cursor is pointing at a `Literal`, return it along with a cursor 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 | 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()
|
| /linux/arch/xtensa/kernel/ |
| H A D | Makefile | 26 # Therefore, the .text and .literal section must be combined in parenthesis 27 # in the linker script, such as: *(.literal .text). 30 # *(xxx.text) to *(xxx.literal xxx.text) for the following text sections: 35 sed-y = -e ':a; s/\*(\([^)]*\)\.text\.unlikely/*(\1.literal.unlikely .{text}.unlikely/; ta; ' \ 36 -e ':b; s/\*(\([^)]*\)\.text\(\.[a-z]*\)/*(\1.{text}\2.literal .{text}\2/; tb; ' \ 37 -e ':c; s/\*(\([^)]*\)\(\.[a-z]*it\|\.ref\)\.text/*(\1\2.literal \2.{text}/; tc; ' \ 38 -e ':d; s/\*(\([^)]\+ \|\)\.text/*(\1.literal .{text}/; td; ' \
|
| /linux/arch/arm64/kernel/ |
| H A D | static_call.c | 9 u64 literal; in arch_static_call_transform() local 15 /* decode the instructions to discover the literal address */ in arch_static_call_transform() 16 literal = ALIGN_DOWN((u64)tramp + 4, SZ_4K) + in arch_static_call_transform() 21 ret = aarch64_insn_write_literal_u64((void *)literal, (u64)func); in arch_static_call_transform()
|
| /linux/tools/lib/perf/Documentation/ |
| H A D | manpage-bold-literal.xsl | 1 <!-- manpage-bold-literal.xsl: 6 <!-- render literal text as bold (instead of plain or monospace); 7 this makes literal text easier to distinguish in manpages 9 <xsl:template match="literal">
|
| /linux/tools/perf/Documentation/ |
| H A D | manpage-bold-literal.xsl | 1 <!-- manpage-bold-literal.xsl: 6 <!-- render literal text as bold (instead of plain or monospace); 7 this makes literal text easier to distinguish in manpages 9 <xsl:template match="literal">
|
| /linux/tools/perf/util/ |
| H A D | expr.l | 85 static int literal(yyscan_t scanner, const struct expr_scanner_ctx *sctx) in literal() function 95 return LITERAL; in literal() 113 literal #[0-9a-zA-Z_\.\-]+ 128 {literal} { return literal(yyscanner, sctx); }
|
| H A D | expr.c | 415 double expr__get_literal(const char *literal, const struct expr_scanner_ctx *ctx) in expr__get_literal() 418 enum tool_pmu_event ev = tool_pmu__str_to_event(literal + 1); 428 pr_err("Failure to read '%s'\n", literal); in expr__has_event() 430 pr_err("Unrecognized literal '%s'\n", literal); in expr__has_event() 433 pr_debug2("literal: %s = %f\n", literal, result); in expr__has_event() 396 expr__get_literal(const char * literal,const struct expr_scanner_ctx * ctx) expr__get_literal() argument
|
| /linux/Documentation/usb/ |
| H A D | text_files.rst | 5 :literal: 11 :literal: 23 :literal:
|
| /linux/Documentation/sphinx-static/ |
| H A D | theme_overrides.css | 107 /* inline literal: drop the borderbox, padding and red color */ 117 .rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal {
|
| /linux/lib/zlib_inflate/ |
| H A D | inftrees.h | 18 the entry is a pointer to another table, a literal, a length or 25 of a literal, the base length or distance, or the offset from 34 00000000 - literal
|
| /linux/Documentation/sphinx/ |
| H A D | kernel_include.py | 29 :param literal: 30 If present, the included file is inserted as a literal block. 55 Only effective with 'literal' or 'code' options. 136 'literal': directives.flag, 144 # ignored except for 'literal' or 'code': 236 rawtext = ".. parsed-literal::\n\n" + parser.gen_output() 248 # TOC output is a ReST file, not a literal. So, we can add line 282 def literal(self, path, tab_width, rawtext): member in KernelInclude 283 """Output a literal block""" 401 return self.literal(path, tab_width, rawtext)
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | ltl2ba.py | 39 | LITERAL 55 LITERAL: "true" | "false" 122 if isinstance(self.op, (Literal, Variable)): 307 return UntilOp(ASTNode(Literal(True)), self.child) 319 new = ASTNode(Literal(False)) 401 class Literal: 459 def LITERAL(self, args): 460 return ASTNode(Literal(args == "true")) 402 class Literal: global() class
|
| /linux/lib/ |
| H A D | glob.c | 116 goto literal; in glob_match_str() 122 goto literal; in glob_match_str() 139 default: /* Literal character */ in glob_match_str() 140 literal: in glob_match_str()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf_common.h | 54 * followed by assignment using compound literal syntax is done to preserve 57 * when copying literal, that compiler won't copy garbage in literal's padding
|
| /linux/arch/xtensa/boot/boot-redboot/ |
| H A D | boot.ld | 11 *(.literal .text.literal .text)
|
| /linux/rust/macros/ |
| H A D | helpers.rs | 16 /// A string literal that is required to have ASCII value only. in try_sign() 23 return Err(Error::new_spanned(s, "expected ASCII-only string literal"));
|
| /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/rust/kernel/ |
| H A D | static_assert.rs | |