72 return treated->
typeCheck(context, reqType);
77 return visitor->visit(
this);
#define QT_END_NAMESPACE
This macro expands to.
static const SequenceType::Ptr ZeroOrMoreItems
TreatAs(const Expression::Ptr &operand, const SequenceType::Ptr &reqType)
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
virtual SequenceType::Ptr staticType() const
virtual SequenceType::List expectedOperandTypes() const
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The namespace for the internal API of QtXmlPatterns.
const SequenceType::Ptr m_reqType
static Expression::Ptr applyFunctionConversion(const Expression::Ptr &operand, const SequenceType::Ptr &reqType, const StaticContext::Ptr &context, const ReportContext::ErrorCode code=ReportContext::XPTY0004, const Options=Options(AutomaticallyConvert|CheckFocus))
Builds a pipeline of artificial AST nodes that ensures operand conforms to the type reqType by applyi...
virtual ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const
Expression::Ptr m_operand
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
The QList class is a template class that provides lists.
Base class for expressions that has exactly one operand.