// Create a `switch` statement with an array of case-values and case-statements. // Coerces case values to the proper type and reports an error if cases are duplicated. // Reports errors via the ErrorReporter. static std::unique_ptr<Statement> Convert(const Context& context,
Position pos,
std::unique_ptr<Expression> value,
ExpressionArray caseValues,
StatementArray caseStatements,
std::unique_ptr<SymbolTable> symbolTable);
// Create a `switch` statement with a Block containing only SwitchCases. The SwitchCase block // must already contain non-overlapping, correctly-typed case values. Reports errors via ASSERT. static std::unique_ptr<Statement> Make(const Context& context,
Position pos,
std::unique_ptr<Expression> value,
std::unique_ptr<Statement> caseBlock);
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.