Home
last modified time | relevance | path

Searched refs:tokens (Results 126 - 150 of 705) sorted by relevance

12345678910>>...29

/third_party/rust/crates/cxx/syntax/
H A Ddoc.rs39 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
41 tokens.extend(quote! { #(#[doc = #fragments])* }); in to_tokens()
43 tokens.extend(quote! { #[doc(hidden)] }); in to_tokens()
/third_party/rust/crates/cxx/gen/cmd/src/syntax/
H A Ddoc.rs39 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
41 tokens.extend(quote! { #(#[doc = #fragments])* }); in to_tokens()
43 tokens.extend(quote! { #[doc(hidden)] }); in to_tokens()
/third_party/rust/crates/cxx/macro/src/
H A Dtype_id.rs12 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
14 Crate::Cxx => tokens.extend(quote!(::cxx)), in to_tokens()
15 Crate::DollarCrate(krate) => krate.to_tokens(tokens), in to_tokens()
/third_party/rust/crates/syn/src/
H A Dfile.rs120 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
121 tokens.append_all(self.attrs.inner()); in to_tokens()
122 tokens.append_all(&self.items); in to_tokens()
H A Dtoken.rs35 //! method. Delimiter tokens are parsed using the [`parenthesized!`],
125 /// Marker trait for types that represent single tokens.
147 /// Support writing `token.span` rather than `token.spans[0]` on tokens that in display()
317 fn to_tokens(&self, tokens: &mut TokenStream) { in display()
318 printing::keyword($token, self.span, tokens); in display()
456 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
457 printing::punct($token, &self.spans, tokens); in to_tokens()
550 pub fn surround<F>(&self, tokens: &mut TokenStream, f: F) in surround()
556 printing::delim(Delimiter::$delim, self.span.join(), tokens, inner); in surround()
573 fn to_tokens(&self, tokens
[all...]
/third_party/rust/crates/syn/tests/
H A Dtest_grouping.rs11 let tokens: TokenStream = TokenStream::from_iter(vec![ in test_grouping()
26 assert_eq!(tokens.to_string(), "1i32 + 2i32 + 3i32 * 4i32"); in test_grouping()
28 snapshot!(tokens as Expr, @r###" in test_grouping()
/third_party/icu/tools/unicode/c/genprops/
H A Dnamespropsbuilder.cpp194 static int16_t tokens[LEADBYTE_LIMIT*256]; variable
225 tokens[i]=0; in NamesPropsBuilder()
508 if(tokens[i]==-1) { in compress()
516 /* do we need double-byte tokens? */ in compress()
518 /* no, single-byte tokens are enough */ in compress()
521 if(tokens[i]!=-1) { in compress()
522 tokens[i]=wordNumber; in compress()
524 printf("tokens[0x%03x]: word%8ld \"%.*s\"\n", in compress()
534 * The tokens that need two token bytes in compress()
553 /* how many tokens an in compress()
[all...]
/kernel/linux/linux-6.6/tools/arch/x86/kcpuid/
H A Dkcpuid.c311 char *tokens[6]; in parse_line() local
325 tokens[i] = strtok(str, ","); in parse_line()
326 if (!tokens[i]) in parse_line()
330 tokens[5] = strtok(str, "\n"); in parse_line()
331 if (!tokens[5]) in parse_line()
335 index = strtoull(tokens[0], NULL, 0); in parse_line()
354 sub = strtoul(tokens[1], NULL, 0); in parse_line()
359 buf = tokens[2]; in parse_line()
376 buf = tokens[3]; in parse_line()
387 strcpy(bdesc->simp, tokens[ in parse_line()
[all...]
/third_party/littlefs/scripts/
H A Dprettyasserts.py214 tokens = []
221 tokens.append((None, data[:m.start()], line, col))
222 tokens.append((m.lastgroup, m.group(), line, col))
225 tokens.append((None, data, line, col))
227 self.tokens = tokens
231 if self.off < len(self.tokens):
232 token = self.tokens[self.off]
248 raise ParseFailure(patterns, self.tokens[self.off:])
422 for i in range(p.off, len(p.tokens))
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_fragprog.c145 fp->pipe.tokens = nir_to_tgsi(cso->ir.nir, pipe->screen); in nv30_fp_state_create()
148 /* we need to keep a local copy of the tokens */ in nv30_fp_state_create()
149 fp->pipe.tokens = tgsi_dup_tokens(cso->tokens); in nv30_fp_state_create()
152 tgsi_scan_shader(fp->pipe.tokens, &fp->info); in nv30_fp_state_create()
166 FREE((void *)fp->pipe.tokens); in nv30_fp_state_delete()
/third_party/vk-gl-cts/framework/delibs/decpp/
H A DdeStringUtil.cpp87 //! Split a string into tokens. If `delim` is `'\0'`, separate by spans of
167 vector <string> tokens(splitString(" foo bar\n\tbaz ")); in StringUtil_selfTest()
168 DE_TEST_ASSERT(tokens.size() == 3); in StringUtil_selfTest()
169 DE_TEST_ASSERT(tokens[0] == "foo"); in StringUtil_selfTest()
170 DE_TEST_ASSERT(tokens[1] == "bar"); in StringUtil_selfTest()
171 DE_TEST_ASSERT(tokens[2] == "baz"); in StringUtil_selfTest()
/third_party/json/include/nlohmann/detail/
H A Dexceptions.hpp66 std::vector<std::string> tokens; in diagnostics() local
77 tokens.emplace_back(std::to_string(i)); in diagnostics()
90 tokens.emplace_back(element.first.c_str()); in diagnostics()
110 if (tokens.empty()) in diagnostics()
115 auto str = std::accumulate(tokens.rbegin(), tokens.rend(), std::string{}, in diagnostics()
/third_party/rust/crates/bindgen/bindgen/codegen/
H A Dimpl_debug.rs14 let mut tokens = vec![]; in gen_debug_impl() variables
33 tokens.extend(toks); in gen_debug_impl()
41 tokens.insert(0, quote! { #format_string }); in gen_debug_impl()
47 write!(f, #( #tokens ),*) in gen_debug_impl()
52 /// A trait for the things which we can codegen tokens that contribute towards a
92 let mut tokens = vec![]; in impl_debug() variables
102 tokens.push(quote! { in impl_debug()
108 Some((format_string, tokens)) in impl_debug()
/third_party/rust/crates/clap/clap_derive/src/
H A Dattr.rs62 AttrValue::LitStr(tokens) => Ok(tokens), in lit_str_or_abort()
182 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
184 Self::LitStr(t) => t.to_tokens(tokens), in to_tokens()
185 Self::Expr(t) => t.to_tokens(tokens), in to_tokens()
188 t.to_tokens(tokens) in to_tokens()
/third_party/python/Lib/lib2to3/pgen2/
H A Ddriver.py38 def parse_tokens(self, tokens, debug=False):
39 """Parse a series of tokens and return the syntax tree."""
47 for quintuple in tokens:
88 tokens = tokenize.generate_tokens(stream.readline)
89 return self.parse_tokens(tokens, debug)
102 tokens = tokenize.generate_tokens(io.StringIO(text).readline)
103 return self.parse_tokens(tokens, debug)
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
H A Dangle_format.py103 tokens = get_channel_tokens(format_id)
104 if len(tokens) == 0:
106 for token in tokens:
114 tokens = get_channel_tokens(format_id)
115 if len(tokens) == 0:
117 for token in tokens:
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dability_record_mgr.cpp114 * @brief Get the all tokens in the abilityRecordMgr.
116 * @return all tokens in the abilityRecordMgr.
121 std::vector<sptr<IRemoteObject>> tokens; in GetAllTokens() local
124 tokens.emplace_back(token); in GetAllTokens()
126 return tokens; in GetAllTokens()
/kernel/linux/linux-5.10/tools/lib/api/fs/
H A Dcgroup.c14 char mountpoint[PATH_MAX + 1], tokens[PATH_MAX + 1], type[PATH_MAX + 1]; in cgroupfs_find_mountpoint() local
32 mountpoint, type, tokens) == 3) { in cgroupfs_find_mountpoint()
36 token = strtok_r(tokens, ",", &saved_ptr); in cgroupfs_find_mountpoint()
/kernel/linux/linux-6.6/rust/macros/
H A Dlib.rs343 let mut tokens = input.into_iter().collect(); in paste() variables
344 paste::expand(&mut tokens); in paste()
345 tokens.into_iter().collect() in paste()
/kernel/linux/linux-5.10/lib/
H A Dts_fsm.c35 struct ts_fsm_token tokens[]; member
160 strict = fsm->tokens[0].recur != TS_FSM_HEAD_IGNORE; in fsm_find()
166 cur = &fsm->tokens[tok_idx]; in fsm_find()
169 next = &fsm->tokens[tok_idx + 1]; in fsm_find()
261 struct ts_fsm_token *tokens = (struct ts_fsm_token *) pattern; in fsm_init() local
262 unsigned int ntokens = len / sizeof(*tokens); in fsm_init()
272 struct ts_fsm_token *t = &tokens[i]; in fsm_init()
289 memcpy(fsm->tokens, pattern, len); in fsm_init()
292 struct ts_fsm_token *t = &fsm->tokens[i]; in fsm_init()
305 return fsm->tokens; in fsm_get_pattern()
[all...]
/kernel/linux/linux-6.6/lib/
H A Dts_fsm.c35 struct ts_fsm_token tokens[]; member
160 strict = fsm->tokens[0].recur != TS_FSM_HEAD_IGNORE; in fsm_find()
166 cur = &fsm->tokens[tok_idx]; in fsm_find()
169 next = &fsm->tokens[tok_idx + 1]; in fsm_find()
261 struct ts_fsm_token *tokens = (struct ts_fsm_token *) pattern; in fsm_init() local
262 unsigned int ntokens = len / sizeof(*tokens); in fsm_init()
272 struct ts_fsm_token *t = &tokens[i]; in fsm_init()
289 memcpy(fsm->tokens, pattern, len); in fsm_init()
292 struct ts_fsm_token *t = &fsm->tokens[i]; in fsm_init()
305 return fsm->tokens; in fsm_get_pattern()
[all...]
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_state_tgsi_transform.c154 new_tokens = tgsi_write_vpos(shader->tokens, in write_vpos()
201 new_tokens = tgsi_remove_dynamic_indexing(shader->tokens, in transform_dynamic_indexing()
233 const struct tgsi_token *tokens) in emulate_point_sprite()
248 assert(tokens != NULL); in emulate_point_sprite()
250 orig_tokens = tokens; in emulate_point_sprite()
283 * to transform the original tokens to support point sprite. in emulate_point_sprite()
297 /* if no new tokens are generated for whatever reason, just return */ in emulate_point_sprite()
325 /* Create a new geometry shader state with the new tokens */ in emulate_point_sprite()
370 const struct tgsi_token *tokens; in add_point_sprite_shader() local
391 tokens in add_point_sprite_shader()
231 emulate_point_sprite(struct svga_context *svga, struct svga_shader *shader, const struct tgsi_token *tokens) emulate_point_sprite() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Djson.c209 static struct json_token * json_alloc_token(unsigned int *tokens) in json_alloc_token() argument
211 (*tokens)++; in json_alloc_token()
212 if (*tokens > JSON_MAX_TOKENS) { in json_alloc_token()
227 unsigned int tokens = 0; in json_parse() local
237 token = json_alloc_token(&tokens); in json_parse()
262 token->child = json_alloc_token(&tokens); in json_parse()
302 token = json_alloc_token(&tokens); in json_parse()
351 curr_token->sibling = json_alloc_token(&tokens); in json_parse()
372 token = json_alloc_token(&tokens); in json_parse()
424 token = json_alloc_token(&tokens); in json_parse()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Djson.c209 static struct json_token * json_alloc_token(unsigned int *tokens) in json_alloc_token() argument
211 (*tokens)++; in json_alloc_token()
212 if (*tokens > JSON_MAX_TOKENS) { in json_alloc_token()
227 unsigned int tokens = 0; in json_parse() local
237 token = json_alloc_token(&tokens); in json_parse()
262 token->child = json_alloc_token(&tokens); in json_parse()
302 token = json_alloc_token(&tokens); in json_parse()
353 curr_token->sibling = json_alloc_token(&tokens); in json_parse()
374 token = json_alloc_token(&tokens); in json_parse()
426 token = json_alloc_token(&tokens); in json_parse()
[all...]
/third_party/skia/bin/
H A Dcompare27 tokens = line.split() variable
28 if tokens[0] != "Samples:":
30 samples = tokens[1:-1]
31 label = tokens[-1]

Completed in 13 milliseconds

12345678910>>...29