8#ifndef SKSL_RETURNSTATEMENT
9#define SKSL_RETURNSTATEMENT
28 return std::make_unique<ReturnStatement>(
pos, std::move(
expression));
40 fExpression = std::move(expr);
45 return "return " + this->
expression()->description() +
";";
52 std::unique_ptr<Expression> fExpression;
static std::unique_ptr< Statement > Make(Position pos, std::unique_ptr< Expression > expression)
std::string description() const override
void setExpression(std::unique_ptr< Expression > expr)
const std::unique_ptr< Expression > & expression() const
ReturnStatement(Position pos, std::unique_ptr< Expression > expression)
static constexpr Kind kIRNodeKind
std::unique_ptr< Expression > & expression()
Statement(Position pos, Kind kind)