77 context->
error(QtXmlPatterns::tr(
"%1 takes at most %n argument(s). " 86 if(arity < s->minimumArguments())
88 context->
error(QtXmlPatterns::tr(
"%1 requires at least %n argument(s). " #define QT_END_NAMESPACE
This macro expands to.
virtual NamePool::Ptr namePool() const =0
virtual Expression::Ptr retrieveExpression(const QXmlName name, const Expression::List &args, const FunctionSignature::Ptr &sign) const =0
int count(const T &t) const
Returns the number of occurrences of value in the list.
virtual Expression::Ptr createFunctionCall(const QXmlName name, const Expression::List &arguments, const StaticContext::Ptr &context, const SourceLocationReflection *const r)
virtual FunctionSignature::Hash functionSignatures() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
FunctionSignature::Hash m_signatures
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
static QString formatFunction(const NamePool::Ptr &np, const FunctionSignature::Ptr &func)
Formats FunctionSignature.
Arity maximumArguments() const
void verifyArity(const FunctionSignature::Ptr &sign, const StaticContext::Ptr &context, const xsInteger arity, const SourceLocationReflection *const r) const
Determines whether arity is a valid number of arguments for the function with signature sign...
The namespace for the internal API of QtXmlPatterns.
virtual FunctionSignature::Ptr retrieveFunctionSignature(const NamePool::Ptr &np, const QXmlName name)=0
QExplicitlySharedDataPointer< Expression > Ptr
A smart pointer wrapping mutable Expression instances.
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
Contains functions used for formatting arguments, such as keywords and paths, in translated strings...
Arity minimumArguments() const
Base class for all instances that represents something at a certain location.