class Context; class Type; enumclass OperatorPrecedence : uint8_t;
/** * An expression which extracts a value from an array, vector or matrix, as in 'm[2]'.
*/ class IndexExpression final : public Expression { public: inlinestatic constexpr Kind kIRNodeKind = Kind::kIndex;
// Returns a simplified index-expression; reports errors via the ErrorReporter. static std::unique_ptr<Expression> Convert(const Context& context,
Position pos,
std::unique_ptr<Expression> base,
std::unique_ptr<Expression> index);
// Returns a simplified index-expression; reports errors via ASSERT. static std::unique_ptr<Expression> Make(const Context& context,
Position pos,
std::unique_ptr<Expression> base,
std::unique_ptr<Expression> index);
/** * Given a type, returns the type that will result from extracting an array value from it.
*/ staticconst Type& IndexType(const Context& context, const Type& type);
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.