| /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 | 542 /// A literal character (`'a'`), string (`"hello"`), number (`2.3`), etc. 543 Literal(Literal), enumerator 554 TokenTree::Literal(t) => t.span(), in span() 568 TokenTree::Literal(t) => t.set_span(span), in set_span() 591 impl From<Literal> for TokenTree { 592 fn from(g: Literal) -> Self { in from() 593 TokenTree::Literal(g) in from() 607 TokenTree::Literal(t) => Display::fmt(t, f), in fmt() 626 TokenTree::Literal(t) => Debug::fmt(t, f), in fmt() 1052 /// 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/lib/xz/ |
| H A D | xz_lzma2.h | 33 * - Literal: One 8-bit byte 39 * either short or long repeated match, and NONLIT means any non-literal. 59 /* The lowest 7 states indicate that the previous state was a literal. */ 62 /* Indicate that the latest symbol was a literal. */ 91 /* Test if the previous symbol was a literal. */ 97 /* Each literal coder is divided in three sections: 103 * a literal (that is, it was some kind of match). 107 /* Maximum number of literal coders */
|
| /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_\.\-]+ 127 {literal} { return literal(yyscanner, sctx); }
|
| H A D | expr.c | 396 double expr__get_literal(const char *literal, const struct expr_scanner_ctx *ctx) in expr__get_literal() argument 399 enum tool_pmu_event ev = tool_pmu__str_to_event(literal + 1); in expr__get_literal() 409 pr_err("Failure to read '%s'", literal); in expr__get_literal() 411 pr_err("Unrecognized literal '%s'", literal); in expr__get_literal() 414 pr_debug2("literal: %s = %f\n", literal, result); in expr__get_literal()
|
| /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/Documentation/staging/ |
| H A D | lzo.rst | 33 encoded on larger values), or a literal to be copied to the output buffer. 36 seems to be optimized for literal use only, since there is no dictionary yet 59 After any instruction except the large literal copy, 0, 1, 2 or 3 literals 115 22..255 : copy literal string 124 If last instruction did not copy any literal (state == 0), this 125 encoding will be a copy of 4 or more literal, and must be interpreted 128 0 0 0 0 L L L L (0..15) : copy long literal string
|
| /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/lib/ |
| H A D | glob.c | 86 goto literal; in glob_match() 92 goto literal; in glob_match() 108 default: /* Literal character */ in glob_match() 109 literal: in glob_match()
|
| H A D | decompress_bunzip2.c | 231 for symTotal literal symbols, plus two run symbols (RUNA, in get_next_block() 407 either a new literal byte, or a repeated run of the in get_next_block() 408 most recent literal byte. First, check if nextSym in get_next_block() 410 how many times to repeat the last literal. */ in get_next_block() 436 literal, so append that many copies to our buffer in get_next_block() 437 of decoded symbols (dbuf) now. (The last literal in get_next_block() 453 /* At this point, nextSym indicates a new literal in get_next_block() 455 MTF array at which this literal is currently to be in get_next_block() 461 non-literal nextSym values equals -1.) */ in get_next_block() 476 /* We have our literal byte. Save it into dbuf. */ in get_next_block()
|
| /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/tools/verification/rvgen/rvgen/ |
| H A D | ltl2ba.py | 41 'LITERAL', 124 if isinstance(self.op, Literal): 311 return UntilOp(ASTNode(Literal(True)), self.child) 323 new = ASTNode(Literal(False)) 402 class Literal: class 462 | LITERAL 466 p[0] = ASTNode(Literal(True)) 468 p[0] = ASTNode(Literal(False))
|
| /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 | 25 if let Some(TokenTree::Literal(literal)) = it.next() { in try_literal() 26 Some(literal.to_string()) in try_literal()
|