22#include <private/qqmljsdiagnosticmessage_p.h>
23#include <private/qqmljsmemorypool_p.h>
25#include <QtCore/qtaggedpointer.h>
26#include <QtCore/qtyperevision.h>
38#define QQMLJS_DECLARE_AST_NODE(name)
39 enum { K = Kind_##name };
100template <
typename T1,
typename T2>
103 if (ast && ast->kind == std::remove_pointer_t<T1>::K)
104 return static_cast<T1>(ast);
299 while (current->next)
300 current = current->next;
871 int indexOf(
const QString &name,
int from = 0)
const
873 auto found = std::find_if(constBegin() + from, constEnd(),
874 [&name](
const BoundName &it) {
return it.id == name; });
875 if (found == constEnd())
877 return found - constBegin();
887
888
889
890
891
892
friend size_t qHash(const SourceLocation &location, size_t seed=0)
SourceLocation startZeroLengthLocation() const
constexpr SourceLocation(quint32 offset=0, quint32 length=0, quint32 line=0, quint32 column=0)
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 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)
static constexpr SourceLocation s_documentOrigin(0, 0, 1, 1)
Combined button and popup list for selecting options.
#define QQMLJS_DECLARE_AST_NODE(name)
Q_DECLARE_TYPEINFO(QQmlJS::DiagnosticMessage, Q_RELOCATABLE_TYPE)
#define QML_PARSER_EXPORT
bool contains(const QString &name) const
int indexOf(const QString &name, int from=0) const