Qt 4.8
qt-4.8.6
src
declarative
qml
parser
qdeclarativejsastfwd_p.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4
** Contact: http://www.qt-project.org/legal
5
**
6
** This file is part of the QtDeclarative module of the Qt Toolkit.
7
**
8
** $QT_BEGIN_LICENSE:LGPL$
9
** Commercial License Usage
10
** Licensees holding valid commercial Qt licenses may use this file in
11
** accordance with the commercial license agreement provided with the
12
** Software or, alternatively, in accordance with the terms contained in
13
** a written agreement between you and Digia. For licensing terms and
14
** conditions see http://qt.digia.com/licensing. For further information
15
** use the contact form at http://qt.digia.com/contact-us.
16
**
17
** GNU Lesser General Public License Usage
18
** Alternatively, this file may be used under the terms of the GNU Lesser
19
** General Public License version 2.1 as published by the Free Software
20
** Foundation and appearing in the file LICENSE.LGPL included in the
21
** packaging of this file. Please review the following information to
22
** ensure the GNU Lesser General Public License version 2.1 requirements
23
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24
**
25
** In addition, as a special exception, Digia gives you certain additional
26
** rights. These rights are described in the Digia Qt LGPL Exception
27
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28
**
29
** GNU General Public License Usage
30
** Alternatively, this file may be used under the terms of the GNU
31
** General Public License version 3.0 as published by the Free Software
32
** Foundation and appearing in the file LICENSE.GPL included in the
33
** packaging of this file. Please review the following information to
34
** ensure the GNU General Public License version 3.0 requirements will be
35
** met: http://www.gnu.org/copyleft/gpl.html.
36
**
37
**
38
** $QT_END_LICENSE$
39
**
40
****************************************************************************/
41
42
#ifndef QDECLARATIVEJSAST_FWD_P_H
43
#define QDECLARATIVEJSAST_FWD_P_H
44
45
#include "private/qdeclarativejsglobal_p.h"
46
47
#include <QtCore/qglobal.h>
48
49
//
50
// W A R N I N G
51
// -------------
52
//
53
// This file is not part of the Qt API. It exists purely as an
54
// implementation detail. This header file may change from version to
55
// version without notice, or even be removed.
56
//
57
// We mean it.
58
//
59
60
QT_QML_BEGIN_NAMESPACE
61
62
namespace
QDeclarativeJS
{
namespace
AST {
63
64
class
SourceLocation
65
{
66
public
:
67
SourceLocation
(
quint32
offset
= 0,
quint32
length
= 0,
quint32
line = 0,
quint32
column = 0)
68
:
offset
(
offset
),
length
(
length
),
69
startLine
(line),
startColumn
(column)
70
{ }
71
72
bool
isValid
()
const
{
return
length
!= 0; }
73
74
quint32
begin
()
const
{
return
offset
; }
75
quint32
end
()
const
{
return
offset
+
length
; }
76
77
// attributes
78
// ### encode
79
quint32
offset
;
80
quint32
length
;
81
quint32
startLine
;
82
quint32
startColumn
;
83
};
84
85
class
Visitor
;
86
class
Node
;
87
class
ExpressionNode
;
88
class
Statement
;
89
class
ThisExpression
;
90
class
IdentifierExpression
;
91
class
NullExpression
;
92
class
TrueLiteral
;
93
class
FalseLiteral
;
94
class
NumericLiteral
;
95
class
StringLiteral
;
96
class
RegExpLiteral
;
97
class
ArrayLiteral
;
98
class
ObjectLiteral
;
99
class
ElementList
;
100
class
Elision
;
101
class
PropertyNameAndValueList
;
102
class
PropertyName
;
103
class
IdentifierPropertyName
;
104
class
StringLiteralPropertyName
;
105
class
NumericLiteralPropertyName
;
106
class
ArrayMemberExpression
;
107
class
FieldMemberExpression
;
108
class
NewMemberExpression
;
109
class
NewExpression
;
110
class
CallExpression
;
111
class
ArgumentList
;
112
class
PostIncrementExpression
;
113
class
PostDecrementExpression
;
114
class
DeleteExpression
;
115
class
VoidExpression
;
116
class
TypeOfExpression
;
117
class
PreIncrementExpression
;
118
class
PreDecrementExpression
;
119
class
UnaryPlusExpression
;
120
class
UnaryMinusExpression
;
121
class
TildeExpression
;
122
class
NotExpression
;
123
class
BinaryExpression
;
124
class
ConditionalExpression
;
125
class
Expression
;
// ### rename
126
class
Block
;
127
class
StatementList
;
128
class
VariableStatement
;
129
class
VariableDeclarationList
;
130
class
VariableDeclaration
;
131
class
EmptyStatement
;
132
class
ExpressionStatement
;
133
class
IfStatement
;
134
class
DoWhileStatement
;
135
class
WhileStatement
;
136
class
ForStatement
;
137
class
LocalForStatement
;
138
class
ForEachStatement
;
139
class
LocalForEachStatement
;
140
class
ContinueStatement
;
141
class
BreakStatement
;
142
class
ReturnStatement
;
143
class
WithStatement
;
144
class
SwitchStatement
;
145
class
CaseBlock
;
146
class
CaseClauses
;
147
class
CaseClause
;
148
class
DefaultClause
;
149
class
LabelledStatement
;
150
class
ThrowStatement
;
151
class
TryStatement
;
152
class
Catch
;
153
class
Finally
;
154
class
FunctionDeclaration
;
155
class
FunctionExpression
;
156
class
FormalParameterList
;
157
class
FunctionBody
;
158
class
Program
;
159
class
SourceElements
;
160
class
SourceElement
;
161
class
FunctionSourceElement
;
162
class
StatementSourceElement
;
163
class
DebuggerStatement
;
164
class
NestedExpression
;
165
166
// ui elements
167
class
UiProgram
;
168
class
UiImportList
;
169
class
UiImport
;
170
class
UiPublicMember
;
171
class
UiObjectDefinition
;
172
class
UiObjectInitializer
;
173
class
UiObjectBinding
;
174
class
UiScriptBinding
;
175
class
UiSourceElement
;
176
class
UiArrayBinding
;
177
class
UiObjectMember
;
178
class
UiObjectMemberList
;
179
class
UiArrayMemberList
;
180
class
UiQualifiedId
;
181
class
UiFormalList
;
182
class
UiFormal
;
183
class
UiSignature
;
184
185
} }
// namespace AST
186
187
QT_QML_END_NAMESPACE
188
189
#endif
QDeclarativeJS::AST::CaseClauses
Definition:
qdeclarativejsast_p.h:1705
QDeclarativeJS::AST::UiArrayMemberList
Definition:
qdeclarativejsast_p.h:2255
QDeclarativeJS::AST::TrueLiteral
Definition:
qdeclarativejsast_p.h:436
QDeclarativeJS::AST::SourceLocation::startColumn
quint32 startColumn
Definition:
qdeclarativejsastfwd_p.h:82
QDeclarativeJS::AST::WhileStatement
Definition:
qdeclarativejsast_p.h:1429
QDeclarativeJS::AST::UiImportList
Definition:
qdeclarativejsast_p.h:2168
QDeclarativeJS::AST::ExpressionStatement
Definition:
qdeclarativejsast_p.h:1349
QDeclarativeJS::AST::Finally
Definition:
qdeclarativejsast_p.h:1837
QDeclarativeJS::AST::FormalParameterList
Definition:
qdeclarativejsast_p.h:1933
QDeclarativeJS::AST::SwitchStatement
Definition:
qdeclarativejsast_p.h:1680
QDeclarativeJS::AST::PreDecrementExpression
Definition:
qdeclarativejsast_p.h:1021
QDeclarativeJS::AST::UiImport
Definition:
qdeclarativejsast_p.h:2135
QDeclarativeJS::AST::UiPublicMember
Definition:
qdeclarativejsast_p.h:2338
QDeclarativeJS::AST::BreakStatement
Definition:
qdeclarativejsast_p.h:1591
QDeclarativeJS::AST::ForStatement
Definition:
qdeclarativejsast_p.h:1454
QDeclarativeJS::AST::PropertyNameAndValueList
Definition:
qdeclarativejsast_p.h:658
QDeclarativeJS::AST::VariableDeclarationList
Definition:
qdeclarativejsast_p.h:1293
QDeclarativeJS::AST::SourceLocation::offset
quint32 offset
Definition:
qdeclarativejsastfwd_p.h:79
QDeclarativeJS::AST::ObjectLiteral
Definition:
qdeclarativejsast_p.h:571
QDeclarativeJS::AST::VariableDeclaration
Definition:
qdeclarativejsast_p.h:1275
QDeclarativeJS::AST::CallExpression
Definition:
qdeclarativejsast_p.h:839
QDeclarativeJS::AST::ForEachStatement
Definition:
qdeclarativejsast_p.h:1513
QDeclarativeJS::AST::SourceElement
Definition:
qdeclarativejsast_p.h:2027
QDeclarativeJS::AST::SourceLocation
Definition:
qdeclarativejsastfwd_p.h:64
QDeclarativeJS::AST::VariableStatement
Definition:
qdeclarativejsast_p.h:1252
QDeclarativeJS::AST::StatementSourceElement
Definition:
qdeclarativejsast_p.h:2051
QDeclarativeJS::AST::StatementList
Definition:
qdeclarativejsast_p.h:1221
QDeclarativeJS::AST::FieldMemberExpression
Definition:
qdeclarativejsast_p.h:769
QDeclarativeJS::AST::PostIncrementExpression
Definition:
qdeclarativejsast_p.h:895
QDeclarativeJS::AST::WithStatement
Definition:
qdeclarativejsast_p.h:1636
QDeclarativeJS::AST::StringLiteralPropertyName
Definition:
qdeclarativejsast_p.h:717
QDeclarativeJS::AST::RegExpLiteral
Definition:
qdeclarativejsast_p.h:516
QDeclarativeJS::AST::FalseLiteral
Definition:
qdeclarativejsast_p.h:455
QDeclarativeJS::AST::SourceLocation::startLine
quint32 startLine
Definition:
qdeclarativejsastfwd_p.h:81
QDeclarativeJS::AST::UiObjectMember
Definition:
qdeclarativejsast_p.h:2215
QDeclarativeJS::AST::SourceLocation::length
quint32 length
Definition:
qdeclarativejsastfwd_p.h:80
QDeclarativeJS::AST::ConditionalExpression
Definition:
qdeclarativejsast_p.h:1152
QDeclarativeJS::AST::FunctionBody
Definition:
qdeclarativejsast_p.h:1966
QDeclarativeJS::AST::ExpressionNode
Definition:
qdeclarativejsast_p.h:249
QDeclarativeJS::AST::UiObjectMemberList
Definition:
qdeclarativejsast_p.h:2224
QDeclarativeJS
Definition:
qdeclarativejsast.cpp:48
QDeclarativeJS::AST::Statement
Definition:
qdeclarativejsast_p.h:260
QDeclarativeJS::AST::IdentifierPropertyName
Definition:
qdeclarativejsast_p.h:703
QDeclarativeJS::AST::SourceLocation::isValid
bool isValid() const
Definition:
qdeclarativejsastfwd_p.h:72
QDeclarativeJS::AST::ArrayLiteral
Definition:
qdeclarativejsast_p.h:538
QDeclarativeJS::AST::CaseClause
Definition:
qdeclarativejsast_p.h:1736
QDeclarativeJS::AST::NestedExpression
Definition:
qdeclarativejsast_p.h:354
QT_QML_END_NAMESPACE
#define QT_QML_END_NAMESPACE
Definition:
qdeclarativejsglobal_p.h:60
QDeclarativeJS::AST::NewMemberExpression
Definition:
qdeclarativejsast_p.h:793
QDeclarativeJS::AST::UiQualifiedId
Definition:
qdeclarativejsast_p.h:2103
QDeclarativeJS::AST::UiSourceElement
Definition:
qdeclarativejsast_p.h:2417
QDeclarativeJS::AST::TypeOfExpression
Definition:
qdeclarativejsast_p.h:979
QT_QML_BEGIN_NAMESPACE
#define QT_QML_BEGIN_NAMESPACE
Definition:
qdeclarativejsglobal_p.h:59
QDeclarativeJS::AST::FunctionExpression
Definition:
qdeclarativejsast_p.h:1892
QDeclarativeJS::AST::ThisExpression
Definition:
qdeclarativejsast_p.h:377
QDeclarativeJS::AST::DefaultClause
Definition:
qdeclarativejsast_p.h:1754
QDeclarativeJS::AST::UiFormalList
Definition:
qdeclarativejsast_p.h:296
QDeclarativeJS::AST::NewExpression
Definition:
qdeclarativejsast_p.h:818
QDeclarativeJS::AST::VoidExpression
Definition:
qdeclarativejsast_p.h:958
QDeclarativeJS::AST::PreIncrementExpression
Definition:
qdeclarativejsast_p.h:1000
QDeclarativeJS::AST::SourceLocation::SourceLocation
SourceLocation(quint32 offset=0, quint32 length=0, quint32 line=0, quint32 column=0)
Definition:
qdeclarativejsastfwd_p.h:67
QDeclarativeJS::AST::DebuggerStatement
Definition:
qdeclarativejsast_p.h:2066
QDeclarativeJS::AST::SourceLocation::begin
quint32 begin() const
Definition:
qdeclarativejsastfwd_p.h:74
QDeclarativeJS::AST::Node
Definition:
qdeclarativejsast_p.h:122
QDeclarativeJS::AST::ThrowStatement
Definition:
qdeclarativejsast_p.h:1795
QDeclarativeJS::AST::BinaryExpression
Definition:
qdeclarativejsast_p.h:1126
QDeclarativeJS::AST::UiFormal
Definition:
qdeclarativejsast_p.h:271
QDeclarativeJS::AST::CaseBlock
Definition:
qdeclarativejsast_p.h:1661
QDeclarativeJS::AST::LocalForEachStatement
Definition:
qdeclarativejsast_p.h:1540
QDeclarativeJS::AST::UiObjectInitializer
Definition:
qdeclarativejsast_p.h:2287
QDeclarativeJS::AST::Catch
Definition:
qdeclarativejsast_p.h:1817
QDeclarativeJS::AST::UiObjectDefinition
Definition:
qdeclarativejsast_p.h:2394
QDeclarativeJS::AST::TildeExpression
Definition:
qdeclarativejsast_p.h:1084
QDeclarativeJS::AST::EmptyStatement
Definition:
qdeclarativejsast_p.h:1330
QDeclarativeJS::AST::UnaryMinusExpression
Definition:
qdeclarativejsast_p.h:1063
QDeclarativeJS::AST::UiSignature
Definition:
qdeclarativejsast_p.h:331
QDeclarativeJS::AST::SourceLocation::end
quint32 end() const
Definition:
qdeclarativejsastfwd_p.h:75
QDeclarativeJS::AST::NotExpression
Definition:
qdeclarativejsast_p.h:1105
QDeclarativeJS::AST::FunctionDeclaration
Definition:
qdeclarativejsast_p.h:1921
QDeclarativeJS::AST::SourceElements
Definition:
qdeclarativejsast_p.h:1996
QDeclarativeJS::AST::IfStatement
Definition:
qdeclarativejsast_p.h:1370
QDeclarativeJS::AST::UiObjectBinding
Definition:
qdeclarativejsast_p.h:2453
QDeclarativeJS::AST::PostDecrementExpression
Definition:
qdeclarativejsast_p.h:916
QDeclarativeJS::AST::ContinueStatement
Definition:
qdeclarativejsast_p.h:1568
QDeclarativeJS::AST::DoWhileStatement
Definition:
qdeclarativejsast_p.h:1402
QDeclarativeJS::AST::Expression
Definition:
qdeclarativejsast_p.h:1177
quint32
unsigned int quint32
Definition:
qglobal.h:938
QDeclarativeJS::AST::ElementList
Definition:
qdeclarativejsast_p.h:596
QDeclarativeJS::AST::UiProgram
Definition:
qdeclarativejsast_p.h:2087
QDeclarativeJS::AST::LocalForStatement
Definition:
qdeclarativejsast_p.h:1483
QDeclarativeJS::AST::StringLiteral
Definition:
qdeclarativejsast_p.h:495
QDeclarativeJS::AST::UiScriptBinding
Definition:
qdeclarativejsast_p.h:2488
QDeclarativeJS::AST::ArgumentList
Definition:
qdeclarativejsast_p.h:863
QDeclarativeJS::AST::UnaryPlusExpression
Definition:
qdeclarativejsast_p.h:1042
QDeclarativeJS::AST::Program
Definition:
qdeclarativejsast_p.h:1981
QDeclarativeJS::AST::LabelledStatement
Definition:
qdeclarativejsast_p.h:1771
QDeclarativeJS::AST::UiArrayBinding
Definition:
qdeclarativejsast_p.h:2513
QDeclarativeJS::AST::NumericLiteral
Definition:
qdeclarativejsast_p.h:474
QDeclarativeJS::AST::Elision
Definition:
qdeclarativejsast_p.h:629
QDeclarativeJS::AST::TryStatement
Definition:
qdeclarativejsast_p.h:1853
QDeclarativeJS::AST::NullExpression
Definition:
qdeclarativejsast_p.h:417
QDeclarativeJS::AST::ArrayMemberExpression
Definition:
qdeclarativejsast_p.h:745
QDeclarativeJS::AST::IdentifierExpression
Definition:
qdeclarativejsast_p.h:396
QDeclarativeJS::AST::FunctionSourceElement
Definition:
qdeclarativejsast_p.h:2036
QDeclarativeJS::AST::ReturnStatement
Definition:
qdeclarativejsast_p.h:1614
QDeclarativeJS::AST::Visitor
Definition:
qdeclarativejsastvisitor_p.h:63
QDeclarativeJS::AST::DeleteExpression
Definition:
qdeclarativejsast_p.h:937
QDeclarativeJS::AST::Block
Definition:
qdeclarativejsast_p.h:1199
QDeclarativeJS::AST::PropertyName
Definition:
qdeclarativejsast_p.h:692
QDeclarativeJS::AST::NumericLiteralPropertyName
Definition:
qdeclarativejsast_p.h:731
Qt 4.8 Source Code Browser