/third_party/rust/crates/quote/src/ |
H A D | spanned.rs | 28 fn join_spans(tokens: TokenStream) -> Span { in join_spans() 29 let mut iter = tokens.into_iter().map(|tt| tt.span()); in join_spans()
|
/third_party/gn/src/gn/ |
H A D | parser.h | 22 // Parses a series of tokens. The resulting AST will refer to the tokens passed 23 // to the input, so the tokens an the file data they refer to must outlive your 28 static std::unique_ptr<ParseNode> Parse(const std::vector<Token>& tokens, 33 const std::vector<Token>& tokens, 37 static std::unique_ptr<ParseNode> ParseValue(const std::vector<Token>& tokens, 42 Parser(const std::vector<Token>& tokens, Err* err); 124 // Current index into the tokens.
|
H A D | input_conversion.cc | 43 std::vector<Token>* tokens; in ParseValueOrScope() local 46 &tokens, &parse_root_ptr); in ParseValueOrScope() local 61 *tokens = Tokenizer::Tokenize(input_file, err); in ParseValueOrScope() 67 *parse_root_ptr = Parser::ParseValue(*tokens, err); in ParseValueOrScope() 69 *parse_root_ptr = Parser::Parse(*tokens, err); // Will return a Block. in ParseValueOrScope() 180 std::vector<Token>* tokens; in ParseJSON() local 183 &tokens, &parse_root_ptr); in ParseJSON() local
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_atomics_to_ssbo.c | 41 if (var->state_slots[0].tokens[0] == offset_align_state && in deref_offset_var() 42 var->state_slots[0].tokens[1] == binding) in deref_offset_var() 48 var->state_slots[0].tokens[0] = offset_align_state; in deref_offset_var() 49 var->state_slots[0].tokens[1] = binding; in deref_offset_var()
|
/third_party/mesa3d/src/gallium/auxiliary/driver_rbug/ |
H A D | rbug_objects.c | 212 if (state->tokens) in rbug_shader_create() 213 rb_shader->tokens = tgsi_dup_tokens(state->tokens); in rbug_shader_create() 251 FREE(rb_shader->tokens); in rbug_shader_destroy()
|
/third_party/python/Lib/lib2to3/ |
H A D | patcomp.py | 31 tokens = tokenize.generate_tokens(io.StringIO(input).readline) 32 for quintuple in tokens: 57 tokens = tokenize_wrapper(input) 59 root = self.driver.parse_tokens(tokens, debug=debug) 78 # Skip the odd children since they are just '|' tokens 178 # Map named tokens to the type value for a LeafPattern
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcTestSubcase.cpp | 118 istringstream tokens(message); in WriteField() 121 while (getline(tokens, line)) in WriteField() 133 std::istringstream tokens(msg); in OutputNotSupported() 136 while (getline(tokens, line)) in OutputNotSupported()
|
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/lexer/ |
H A D | lexer.go | 26 // Lex produces a list of tokens for the given source code 36 return l.tokens, nil 42 tokens []tok.Token 45 // lex() lexes the source, populating l.tokens 160 l.tokens = append(l.tokens, tok.Token{Kind: k, Source: src, Runes: runes})
|
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
H A D | block.c | 107 char *tokens[UBIBLOCK_PARAM_COUNT]; in ubiblock_set_param() local 131 tokens[i] = strsep(&pbuf, ","); in ubiblock_set_param() 134 if (tokens[1]) { in ubiblock_set_param() 136 ret = kstrtoint(tokens[0], 10, ¶m->ubi_num); in ubiblock_set_param() 141 ret = kstrtoint(tokens[1], 10, ¶m->vol_id); in ubiblock_set_param() 144 strcpy(param->name, tokens[1]); in ubiblock_set_param() 149 strcpy(param->name, tokens[0]); in ubiblock_set_param()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-meson.c | 84 * @tokens: Sequence of tokens to be written to the device 85 * @num_tokens: Number of tokens 103 u32 tokens[2]; member 122 i2c->tokens[0] = 0; in meson_i2c_reset_tokens() 123 i2c->tokens[1] = 0; in meson_i2c_reset_tokens() 130 i2c->tokens[0] |= (token & 0xf) << (i2c->num_tokens * 4); in meson_i2c_add_token() 132 i2c->tokens[1] |= (token & 0xf) << ((i2c->num_tokens % 8) * 4); in meson_i2c_add_token() 224 writel(i2c->tokens[0], i2c->regs + REG_TOK_LIST0); in meson_i2c_prepare_xfer() 225 writel(i2c->tokens[ in meson_i2c_prepare_xfer() [all...] |
/kernel/linux/linux-6.6/drivers/mtd/ubi/ |
H A D | block.c | 103 char *tokens[UBIBLOCK_PARAM_COUNT]; in ubiblock_set_param() local 127 tokens[i] = strsep(&pbuf, ","); in ubiblock_set_param() 130 if (tokens[1]) { in ubiblock_set_param() 132 ret = kstrtoint(tokens[0], 10, ¶m->ubi_num); in ubiblock_set_param() 137 ret = kstrtoint(tokens[1], 10, ¶m->vol_id); in ubiblock_set_param() 140 strcpy(param->name, tokens[1]); in ubiblock_set_param() 145 strcpy(param->name, tokens[0]); in ubiblock_set_param()
|
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-meson.c | 82 * @tokens: Sequence of tokens to be written to the device 83 * @num_tokens: Number of tokens 101 u32 tokens[2]; member 124 i2c->tokens[0] = 0; in meson_i2c_reset_tokens() 125 i2c->tokens[1] = 0; in meson_i2c_reset_tokens() 132 i2c->tokens[0] |= (token & 0xf) << (i2c->num_tokens * 4); in meson_i2c_add_token() 134 i2c->tokens[1] |= (token & 0xf) << ((i2c->num_tokens % 8) * 4); in meson_i2c_add_token() 274 writel(i2c->tokens[0], i2c->regs + REG_TOK_LIST0); in meson_i2c_prepare_xfer() 275 writel(i2c->tokens[ in meson_i2c_prepare_xfer() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_pipe_pstipple.c | 57 /** Approx number of new tokens for instructions in pstip_transform_inst() */ 141 pstip_fs.tokens = util_pstipple_create_fragment_shader(orig_fs->tokens, in generate_pstip_fs() 145 if (pstip_fs.tokens == NULL) in generate_pstip_fs() 157 FREE((void *)pstip_fs.tokens); in generate_pstip_fs() 350 pstipfs->state.tokens = tgsi_dup_tokens(fs->tokens); in pstip_create_fs_state() 387 FREE((void*)pstipfs->state.tokens); in pstip_delete_fs_state()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_tgsi.c | 191 tgsi_scan_shader(shader->tokens, &emit.info); in svga_tgsi_vgpu9_translate() 226 if (!svga_shader_emit_instructions(&emit, shader->tokens)) { in svga_tgsi_vgpu9_translate() 236 variant->tokens = (const unsigned *) emit.buf; in svga_tgsi_vgpu9_translate() 255 if (!svga_shader_verify(variant->tokens, variant->nr_tokens) || in svga_tgsi_vgpu9_translate() 259 tgsi_dump(shader->tokens, 0); in svga_tgsi_vgpu9_translate() 262 svga_shader_dump(variant->tokens, variant->nr_tokens, FALSE); in svga_tgsi_vgpu9_translate() 406 tgsi_scan_shader(shader->tokens, tgsi_info); in svga_tgsi_scan_shader()
|
/third_party/skia/tools/ |
H A D | MSKPPlayer.cpp | 294 SkTArray<SkString> tokens; variable 295 SkStrSplit(key, "|", kStrict_SkStrSplitMode, &tokens); 296 if (tokens.size() == 2) { 297 if (tokens[0].equals(kOffscreenLayerDraw)) { 301 fNextDrawPictureToLayerID = std::stoi(tokens[1].c_str()); 312 } else if (tokens[0].equals(kSurfaceID)) { 315 fNextDrawImageFromLayerID = std::stoi(tokens[1].c_str());
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
H A D | nv30_vertprog.c | 231 vp->pipe.tokens = nir_to_tgsi(cso->ir.nir, pipe->screen); in nv30_vp_state_create() 234 /* we need to keep a local copy of the tokens */ in nv30_vp_state_create() 235 vp->pipe.tokens = tgsi_dup_tokens(cso->tokens); in nv30_vp_state_create() 238 tgsi_scan_shader(vp->pipe.tokens, &vp->info); in nv30_vp_state_create() 253 FREE((void *)vp->pipe.tokens); in nv30_vp_state_delete()
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | pixelshader9.c | 77 This->byte_code.tokens = mem_dup(pFunction, info.byte_size); in NinePixelShader9_ctor() 78 if (!This->byte_code.tokens) in NinePixelShader9_ctor() 145 FREE((void *)This->byte_code.tokens); /* const_cast */ in NinePixelShader9_dtor() 165 memcpy(pData, This->byte_code.tokens, This->byte_code.size); in NinePixelShader9_GetFunction() 197 info.byte_code = This->byte_code.tokens; in NinePixelShader9_GetVariant()
|
/third_party/rust/crates/syn/tests/ |
H A D | test_lit.rs | 17 let mut tokens = TokenStream::from_str(s).unwrap().into_iter(); in lit() variables 18 match tokens.next().unwrap() { in lit() 20 assert!(tokens.next().is_none()); in lit() 255 let tokens = TokenStream::from_iter(vec![TokenTree::Group(Group::new( in test_deep_group_empty() 263 snapshot!(tokens as Lit, @r#""hi""# ); in test_deep_group_empty()
|
/third_party/mesa3d/src/gallium/frontends/d3d10umd/ |
H A D | Shader.cpp | 64 const struct tgsi_token *tokens; in CreateEmptyShader() local 77 tokens = ureg_get_tokens(ureg, &nr_tokens); in CreateEmptyShader() 78 if (!tokens) in CreateEmptyShader() 85 state.tokens = tokens; in CreateEmptyShader() 104 ureg_free_tokens(tokens); in CreateEmptyShader() 317 if (pShader->state.tokens) { in DestroyShader() 318 ureg_free_tokens(pShader->state.tokens); in DestroyShader() 553 pShader->state.tokens = Shader_tgsi_translate(pCode, pShader->output_mapping); in CreateVertexShader() 689 pShader->state.tokens in CreateGeometryShader() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | PluralRules.java | 1432 String[] tokens = SimpleTokenizer.split(condition); in parseConstraint() 1442 String t = tokens[x++]; in parseConstraint() 1450 if (x < tokens.length) { in parseConstraint() 1451 t = tokens[x++]; in parseConstraint() 1453 mod = Integer.parseInt(tokens[x++]); in parseConstraint() 1454 t = nextToken(tokens, x++, condition); in parseConstraint() 1458 t = nextToken(tokens, x++, condition); in parseConstraint() 1464 t = nextToken(tokens, x++, condition); in parseConstraint() 1474 t = nextToken(tokens, x++, condition); in parseConstraint() 1477 t = nextToken(tokens, in parseConstraint() 1589 nextToken(String[] tokens, int x, String context) nextToken() argument [all...] |
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_iterate.c | 33 const struct tgsi_token *tokens, in tgsi_iterate_shader() 38 if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK) in tgsi_iterate_shader() 32 tgsi_iterate_shader( const struct tgsi_token *tokens, struct tgsi_iterate_context *ctx ) tgsi_iterate_shader() argument
|
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | ext.py | 98 to filter tokens returned. This method has to return an iterable of 588 def __init__(self, tokens, comment_tags): 589 self.tokens = tokens 597 self.tokens[self.offset : offset] 613 for idx, (token_lineno, _, _) in enumerate(self.tokens[self.offset :]): 616 return self.find_backwards(len(self.tokens)) 686 tokens = list(environment.lex(environment.preprocess(source))) 693 finder = _CommentFinder(tokens, comment_tags)
|
H A D | lexer.py | 58 # internal the tokens and keep references to them 362 """Got n tokens ahead.""" 629 # we are not interested in those tokens in the parser 663 """This method tokenizes the text and returns the tokens in a 689 for regex, tokens, new_state in statetokens: 699 if balancing_stack and tokens in ( 707 if isinstance(tokens, tuple): 710 if isinstance(tokens, OptionalLStrip): 741 for idx, token in enumerate(tokens): 772 if tokens [all...] |
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | ext.py | 91 to filter tokens returned. This method has to return an iterable of 512 def __init__(self, tokens, comment_tags): 513 self.tokens = tokens 521 reversed(self.tokens[self.offset:offset]): 536 for idx, (token_lineno, _, _) in enumerate(self.tokens[self.offset:]): 539 return self.find_backwards(len(self.tokens)) 610 tokens = list(environment.lex(environment.preprocess(source))) 617 finder = _CommentFinder(tokens, comment_tags)
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | LLVMReactorDebugInfo.cpp | 255 auto tokens = getOrParseFileTokens(location.function.file.c_str()); in EmitVariable() local 256 auto tokIt = tokens->find(location.line); in EmitVariable() 257 if(tokIt == tokens->end()) in EmitVariable() 500 auto tokens = std::make_unique<LineTokens>(); in getOrParseFileTokens() local 516 (*tokens)[lineCount] = Token{ Token::Return, "" }; in getOrParseFileTokens() 520 (*tokens)[lineCount] = Token{ Token::Identifier, match.str(2) }; in getOrParseFileTokens() 526 auto out = tokens.get(); in getOrParseFileTokens() 527 fileTokens.emplace(path, std::move(tokens)); in getOrParseFileTokens()
|