Home
last modified time | relevance | path

Searched refs:else_statements (Results 1 – 12 of 12) sorted by relevance

/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_if_stmt_test.cc34 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/
Dloop_to_for_loop.cc81 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/
Dif_statement.cc32 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()
Dif_statement.h56 const ElseStatementList else_statements; variable
/third_party/mesa3d/src/compiler/glsl/tests/
Dlower_jump_cases.py100 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/
Ddependency_graph.cc240 for (auto* e : i->else_statements) { in TraverseStatement()
Dresolver.cc938 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/
Dgenerator_impl.cc949 for (auto* e : stmt->else_statements) { in EmitIf()
/third_party/skia/third_party/externals/tint/src/writer/msl/
Dgenerator_impl.cc1970 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/
Dgenerator_impl.cc1474 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/
Dbuilder.cc3576 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/
Dgenerator_impl.cc2533 for (auto* e : stmt->else_statements) { in EmitIf()
2557 for (auto* e : stmt->else_statements) { in EmitIf()