14 std::unique_ptr<Statement> statement) {
20 std::unique_ptr<Statement> statement) {
21 return std::unique_ptr<SwitchCase>(
new SwitchCase(
pos,
true, -1,
26 return fDefault ?
"default: \n" + fStatement->description()
27 :
"case " +
std::to_string(fValue) +
": \n" + fStatement->description();
static std::unique_ptr< SwitchCase > MakeDefault(Position pos, std::unique_ptr< Statement > statement)
std::string description() const override
static std::unique_ptr< SwitchCase > Make(Position pos, SKSL_INT value, std::unique_ptr< Statement > statement)
std::unique_ptr< Statement > & statement()
static SkString to_string(int n)