66 result.
append((*it)->type());
131 if(card.allowsEmpty())
136 return makeGenericSequenceType(
signature()->returnType()->itemType(),
151 return visitor->visit(
this);
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
Expression::List m_operands
#define QT_END_NAMESPACE
This macro expands to.
virtual void setSignature(const FunctionSignature::Ptr &sign)
virtual Expression::Properties properties() const
#define it(className, varName)
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the list.
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
bool testFlag(Enum f) const
Returns true if the flag is set, otherwise false.
int count(const T &t) const
Returns the number of occurrences of value in the list.
virtual SequenceType::Ptr staticType() const
static Expression::Ptr create(const Expression *const replacementFor, const StaticContext::Ptr &context)
Creates an EmptySequence that is a replacement for replacementFor.
SequenceType::Ptr returnType() const
bool has(const Property prop) const
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
friend class const_iterator
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static Cardinality oneOrMore()
Arity maximumArguments() const
Checks that its operand evaluates to a supported string collation.
The namespace for the internal API of QtXmlPatterns.
Implements the context item, the dot: ..
virtual FunctionSignature::Ptr signature() const
virtual Cardinality cardinality() const =0
Expression::ID id() const
virtual SequenceType::List expectedOperandTypes() const
T & first()
Returns a reference to the first item in the list.
QExplicitlySharedDataPointer< Expression > Ptr
A smart pointer wrapping mutable Expression instances.
virtual ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const
virtual SequenceType::Ptr staticType() const =0
static const EmptySequenceType::Ptr Empty
FunctionSignature::Ptr m_signature
T & last()
Returns a reference to the last item in the list.
Expression::Properties properties() const
Represents a cardinality, a possible , often represented by occurrence indicators.
The QFlags class provides a type-safe way of storing OR-combinations of enum values.
virtual ItemType::Ptr itemType() const =0
static const KeyPair *const end
void wrapExpressionWith(const SourceLocationReflection *const existingNode, const QExplicitlySharedDataPointer< Expression > &newNode)
Ensures source locations are handled in such a manner that existingNode wraps newNode.
The QList class is a template class that provides lists.
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the list...