Home
last modified time | relevance | path

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

12345678910

/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()
/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/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/arch/arm64/kernel/
H A Dstatic_call.c8 u64 literal; in arch_static_call_transform() local
14 /* decode the instructions to discover the literal address */ in arch_static_call_transform()
15 literal = ALIGN_DOWN((u64)tramp + 4, SZ_4K) + in arch_static_call_transform()
20 ret = aarch64_insn_write_literal_u64((void *)literal, (u64)func); in arch_static_call_transform()
/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/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/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_\.\-]+
127 {literal} { return literal(yyscanner, sctx); }
H A Dexpr.c396 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 Dtext_files.rst5 :literal:
11 :literal:
23 :literal:
/linux/lib/
H A Dinflate.c29 the end of each deflated block is a special end-of-block (EOB) literal/
30 length code. The decoding process is basically: get a literal/length
31 code; if EOB then done; if a literal, emit the decoded byte; if a
45 an encoding of the literal/length and distance Huffman codes that are
79 6. There are up to 286 literal/length codes. Code 256 represents the
89 literal codes sent minus 257.
101 13. The literal/length and distance code bit lengths are read as a
135 means that v is a literal, 16 < e < 32 means that v is a pointer to
143 ush n; /* literal, length base, or distance base */
176 static const ush cplens[] = { /* Copy lengths for literal codes 257..285 */
[all …]
H A Dglob.c86 goto literal; in glob_match()
92 goto literal; in glob_match()
108 default: /* Literal character */ in glob_match()
109 literal: in glob_match()
/linux/scripts/dtc/
H A Ddtc-lexer.l162 /* Treat it as a literal which often generates further
171 DPRINT("Integer Literal: '%s'\n", yytext);
177 lexical_error("Bad integer literal '%s'",
182 lexical_error("Integer literal '%s' out of range",
193 DPRINT("Character literal: %s\n", yytext);
197 lexical_error("Empty character literal");
203 lexical_error("Character literal has %d"
/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/Documentation/staging/
H A Dlzo.rst33 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/tools/testing/selftests/bpf/
H A Dbpf_arena_strsearch.h87 goto literal; in glob_match()
93 goto literal; in glob_match()
110 default: /* Literal character */ in glob_match()
111 literal: in glob_match()
/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.py41 '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/Documentation/dev-tools/lkmm/docs/
H A Dreferences.rst6 Literal include of ``tools/memory-model/Documentation/references.txt``.
11 :literal:

12345678910