Home
last modified time | relevance | path

Searched refs:IfStatement (Results 1 – 25 of 112) sorted by relevance

12345

/third_party/skia/third_party/externals/tint/src/ast/
Dif_statement.cc19 TINT_INSTANTIATE_TYPEINFO(tint::ast::IfStatement);
24 IfStatement::IfStatement(ProgramID pid, in IfStatement() function in tint::ast::IfStatement
43 IfStatement::IfStatement(IfStatement&&) = default;
45 IfStatement::~IfStatement() = default;
47 const IfStatement* IfStatement::Clone(CloneContext* ctx) const { in Clone()
53 return ctx->dst->create<IfStatement>(src, cond, b, el); in Clone()
Dif_statement.h26 class IfStatement : public Castable<IfStatement, Statement> {
34 IfStatement(ProgramID pid,
40 IfStatement(IfStatement&&);
41 ~IfStatement() override;
47 const IfStatement* Clone(CloneContext* ctx) const override;
Dif_statement_test.cc29 auto* stmt = create<IfStatement>(Source{Source::Location{20, 2}}, cond, in TEST_F()
38 auto* stmt = create<IfStatement>(Expr(true), Block(), ElseStatementList{}); in TEST_F()
39 EXPECT_TRUE(stmt->Is<IfStatement>()); in TEST_F()
46 b.create<IfStatement>(nullptr, b.Block(), ElseStatementList{}); in TEST_F()
55 b.create<IfStatement>(b.Expr(true), nullptr, ElseStatementList{}); in TEST_F()
65 b.create<IfStatement>(b.Expr(true), body, ElseStatementList{nullptr}); in TEST_F()
75 b1.create<IfStatement>(b2.Expr(true), b1.Block(), ElseStatementList{}); in TEST_F()
85 b1.create<IfStatement>(b1.Expr(true), b2.Block(), ElseStatementList{}); in TEST_F()
95 b1.create<IfStatement>( in TEST_F()
Dstatement.cc68 if (Is<IfStatement>()) { in Name()
/third_party/skia/third_party/externals/tint/src/sem/
Dif_statement.cc19 TINT_INSTANTIATE_TYPEINFO(tint::sem::IfStatement);
25 IfStatement::IfStatement(const ast::IfStatement* declaration, in IfStatement() function in tint::sem::IfStatement
30 IfStatement::~IfStatement() = default;
Dif_statement.h23 class IfStatement; variable
35 class IfStatement : public Castable<IfStatement, CompoundStatement> {
41 IfStatement(const ast::IfStatement* declaration,
46 ~IfStatement() override;
/third_party/skia/src/sksl/ir/
DSkSLIfStatement.cpp20 std::unique_ptr<Statement> IfStatement::clone() const { in clone()
21 return std::make_unique<IfStatement>(fLine, this->isStatic(), this->test()->clone(), in clone()
26 String IfStatement::description() const { in description()
38 std::unique_ptr<Statement> IfStatement::Convert(const Context& context, int line, bool isStatic, in Convert()
53 return IfStatement::Make(context, line, isStatic, std::move(test), in Convert()
63 std::unique_ptr<Statement> IfStatement::Make(const Context& context, int line, bool isStatic, in Make()
104 return std::make_unique<IfStatement>(line, isStatic, std::move(test), in Make()
DSkSLIfStatement.h21 class IfStatement final : public Statement {
25 IfStatement(int line, bool isStatic, std::unique_ptr<Expression> test, in IfStatement() function
/third_party/skia/third_party/externals/tint/src/writer/spirv/
Dbuilder_if_test.cc31 create<ast::IfStatement>(cond, Block(), ast::ElseStatementList{}); in TEST_F()
59 auto* expr = create<ast::IfStatement>(cond, block, elses); in TEST_F()
79 create<ast::IfStatement>(Expr(true), body, ast::ElseStatementList{}); in TEST_F()
117 auto* expr = create<ast::IfStatement>( in TEST_F()
161 auto* expr = create<ast::IfStatement>( in TEST_F()
218 auto* expr = create<ast::IfStatement>( in TEST_F()
284 create<ast::IfStatement>(Expr(true), if_body, ast::ElseStatementList{}); in TEST_F()
326 auto* if_stmt = create<ast::IfStatement>( in TEST_F()
372 create<ast::IfStatement>(Expr(true), if_body, ast::ElseStatementList{}); in TEST_F()
414 auto* if_stmt = create<ast::IfStatement>( in TEST_F()
Dbuilder_loop_test.cc229 auto* if_stmt = create<ast::IfStatement>(Expr(true), Block(Break()), in TEST_F()
262 auto* if_stmt = create<ast::IfStatement>( in TEST_F()
303 auto* inner_if_stmt = create<ast::IfStatement>(Expr(true), Block(Break()), in TEST_F()
308 auto* outer_if_stmt = create<ast::IfStatement>(Expr(true), Block(Break()), in TEST_F()
358 auto* inner_if_stmt = create<ast::IfStatement>( in TEST_F()
364 auto* outer_if_stmt = create<ast::IfStatement>( in TEST_F()
/third_party/typescript/tests/baselines/reference/
DAPISample_linter.js36 case ts.SyntaxKind.IfStatement:
37 let ifStatement = (<ts.IfStatement>node);
43 ifStatement.elseStatement.kind !== ts.SyntaxKind.IfStatement) {
97 case ts.SyntaxKind.IfStatement:
104 ifStatement.elseStatement.kind !== ts.SyntaxKind.IfStatement) {
/third_party/typescript/tests/cases/compiler/
DAPISample_linter.ts39 case ts.SyntaxKind.IfStatement:
40 let ifStatement = (<ts.IfStatement>node);
46 ifStatement.elseStatement.kind !== ts.SyntaxKind.IfStatement) {
/third_party/skia/third_party/externals/tint/src/resolver/
Dcompound_statement_test.cc245 EXPECT_TRUE(s->Is<sem::IfStatement>()); in TEST_F()
254 EXPECT_TRUE(s->Is<sem::IfStatement>()); in TEST_F()
263 EXPECT_EQ(s->Parent()->Parent(), s->FindFirstParent<sem::IfStatement>()); in TEST_F()
273 EXPECT_EQ(s->Parent(), s->FindFirstParent<sem::IfStatement>()); in TEST_F()
285 s->FindFirstParent<sem::IfStatement>()); in TEST_F()
296 s->FindFirstParent<sem::IfStatement>()); in TEST_F()
Dresolver.h65 class IfStatement; variable
219 sem::IfStatement* IfStatement(const ast::IfStatement*);
254 bool ValidateIfStatement(const sem::IfStatement* stmt);
/third_party/skia/src/sksl/analysis/
DSkSLCanExitWithoutReturningValue.cpp44 const IfStatement& i = stmt.as<IfStatement>(); in visitStatement()
/third_party/typescript/src/services/codefixes/
DfixUnreachableCode.ts34 case SyntaxKind.IfStatement:
35 if ((container as IfStatement).elseStatement) {
/third_party/skia/src/sksl/transform/
DSkSLEliminateUnreachableCode.cpp95 IfStatement& ifStmt = stmt->as<IfStatement>(); in EliminateUnreachableCode()
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_if_stmt_test.cc30 ASSERT_TRUE(e->Is<ast::IfStatement>()); in TEST_F()
45 ASSERT_TRUE(e->Is<ast::IfStatement>()); in TEST_F()
/third_party/skia/src/sksl/codegen/
DSkSLGLSLCodeGenerator.h31 class IfStatement; variable
156 virtual void writeIfStatement(const IfStatement& stmt);
DSkSLMetalCodeGenerator.h33 class IfStatement; variable
241 void writeIfStatement(const IfStatement& stmt);
/third_party/skia/src/sksl/
DSkSLInliner.cpp260 if (!parentStmt || !(parentStmt->is<IfStatement>() || parentStmt->is<ForStatement>() || in ensureScopedBlocks()
524 const IfStatement& i = statement.as<IfStatement>(); in inlineStatement()
525 return IfStatement::Make(*fContext, line, i.isStatic(), expr(i.test()), in inlineStatement()
892 IfStatement& ifStmt = (*stmt)->as<IfStatement>(); in visitStatement()
/third_party/skia/third_party/externals/tint/docs/
Dcompound_statements.md22 sem::IfStatement {
/third_party/skia/third_party/externals/tint/src/transform/
Dloop_to_for_loop.cc74 auto* if_stmt = stmts[0]->As<ast::IfStatement>(); in Run()
/third_party/typescript/src/services/
Dbreakpoints.ts135 case SyntaxKind.IfStatement:
137 return textSpanEndingAtNextToken(node, (node as IfStatement).expression);
489 case SyntaxKind.IfStatement:
/third_party/skia/third_party/externals/tint/src/writer/wgsl/
Dgenerator_impl.h127 bool EmitIf(const ast::IfStatement* stmt);

12345