21#include <private/qqmljsmemorypool_p.h>
23#include <QtCore/qtaggedpointer.h>
24#include <QtCore/qversionnumber.h>
36#define QQMLJS_DECLARE_AST_NODE(name)
37 enum { K = Kind_##name };
98template <
typename T1,
typename T2>
101 if (ast && ast->kind == std::remove_pointer_t<T1>::K)
102 return static_cast<T1>(ast);
297 while (current->next)
298 current = current->next;
862 int indexOf(
const QString &name,
int from = 0)
const
864 auto found = std::find_if(constBegin() + from, constEnd(),
865 [name](
const BoundName &it) {
return it.id == name; });
866 if (found == constEnd())
868 return found - constBegin();
878
879
880
881
882
883
friend size_t qHash(const SourceLocation &location, size_t seed=0)
SourceLocation startZeroLengthLocation() const
friend bool operator!=(const SourceLocation &a, const SourceLocation &b)
static quint32 offsetFrom(QStringView text, quint32 line, quint32 column, const SourceLocation &startHint=SourceLocation{})
friend SourceLocation combine(const SourceLocation &l1, const SourceLocation &l2)
static SourceLocation fromQSizeType(qsizetype offset, qsizetype length=0, qsizetype line=0, qsizetype column=0)
SourceLocation(quint32 offset=0, quint32 length=0, quint32 line=0, quint32 column=0)
SourceLocation endZeroLengthLocation(QStringView text) const
friend bool operator==(const SourceLocation &a, const SourceLocation &b)
static std::pair< quint32, quint32 > rowAndColumnFrom(QStringView text, quint32 offset, const SourceLocation &startHint=SourceLocation{})
FunctionExpression * asAnonymousFunctionDefinition(Node *n)
T lastListElement(T head)
ClassExpression * asAnonymousClassDefinition(Node *n)
#define QQMLJS_DECLARE_AST_NODE(name)
#define QML_PARSER_EXPORT
bool contains(const QString &name) const
int indexOf(const QString &name, int from=0) const