Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmljsastfwd_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:forward-declarations-only
4
5#ifndef QQMLJSAST_FWD_P_H
6#define QQMLJSAST_FWD_P_H
7
8#include <private/qqmljssourcelocation_p.h>
9
10#include <QtCore/qglobal.h>
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
24
25namespace QQmlJS { namespace AST {
26
27class BaseVisitor;
28class Visitor;
29class Node;
30class ExpressionNode;
31class Statement;
32class TypeExpression;
33class ThisExpression;
34class IdentifierExpression;
35class NullExpression;
36class TrueLiteral;
37class FalseLiteral;
38class SuperLiteral;
39class NumericLiteral;
40class StringLiteral;
41class TemplateLiteral;
42class RegExpLiteral;
43class Pattern;
44class ArrayPattern;
45class ObjectPattern;
46class PatternElement;
47class PatternElementList;
48class PatternProperty;
49class PatternPropertyList;
50class Elision;
51class PropertyName;
52class IdentifierPropertyName;
53class StringLiteralPropertyName;
54class NumericLiteralPropertyName;
55class ComputedPropertyName;
56class ArrayMemberExpression;
57class FieldMemberExpression;
58class TaggedTemplate;
59class NewMemberExpression;
60class NewExpression;
61class CallExpression;
62class ArgumentList;
63class PostIncrementExpression;
64class PostDecrementExpression;
65class DeleteExpression;
66class VoidExpression;
67class TypeOfExpression;
68class PreIncrementExpression;
69class PreDecrementExpression;
70class UnaryPlusExpression;
71class UnaryMinusExpression;
72class TildeExpression;
73class NotExpression;
74class BinaryExpression;
75class ConditionalExpression;
76class CommaExpression;
77// Don't break other users of the parser
78using Expression = CommaExpression;
79class YieldExpression;
80class Block;
81class LeftHandSideExpression;
82class StatementList;
83class VariableStatement;
84class VariableDeclarationList;
85class EmptyStatement;
86class ExpressionStatement;
87class IfStatement;
88class DoWhileStatement;
89class WhileStatement;
90class ForStatement;
91class ForEachStatement;
92class ContinueStatement;
93class BreakStatement;
94class ReturnStatement;
95class WithStatement;
96class SwitchStatement;
97class CaseBlock;
98class CaseClauses;
99class CaseClause;
100class DefaultClause;
101class LabelledStatement;
102class ThrowStatement;
103class TryStatement;
104class Catch;
105class Finally;
106class FunctionDeclaration;
107class FunctionExpression;
108class FormalParameterList;
109class ExportSpecifier;
110class ExportsList;
111class ExportClause;
112class ExportDeclaration;
113class Program;
114class ImportSpecifier;
115class ImportsList;
116class NamedImports;
117class NameSpaceImport;
118class NamedImport;
119class ImportClause;
120class FromClause;
121class ImportDeclaration;
122class ESModule;
123class DebuggerStatement;
124class NestedExpression;
125class ClassExpression;
126class ClassDeclaration;
127class ClassElementList;
128class Type;
129class TypeAnnotation;
130
131// ui elements
132class UiProgram;
133class UiPragmaValueList;
134class UiPragma;
135class UiImport;
136class UiPublicMember;
137class UiParameterList;
138class UiObjectDefinition;
139class UiInlineComponent;
140class UiObjectInitializer;
141class UiObjectBinding;
142class UiScriptBinding;
143class UiSourceElement;
144class UiArrayBinding;
145class UiObjectMember;
146class UiObjectMemberList;
147class UiArrayMemberList;
148class UiQualifiedId;
149class UiHeaderItemList;
150class UiEnumDeclaration;
151class UiEnumMemberList;
152class UiVersionSpecifier;
153class UiRequired;
154class UiAnnotation;
155class UiAnnotationList;
156
157} // namespace AST
158} // namespace QQmlJS
159
160QT_END_NAMESPACE
161
162#endif
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{})
CommaExpression Expression
FunctionExpression * asAnonymousFunctionDefinition(Node *n)
Definition qqmljsast.cpp:20
T lastListElement(T head)
T1 cast(T2 *ast)
ClassExpression * asAnonymousClassDefinition(Node *n)
Definition qqmljsast.cpp:30
@ InplaceRightShift
Definition qqmljsast_p.h:74
@ InplaceURightShift
Definition qqmljsast_p.h:79
#define QQMLJS_DECLARE_AST_NODE(name)
Definition qqmljsast_p.h:37
#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