Lines Matching full:statements
15 std::unique_ptr<Statement> Block::MakeUnscoped(int line, StatementArray statements) { in MakeUnscoped() argument
17 if (statements.empty()) { in MakeUnscoped()
21 if (statements.size() > 1) { in MakeUnscoped()
22 // The statement array contains multiple statements, but some of those might be no-ops. in MakeUnscoped()
26 for (std::unique_ptr<Statement>& stmt : statements) { in MakeUnscoped()
34 return std::make_unique<Block>(line, std::move(statements), in MakeUnscoped()
44 // The statement array contained nothing but empty statements! in MakeUnscoped()
46 // We can just return one of those empty statements. Fall through to... in MakeUnscoped()
49 return std::move(statements.front()); in MakeUnscoped()
53 StatementArray statements, in Make() argument
56 // Nothing to optimize here--eliminating empty statements doesn't actually improve the generated in Make()
58 return std::make_unique<Block>(line, std::move(statements), std::move(symbols), isScope); in Make()