/third_party/skia/third_party/externals/tint/src/inspector/ |
D | test_inspector_builder.cc | 68 ast::StatementList stmts; in MakePlainGlobalReferenceBodyFunction() local 69 stmts.emplace_back(Decl(Var("local_" + var, type))); in MakePlainGlobalReferenceBodyFunction() 70 stmts.emplace_back(Assign("local_" + var, var)); in MakePlainGlobalReferenceBodyFunction() 71 stmts.emplace_back(Return()); in MakePlainGlobalReferenceBodyFunction() 73 return Func(func, ast::VariableList(), ty.void_(), stmts, decorations); in MakePlainGlobalReferenceBodyFunction() 165 ast::StatementList stmts; in MakeStructVariableReferenceBodyFunction() local 172 stmts.emplace_back(Decl(Var("local" + member_name, member_type))); in MakeStructVariableReferenceBodyFunction() 181 stmts.emplace_back(Assign("local" + member_name, in MakeStructVariableReferenceBodyFunction() 185 stmts.emplace_back(Return()); in MakeStructVariableReferenceBodyFunction() 187 Func(func_name, ast::VariableList(), ty.void_(), stmts, in MakeStructVariableReferenceBodyFunction() [all …]
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | fold_trivial_single_use_lets.cc | 57 auto& stmts = block->statements; in Run() local 58 for (size_t stmt_idx = 0; stmt_idx < stmts.size(); stmt_idx++) { in Run() 59 auto* stmt = stmts[stmt_idx]; in Run() 71 for (size_t i = stmt_idx; i < stmts.size(); i++) { in Run() 72 if (user_stmt == stmts[i]) { in Run() 74 ctx.Remove(stmts, let_decl); in Run() 77 if (!AsTrivialLetDecl(stmts[i])) { in Run()
|
D | zero_init_workgroup_memory.cc | 182 auto& stmts = stmts_by_num_iterations[s.num_iterations]; in Run() local 183 if (stmts.empty()) { in Run() 186 stmts.emplace_back(s); in Run() 192 auto& stmts = stmts_by_num_iterations[num_iterations]; in Run() local 196 for (auto& s : stmts) { in Run() 224 for (auto& s : stmts) { in Run() 240 for (auto& s : stmts) { in Run() 254 for (auto& s : stmts) { in Run() 344 ast::StatementList stmts; in DeclareArrayIndices() local 355 stmts.emplace_back(decl); in DeclareArrayIndices() [all …]
|
D | for_loop_to_loop.cc | 31 ast::StatementList stmts; in Run() local 42 stmts.emplace_back(ctx.dst->If(not_cond, break_body)); in Run() 45 stmts.emplace_back(ctx.Clone(stmt)); in Run() 53 auto* body = ctx.dst->Block(stmts); in Run()
|
D | loop_to_for_loop.cc | 70 auto& stmts = loop->body->statements; in Run() local 71 if (stmts.empty()) { in Run() 74 auto* if_stmt = stmts[0]->As<ast::IfStatement>(); in Run()
|
/third_party/rust/crates/syn/tests/ |
D | test_stmt.rs | 87 let stmts = Block::parse_within.parse2(tokens).unwrap(); in test_none_group() localVariable 88 snapshot!(stmts, @r###" in test_none_group() 275 let stmts = Block::parse_within.parse2(tokens).unwrap(); in test_early_parse_loop() localVariable 277 snapshot!(stmts, @r###" in test_early_parse_loop() 299 let stmts = Block::parse_within.parse2(tokens).unwrap(); in test_early_parse_loop() localVariable 301 snapshot!(stmts, @r###" in test_early_parse_loop()
|
D | test_parse_quote.rs | 145 let stmts: Vec<Stmt> = parse_quote! { in test_vec_stmt() localVariable 149 snapshot!(stmts, @r###" in test_vec_stmt()
|
/third_party/skia/third_party/externals/tint/src/ast/ |
D | block_statement.cc | 26 const StatementList& stmts) in BlockStatement() argument 27 : Base(pid, src), statements(std::move(stmts)) { in BlockStatement() 41 auto stmts = ctx->Clone(statements); in Clone() local 42 return ctx->dst->create<BlockStatement>(src, stmts); in Clone()
|
/third_party/skia/src/sksl/dsl/ |
D | DSLStatement.cpp | 87 StatementArray stmts; in operator ,() local 88 stmts.reserve_back(2); in operator ,() 89 stmts.push_back(left.release()); in operator ,() 90 stmts.push_back(right.release()); in operator ,() 91 return DSLStatement(SkSL::Block::MakeUnscoped(line, std::move(stmts))); in operator ,()
|
/third_party/skia/src/sksl/dsl/priv/ |
D | DSLWriter.cpp | 104 StatementArray stmts; in AddVarDeclaration() local 105 stmts.reserve_back(2); in AddVarDeclaration() 106 stmts.push_back(std::move(existing.fStatement)); in AddVarDeclaration() 107 stmts.push_back(Declare(additional).release()); in AddVarDeclaration() 108 existing.fStatement = SkSL::Block::MakeUnscoped(/*line=*/-1, std::move(stmts)); in AddVarDeclaration()
|
/third_party/node/deps/v8/src/ast/ |
D | source-range-ast-visitor.cc | 20 ZonePtrList<Statement>* stmts = stmt->statements(); in VisitBlock() local 24 MaybeRemoveLastContinuationRange(stmts); in VisitBlock() 38 ZonePtrList<Statement>* stmts = expr->body(); in VisitFunctionLiteral() local 39 MaybeRemoveLastContinuationRange(stmts); in VisitFunctionLiteral()
|
D | ast-traversal-visitor.h | 115 const ZonePtrList<Statement>* stmts) { in VisitStatements() argument 116 for (int i = 0; i < stmts->length(); ++i) { in VisitStatements() 117 Statement* stmt = stmts->at(i); in VisitStatements() 207 const ZonePtrList<Statement>* stmts = clause->statements(); in VisitSwitchStatement() local 208 RECURSE(VisitStatements(stmts)); in VisitSwitchStatement()
|
D | source-range-ast-visitor.h | 44 void MaybeRemoveLastContinuationRange(ZonePtrList<Statement>* stmts);
|
/third_party/node/deps/v8/tools/cppgc/ |
D | gen_cmake.py | 119 def _Target(self, target_type, target, stmts): argument 120 stmts = self._StatementList(stmts) 121 return self.builder.BuildTarget(target_type, target, stmts) 123 def _StatementList(self, stmts): argument 125 for stmt in stmts:
|
/third_party/rust/crates/syn/src/ |
D | stmt.rs | 9 pub stmts: Vec<Stmt>, 136 let mut stmts = Vec::new(); in parse_within() localVariable 139 stmts.push(Stmt::Expr(Expr::Verbatim(TokenStream::new()), semi)); in parse_within() 152 stmts.push(stmt); in parse_within() 159 Ok(stmts) in parse_within() 169 stmts: content.call(Block::parse_within)?, in parse() 406 tokens.append_all(&self.stmts); in to_tokens()
|
D | expr.rs | 2187 let stmts = content.call(Block::parse_within)?; in parse() localVariable 2196 body: Block { brace_token, stmts }, in parse() 2212 let stmts = content.call(Block::parse_within)?; in parse() localVariable 2218 body: Block { brace_token, stmts }, in parse() 2500 let stmts = content.call(Block::parse_within)?; in parse() localVariable 2507 body: Block { brace_token, stmts }, in parse() 2521 let stmts = content.call(Block::parse_within)?; in parse() localVariable 2526 block: Block { brace_token, stmts }, in parse() 2713 let stmts = content.call(Block::parse_within)?; in parse() localVariable 2718 block: Block { brace_token, stmts }, in parse() [all …]
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
D | SeparateCompoundExpressions.cpp | 264 void pushStmtsIntoBlock(TIntermBlock &block, std::vector<TIntermNode *> &stmts) in pushStmtsIntoBlock() argument 267 for (TIntermNode *stmt : stmts) in pushStmtsIntoBlock() 284 std::vector<TIntermNode *> stmts = std::move(getCurrStmts()); in buildBlockWithTailAssign() local 289 seq.reserve(1 + stmts.size()); in buildBlockWithTailAssign() 290 pushStmtsIntoBlock(block, stmts); in buildBlockWithTailAssign() 305 std::vector<TIntermNode *> stmts = std::move(getCurrStmts()); in visitBlockPost() local 310 seq.reserve(stmts.size()); in visitBlockPost() 311 pushStmtsIntoBlock(node, stmts); in visitBlockPost()
|
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
D | parser_impl_test_helper.cc | 47 std::string ToString(const Program& program, const ast::StatementList& stmts) { in ToString() argument 49 for (const auto* stmt : stmts) { in ToString()
|
D | function.cc | 833 top.GetConstruct(), end_id, [=](const ast::StatementList& stmts) { in PushGuard() argument 834 builder->body = create<ast::BlockStatement>(Source{}, stmts); in PushGuard() 846 top.GetConstruct(), end_id, [=](const ast::StatementList& stmts) { in PushTrueGuard() argument 847 builder->body = create<ast::BlockStatement>(Source{}, stmts); in PushTrueGuard() 1206 ast::StatementList stmts; in EmitEntryPointAsWrapper() local 1247 &(decl.params), &stmts); in EmitEntryPointAsWrapper() 1251 forced_param_type, &(decl.params), &stmts); in EmitEntryPointAsWrapper() 1259 stmts.push_back(create<ast::CallStatement>( in EmitEntryPointAsWrapper() 1352 stmts.push_back(create<ast::ReturnStatement>( in EmitEntryPointAsWrapper() 1358 auto* body = create<ast::BlockStatement>(source, stmts); in EmitEntryPointAsWrapper() [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/wgsl/ |
D | generator_impl.h | 157 bool EmitStatements(const ast::StatementList& stmts); 161 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
|
/third_party/skia/include/sksl/ |
D | DSLFunction.h | 64 void define(Stmt... stmts) { in define() argument 65 DSLBlock block = DSLBlock(DSLStatement(std::move(stmts))...); in define()
|
/third_party/skia/third_party/externals/tint/src/ |
D | program_builder.cc | 134 const ast::StatementList stmts) { in WrapInFunction() argument 135 return Func("test_function", {}, ty.void_(), std::move(stmts), in WrapInFunction()
|
/third_party/python/Lib/test/ |
D | test_profile.py | 71 stmts = [ 79 for stmt in stmts:
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl.cc | 1538 auto stmts = expect_statements(); in expect_body_stmt() local 1539 if (stmts.errored) in expect_body_stmt() 1541 return create<ast::BlockStatement>(Source{}, stmts.value); in expect_body_stmt() 1563 ast::StatementList stmts; in expect_statements() local 1570 stmts.emplace_back(stmt.value); in expect_statements() 1579 return stmts; in expect_statements() 1959 ast::StatementList stmts; in case_body() local 1966 stmts.emplace_back(create<ast::FallthroughStatement>(source)); in case_body() 1976 stmts.emplace_back(stmt.value); in case_body() 1979 return create<ast::BlockStatement>(Source{}, stmts); in case_body() [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
D | generator_impl.h | 288 bool EmitStatements(const ast::StatementList& stmts); 292 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
|