/** * An expression modified by a unary operator appearing before it, such as '!flag'.
*/ class PrefixExpression final : public Expression { public: inlinestatic constexpr Kind kIRNodeKind = Kind::kPrefix;
// Use PrefixExpression::Make to automatically simplify various prefix expression types.
PrefixExpression(Position pos, Operator op, std::unique_ptr<Expression> operand)
: INHERITED(pos, kIRNodeKind, &operand->type())
, fOperator(op)
, fOperand(std::move(operand)) {}
// Creates an SkSL prefix expression; uses the ErrorReporter to report errors. static std::unique_ptr<Expression> Convert(const Context& context, Position pos, Operator op,
std::unique_ptr<Expression> base);
// Creates an SkSL prefix expression; reports errors via ASSERT. static std::unique_ptr<Expression> Make(const Context& context, Position pos, Operator op,
std::unique_ptr<Expression> base);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.