Home
last modified time | relevance | path

Searched refs:SwitchStatement (Results 1 – 25 of 102) sorted by relevance

12345

/third_party/skia/third_party/externals/tint/src/ast/
Dswitch_statement.cc19 TINT_INSTANTIATE_TYPEINFO(tint::ast::SwitchStatement);
24 SwitchStatement::SwitchStatement(ProgramID pid, in SwitchStatement() function in tint::ast::SwitchStatement
37 SwitchStatement::SwitchStatement(SwitchStatement&&) = default;
39 SwitchStatement::~SwitchStatement() = default;
41 const SwitchStatement* SwitchStatement::Clone(CloneContext* ctx) const { in Clone()
46 return ctx->dst->create<SwitchStatement>(src, cond, b); in Clone()
Dswitch_statement.h25 class SwitchStatement : public Castable<SwitchStatement, Statement> {
32 SwitchStatement(ProgramID pid,
37 SwitchStatement(SwitchStatement&&);
38 ~SwitchStatement() override;
47 const SwitchStatement* Clone(CloneContext* ctx) const override;
54 SwitchStatement(const SwitchStatement&) = delete;
Dswitch_statement_test.cc35 auto* stmt = create<SwitchStatement>(ident, body); in TEST_F()
44 auto* stmt = create<SwitchStatement>(Source{Source::Location{20, 2}}, ident, in TEST_F()
59 auto* stmt = create<SwitchStatement>(ident, body); in TEST_F()
60 EXPECT_TRUE(stmt->Is<SwitchStatement>()); in TEST_F()
70 b.create<SwitchStatement>(nullptr, cases); in TEST_F()
79 b.create<SwitchStatement>(b.Expr(true), CaseStatementList{nullptr}); in TEST_F()
89 b1.create<SwitchStatement>(b2.Expr(true), CaseStatementList{ in TEST_F()
105 b1.create<SwitchStatement>(b1.Expr(true), CaseStatementList{ in TEST_F()
Dstatement.cc77 if (Is<SwitchStatement>()) { in Name()
/third_party/skia/third_party/externals/tint/src/sem/
Dswitch_statement.cc20 TINT_INSTANTIATE_TYPEINFO(tint::sem::SwitchStatement);
25 SwitchStatement::SwitchStatement(const ast::SwitchStatement* declaration, in SwitchStatement() function in tint::sem::SwitchStatement
33 SwitchStatement::~SwitchStatement() = default;
35 const ast::SwitchStatement* SwitchStatement::Declaration() const { in Declaration()
36 return static_cast<const ast::SwitchStatement*>(Base::Declaration()); in Declaration()
Dswitch_statement.h24 class SwitchStatement; variable
32 class SwitchStatement : public Castable<SwitchStatement, CompoundStatement> {
38 SwitchStatement(const ast::SwitchStatement* declaration,
43 ~SwitchStatement() override;
46 const ast::SwitchStatement* Declaration() const;
/third_party/skia/src/sksl/ir/
DSkSLSwitchStatement.cpp24 std::unique_ptr<Statement> SwitchStatement::clone() const { in clone()
30 return std::make_unique<SwitchStatement>(fLine, in clone()
37 String SwitchStatement::description() const { in description()
112 std::unique_ptr<Statement> SwitchStatement::BlockForCase(StatementArray* cases, in BlockForCase()
167 std::unique_ptr<Statement> SwitchStatement::Convert(const Context& context, in Convert()
223 return SwitchStatement::Make(context, line, isStatic, std::move(value), std::move(cases), in Convert()
227 std::unique_ptr<Statement> SwitchStatement::Make(const Context& context, in Make()
295 return std::make_unique<SwitchStatement>(line, isStatic, std::move(value), std::move(cases), in Make()
DSkSLSwitchStatement.h25 class SwitchStatement final : public Statement {
29 SwitchStatement(int line, bool isStatic, std::unique_ptr<Expression> value, in SwitchStatement() function
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_switch_stmt_test.cc32 ASSERT_TRUE(e->Is<ast::SwitchStatement>()); in TEST_F()
45 ASSERT_TRUE(e->Is<ast::SwitchStatement>()); in TEST_F()
60 ASSERT_TRUE(e->Is<ast::SwitchStatement>()); in TEST_F()
/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver.h54 class SwitchStatement; variable
69 class SwitchStatement; variable
223 sem::SwitchStatement* SwitchStatement(const ast::SwitchStatement* s);
273 bool ValidateSwitch(const ast::SwitchStatement* s);
Dcompound_statement_test.cc330 EXPECT_TRUE(s->Is<sem::SwitchStatement>()); in TEST_F()
339 EXPECT_TRUE(s->Is<sem::SwitchStatement>()); in TEST_F()
350 s->FindFirstParent<sem::SwitchStatement>()); in TEST_F()
361 s->FindFirstParent<sem::SwitchStatement>()); in TEST_F()
372 s->FindFirstParent<sem::SwitchStatement>()); in TEST_F()
/third_party/skia/src/sksl/analysis/
DSkSLCanExitWithoutReturningValue.cpp93 const SwitchStatement& s = stmt.as<SwitchStatement>(); in visitStatement()
/third_party/skia/third_party/externals/tint/src/writer/hlsl/
Dgenerator_impl.h266 bool EmitCase(const ast::SwitchStatement* s, size_t case_idx);
362 bool EmitSwitch(const ast::SwitchStatement* stmt);
366 bool EmitDefaultOnlySwitch(const ast::SwitchStatement* stmt);
/third_party/skia/src/sksl/codegen/
DSkSLGLSLCodeGenerator.h40 class SwitchStatement; variable
162 virtual void writeSwitchStatement(const SwitchStatement& s);
DSkSLMetalCodeGenerator.h43 class SwitchStatement; variable
247 void writeSwitchStatement(const SwitchStatement& s);
/third_party/typescript/src/services/
DdocumentHighlights.ts186 case SyntaxKind.SwitchStatement:
304 case SyntaxKind.SwitchStatement:
305 return getSwitchCaseDefaultOccurrences(owner as SwitchStatement);
313 function getSwitchCaseDefaultOccurrences(switchStatement: SwitchStatement): Node[] {
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/
DparserRealSource14.ts212 … (<TypeScript.SwitchStatement>this.asts[this.top - 1]).caseList == this.asts[this.top - 0];
303 … (<TypeScript.SwitchStatement>this.asts[this.top - 2]).caseList == this.asts[this.top - 1];
310 … (<TypeScript.SwitchStatement>this.asts[this.top - 2]).caseList == this.asts[this.top - 1] &&
311 … (<TypeScript.SwitchStatement>this.asts[this.top - 2]).defaultCase == this.asts[this.top - 0];
/third_party/node/deps/v8/src/ast/
Dsource-range-ast-visitor.h37 void VisitSwitchStatement(SwitchStatement* stmt);
/third_party/skia/third_party/externals/tint/src/writer/msl/
Dgenerator_impl_switch_test.cc41 auto* s = create<ast::SwitchStatement>(Expr(cond), body); in TEST_F()
/third_party/skia/third_party/externals/tint/src/writer/glsl/
Dgenerator_impl_switch_test.cc42 auto* s = create<ast::SwitchStatement>(cond, body); in TEST_F()
/third_party/skia/third_party/externals/tint/src/writer/wgsl/
Dgenerator_impl_switch_test.cc42 auto* s = create<ast::SwitchStatement>(cond, body); in TEST_F()
Dgenerator_impl.h165 bool EmitSwitch(const ast::SwitchStatement* stmt);
/third_party/skia/third_party/externals/tint/docs/
Dcompound_statements.md106 sem::SwitchStatement {
/third_party/typescript/tests/baselines/reference/
DparserRealSource11.symbols5921 export class SwitchStatement extends Statement {
5922 >SwitchStatement : Symbol(SwitchStatement, Decl(parserRealSource11.ts, 1930, 5))
5926 >caseList : Symbol(SwitchStatement.caseList, Decl(parserRealSource11.ts, 1932, 52))
5930 >defaultCase : Symbol(SwitchStatement.defaultCase, Decl(parserRealSource11.ts, 1933, 33))
5934 >statement : Symbol(SwitchStatement.statement, Decl(parserRealSource11.ts, 1934, 49))
5939 >val : Symbol(SwitchStatement.val, Decl(parserRealSource11.ts, 1937, 21))
5947 >isCompoundStatement : Symbol(SwitchStatement.isCompoundStatement, Decl(parserRealSource11.ts, 1939…
5950 >emit : Symbol(SwitchStatement.emit, Decl(parserRealSource11.ts, 1941, 53))
5959 >this : Symbol(SwitchStatement, Decl(parserRealSource11.ts, 1930, 5))
5963 >this : Symbol(SwitchStatement, Decl(parserRealSource11.ts, 1930, 5))
[all …]
/third_party/skia/src/sksl/
DSkSLInliner.cpp564 const SwitchStatement& ss = statement.as<SwitchStatement>(); in inlineStatement()
572 return SwitchStatement::Make(*fContext, line, ss.isStatic(), expr(ss.value()), in inlineStatement()
904 SwitchStatement& switchStmt = (*stmt)->as<SwitchStatement>(); in visitStatement()

12345