Searched refs:else_statements (Results 1 – 12 of 12) sorted by relevance
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl_if_stmt_test.cc | 34 EXPECT_EQ(e->else_statements.size(), 0u); in TEST_F() 50 ASSERT_EQ(e->else_statements.size(), 2u); in TEST_F() 51 ASSERT_NE(e->else_statements[0]->condition, nullptr); in TEST_F() 53 e->else_statements[0]->condition->Is<ast::IdentifierExpression>()); in TEST_F() 54 EXPECT_EQ(e->else_statements[0]->body->statements.size(), 1u); in TEST_F() 56 ASSERT_EQ(e->else_statements[1]->condition, nullptr); in TEST_F() 57 EXPECT_EQ(e->else_statements[1]->body->statements.size(), 0u); in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | loop_to_for_loop.cc | 81 if_stmt->else_statements.empty()) { in Run() 83 } else if (if_stmt->body->Empty() && if_stmt->else_statements.size() == 1 && in Run() 84 if_stmt->else_statements[0]->condition == nullptr && in Run() 85 IsBlockWithSingleBreak(if_stmt->else_statements[0]->body)) { in Run()
|
/third_party/skia/third_party/externals/tint/src/ast/ |
D | if_statement.cc | 32 else_statements(std::move(else_stmts)) { in IfStatement() 37 for (auto* el : else_statements) { in IfStatement() 52 auto el = ctx->Clone(else_statements); in Clone()
|
D | if_statement.h | 56 const ElseStatementList else_statements; variable
|
/third_party/mesa3d/src/compiler/glsl/tests/ |
D | lower_jump_cases.py | 100 def simple_if(var_name, then_statements, else_statements = None): argument 111 if else_statements is None: 112 else_statements = [] 114 check_sexp(else_statements) 115 return [['if', gt_zero(var_name), then_statements, else_statements]] 232 def if_return_flag(then_statements, else_statements): argument 236 check_sexp(else_statements) 237 return [['if', ['var_ref', 'return_flag'], then_statements, else_statements]]
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | dependency_graph.cc | 240 for (auto* e : i->else_statements) { in TraverseStatement()
|
D | resolver.cc | 938 for (auto* else_stmt : stmt->else_statements) { in IfStatement() 947 if (stmt->else_statements.empty() || in IfStatement() 948 stmt->else_statements.back()->condition != nullptr) { in IfStatement()
|
/third_party/skia/third_party/externals/tint/src/writer/wgsl/ |
D | generator_impl.cc | 949 for (auto* e : stmt->else_statements) { in EmitIf()
|
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
D | generator_impl.cc | 1970 for (auto* e : stmt->else_statements) { in EmitIf() 1994 for (auto* e : stmt->else_statements) { in EmitIf()
|
/third_party/skia/third_party/externals/tint/src/writer/glsl/ |
D | generator_impl.cc | 1474 for (auto* e : stmt->else_statements) { in EmitIf() 1498 for (auto* e : stmt->else_statements) { in EmitIf()
|
/third_party/skia/third_party/externals/tint/src/writer/spirv/ |
D | builder.cc | 3576 if (is_just_a_break(stmt->body) && stmt->else_statements.empty()) { in GenerateIfStatement() 3586 const auto& es = stmt->else_statements; in GenerateIfStatement() 3602 stmt->else_statements)) { in GenerateIfStatement()
|
/third_party/skia/third_party/externals/tint/src/writer/hlsl/ |
D | generator_impl.cc | 2533 for (auto* e : stmt->else_statements) { in EmitIf() 2557 for (auto* e : stmt->else_statements) { in EmitIf()
|