Home
last modified time | relevance | path

Searched full:literal (Results 1 – 25 of 146) sorted by relevance

123456

/linux/rust/proc-macro2/
H A Dwrapper.rs176 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 Dlib.rs546 /// 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 Dfallback.rs107 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 Dparse.rs4 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 Dto_tokens.rs7 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 Dlit.rs8 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 Dbuffer.rs12 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 Dtt.rs43 (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 DMakefile26 # 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/tools/lib/perf/Documentation/
H A Dmanpage-bold-literal.xsl1 <!-- 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 Dmanpage-bold-literal.xsl1 <!-- 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/lib/xz/
H A Dxz_lzma2.h33 * - 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/Documentation/usb/
H A Dtext_files.rst5 :literal:
11 :literal:
23 :literal:
/linux/tools/perf/util/
H A Dexpr.l85 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 Dexpr.c415 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/sphinx-static/
H A Dtheme_overrides.css107 /* 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 Dinftrees.h18 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 Dkernel_include.py29 :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 Dltl2ba.py42 'LITERAL',
125 if isinstance(self.op, (Literal, Variable)):
310 return UntilOp(ASTNode(Literal(True)), self.child)
322 new = ASTNode(Literal(False))
404 class Literal:
464 | LITERAL
468 p[0] = ASTNode(Literal(True))
470 p[0] = ASTNode(Literal(False))
402 class Literal: global() class
/linux/arch/xtensa/boot/boot-redboot/
H A Dboot.ld11 *(.literal .text.literal .text)
/linux/tools/lib/bpf/
H A Dlibbpf_common.h54 * 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/rust/proc-macro2/probe/
H A Dproc_macro_span.rs12 use proc_macro::{Literal, Span};
47 pub fn subspan<R: RangeBounds<usize>>(this: &Literal, range: R) -> Option<Span> { in subspan() argument
/linux/rust/macros/
H A Dhelpers.rs16 /// 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/kernel/
H A Dstatic_assert.rs
/linux/tools/docs/
H A Dparse-headers.py8 included via ..parsed-literal block with cross-references for the
43 help="instead of a literal block, outputs a TOC table at the RST file")

123456