Home
last modified time | relevance | path

Searched refs:VariableDeclStatement (Results 1 - 25 of 30) sorted by relevance

12

/third_party/skia/third_party/externals/tint/src/ast/
H A Dvariable_decl_statement.cc19 TINT_INSTANTIATE_TYPEINFO(tint::ast::VariableDeclStatement); variable
24 VariableDeclStatement::VariableDeclStatement(ProgramID pid, in VariableDeclStatement() function in tint::ast::VariableDeclStatement
32 VariableDeclStatement::VariableDeclStatement(VariableDeclStatement&&) = default;
34 VariableDeclStatement::~VariableDeclStatement() = default;
36 const VariableDeclStatement* VariableDeclStatement
[all...]
H A Dvariable_decl_statement.h25 class VariableDeclStatement class
26 : public Castable<VariableDeclStatement, Statement> {
32 VariableDeclStatement(ProgramID program_id,
36 VariableDeclStatement(VariableDeclStatement&&);
37 ~VariableDeclStatement() override;
43 const VariableDeclStatement* Clone(CloneContext* ctx) const override;
H A Dvariable_decl_statement_test.cc29 auto* stmt = create<VariableDeclStatement>(var); in TEST_F()
37 create<VariableDeclStatement>(Source{Source::Location{20, 2}}, var); in TEST_F()
46 auto* stmt = create<VariableDeclStatement>(var); in TEST_F()
47 EXPECT_TRUE(stmt->Is<VariableDeclStatement>()); in TEST_F()
54 b.create<VariableDeclStatement>(nullptr); in TEST_F()
64 b1.create<VariableDeclStatement>( in TEST_F()
H A Dstatement.cc80 if (Is<VariableDeclStatement>()) { in Name()
/third_party/skia/third_party/externals/tint/tools/src/substr/
H A Dsubstr_test.go77 body: `VariableDeclStatement{
111 body: `VariableDeclStatement{
121 VariableDeclStatement{
131 VariableDeclStatement{
141 VariableDeclStatement{
151 VariableDeclStatement{
162 substr: `VariableDeclStatement{
172 VariableDeclStatement{
182 VariableDeclStatement{
192 VariableDeclStatement{
[all...]
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
H A Dparser_impl_variable_stmt_test.cc29 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F()
48 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F()
78 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F()
96 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F()
114 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F()
132 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F()
150 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F()
H A Dparser_impl_for_stmt_test.cc60 ASSERT_TRUE(Is<ast::VariableDeclStatement>(fl->initializer)); in TEST_F()
61 auto* var = fl->initializer->As<ast::VariableDeclStatement>()->variable; in TEST_F()
77 ASSERT_TRUE(Is<ast::VariableDeclStatement>(fl->initializer)); in TEST_F()
78 auto* var = fl->initializer->As<ast::VariableDeclStatement>()->variable; in TEST_F()
93 ASSERT_TRUE(Is<ast::VariableDeclStatement>(fl->initializer)); in TEST_F()
94 auto* var = fl->initializer->As<ast::VariableDeclStatement>()->variable; in TEST_F()
H A Dparser_impl_case_body_test.cc42 EXPECT_TRUE(e->statements[0]->Is<ast::VariableDeclStatement>()); in TEST_F()
H A Dparser_impl_statement_test.cc109 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F()
266 ->Is<ast::VariableDeclStatement>()); in TEST_F()
H A Dparser_impl.h41 class VariableDeclStatement;
521 Maybe<const ast::VariableDeclStatement*> variable_stmt();
/third_party/skia/third_party/externals/tint/fuzzers/tint_ast_fuzzer/mutations/
H A Dreplace_identifier_test.cc55 main_fn_stmts[0]->As<ast::VariableDeclStatement>()->variable; in TEST()
59 main_fn_stmts[2]->As<ast::VariableDeclStatement>()->variable; in TEST()
63 main_fn_stmts[4]->As<ast::VariableDeclStatement>()->variable; in TEST()
201 ->As<ast::VariableDeclStatement>() in TEST()
237 ->As<ast::VariableDeclStatement>() in TEST()
499 ->As<ast::VariableDeclStatement>() in TEST()
620 ->As<ast::VariableDeclStatement>() in TEST()
656 ->As<ast::VariableDeclStatement>() in TEST()
665 ->As<ast::VariableDeclStatement>() in TEST()
/third_party/skia/third_party/externals/tint/src/transform/
H A Dfold_trivial_single_use_lets.cc30 const ast::VariableDeclStatement* AsTrivialLetDecl(const ast::Statement* stmt) { in AsTrivialLetDecl()
31 auto* var_decl = stmt->As<ast::VariableDeclStatement>(); in AsTrivialLetDecl()
H A Dsimplify_pointers.cc164 if (auto* let = node->As<ast::VariableDeclStatement>()) { in Run()
178 std::vector<const ast::VariableDeclStatement*> saved; in Run()
H A Dpromote_initializers_to_const_var.cc70 if (auto* src_var_decl = src_stmt->As<ast::VariableDeclStatement>()) { in Run()
H A Dloop_to_for_loop.cc108 if (auto* var_decl = stmt->As<ast::VariableDeclStatement>()) { in Run()
/third_party/skia/third_party/externals/tint/src/
H A Dprogram_builder.cc123 const ast::VariableDeclStatement* ProgramBuilder::WrapInStatement( in WrapInStatement()
125 return create<ast::VariableDeclStatement>(v); in WrapInStatement()
H A Dprogram_builder.h103 class VariableDeclStatement;
2163 /// Creates a ast::VariableDeclStatement for the input variable
2167 const ast::VariableDeclStatement* Decl(const Source& source, in Decl()
2169 return create<ast::VariableDeclStatement>(source, var); in Decl()
2172 /// Creates a ast::VariableDeclStatement for the input variable
2175 const ast::VariableDeclStatement* Decl(const ast::Variable* var) { in Decl()
2176 return create<ast::VariableDeclStatement>(var); in Decl()
2522 /// Wraps the ast::Variable in a ast::VariableDeclStatement. This is used by
2525 /// @param v the ast::Variable to be wrapped by an ast::VariableDeclStatement
2526 /// @return the ast::VariableDeclStatement tha
[all...]
/third_party/skia/third_party/externals/tint/fuzzers/tint_ast_fuzzer/
H A Dutil.h68 if (const auto* var_node = tint::As<ast::VariableDeclStatement>(stmt)) { in GetAllVarsInScope()
/third_party/skia/third_party/externals/tint/src/resolver/
H A Dresolver.h224 sem::Statement* VariableDeclStatement(const ast::VariableDeclStatement*);
H A Dresolver.cc890 if (auto* v = stmt->As<ast::VariableDeclStatement>()) { in Statement()
891 return VariableDeclStatement(v); in Statement()
2399 sem::Statement* Resolver::VariableDeclStatement(
2400 const ast::VariableDeclStatement* stmt) {
H A Ddependency_graph.cc260 if (auto* v = stmt->As<ast::VariableDeclStatement>()) { in TraverseStatement()
H A Ddependency_graph_test.cc1204 ->As<ast::VariableDeclStatement>() in TEST_P()
1208 ->As<ast::VariableDeclStatement>() in TEST_P()
/third_party/skia/third_party/externals/tint/src/writer/spirv/
H A Dbuilder.h514 bool GenerateVariableDeclStatement(const ast::VariableDeclStatement* stmt);
/third_party/skia/third_party/externals/tint/src/writer/wgsl/
H A Dgenerator_impl.cc849 if (auto* v = stmt->As<ast::VariableDeclStatement>()) { in EmitStatement()
/third_party/skia/third_party/externals/tint/src/reader/spirv/
H A Dfunction.cc2512 auto* var_decl_stmt = create<ast::VariableDeclStatement>(Source{}, var); in EmitFunctionVariables()
2864 auto* guard_decl = create<ast::VariableDeclStatement>(Source{}, guard_var); in EmitIfStart()
3412 AddStatement(create<ast::VariableDeclStatement>( in EmitStatementsInBasicBlock()
3428 AddStatement(create<ast::VariableDeclStatement>(Source{}, var)); in EmitStatementsInBasicBlock()
3492 AddStatement(create<ast::VariableDeclStatement>(Source{}, ast_const)); in EmitConstDefinition()

Completed in 29 milliseconds

12