Qt 4.8
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 
61 
62 namespace QDeclarativeJS { namespace AST {
63 
65 {
66 public:
67  SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0)
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
83 };
84 
85 class Visitor;
86 class Node;
87 class ExpressionNode;
88 class Statement;
89 class ThisExpression;
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;
102 class PropertyName;
108 class NewMemberExpression;
109 class NewExpression;
110 class CallExpression;
111 class ArgumentList;
114 class DeleteExpression;
115 class VoidExpression;
116 class TypeOfExpression;
119 class UnaryPlusExpression;
121 class TildeExpression;
122 class NotExpression;
123 class BinaryExpression;
125 class Expression; // ### rename
126 class Block;
127 class StatementList;
128 class VariableStatement;
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;
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;
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 
188 
189 #endif
#define QT_QML_END_NAMESPACE
#define QT_QML_BEGIN_NAMESPACE
SourceLocation(quint32 offset=0, quint32 length=0, quint32 line=0, quint32 column=0)
unsigned int quint32
Definition: qglobal.h:938