Lines Matching defs:stmt
21 static bool is_vardecl_block_initializer(const Statement* stmt) {
22 if (!stmt) {
25 if (!stmt->is<SkSL::Block>()) {
28 const SkSL::Block& b = stmt->as<SkSL::Block>();
40 static bool is_simple_initializer(const Statement* stmt) {
41 return !stmt || stmt->isEmpty() || stmt->is<SkSL::VarDeclaration>() ||
42 stmt->is<SkSL::ExpressionStatement>();
130 // of different size in the same decl-stmt, because the array-size is part of the type. It's
132 // statement with an empty init-stmt. (Note that we can't just do this transformation