5#ifndef QQMLJSASTVISITOR_P_H
6#define QQMLJSASTVISITOR_P_H
26#define QQmlJSASTUiClassListToVisit
35 X(UiObjectInitializer)
51#define QQmlJSASTQQmlJSClassListToVisit
54 X(IdentifierExpression)
66 X(PatternPropertyList)
71 X(IdentifierPropertyName)
72 X(StringLiteralPropertyName)
73 X(NumericLiteralPropertyName)
74 X(ComputedPropertyName)
75 X(ArrayMemberExpression)
76 X(FieldMemberExpression)
78 X(NewMemberExpression)
82 X(PostIncrementExpression)
83 X(PostDecrementExpression)
87 X(PreIncrementExpression)
88 X(PreDecrementExpression)
89 X(UnaryPlusExpression)
90 X(UnaryMinusExpression)
94 X(ConditionalExpression)
99 X(VariableDeclarationList)
101 X(ExpressionStatement)
122 X(FunctionDeclaration)
123 X(FunctionExpression)
124 X(FormalParameterList)
185 virtual bool visit(name *) = 0
;
186 virtual void endVisit(name *) = 0
;
208 bool visit(name *) override { return true; }
209 void endVisit(name *) override { }
223 bool visit(name *) override { return true; }
224 void endVisit(name *) override { }
229 bool visit(name *) override
234 void endVisit(name *) override { }
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 QQmlJSASTUiClassListToVisit
#define QQmlJSASTQQmlJSClassListToVisit
#define QQmlJSASTClassListToVisit
#define QML_PARSER_EXPORT
bool contains(const QString &name) const
int indexOf(const QString &name, int from=0) const