1 /****************************************************************************
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: http://www.qt-project.org/
7 ** This file is part of the QtDeclarative module of the Qt Toolkit.
9 ** $QT_BEGIN_LICENSE:LGPL$
10 ** GNU Lesser General Public License Usage
11 ** This file may be used under the terms of the GNU Lesser General Public
12 ** License version 2.1 as published by the Free Software Foundation and
13 ** appearing in the file LICENSE.LGPL included in the packaging of this
14 ** file. Please review the following information to ensure the GNU Lesser
15 ** General Public License version 2.1 requirements will be met:
16 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
18 ** In addition, as a special exception, Nokia gives you certain additional
19 ** rights. These rights are described in the Nokia Qt LGPL Exception
20 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
22 ** GNU General Public License Usage
23 ** Alternatively, this file may be used under the terms of the GNU General
24 ** Public License version 3.0 as published by the Free Software Foundation
25 ** and appearing in the file LICENSE.GPL included in the packaging of this
26 ** file. Please review the following information to ensure the GNU General
27 ** Public License version 3.0 requirements will be met:
28 ** http://www.gnu.org/copyleft/gpl.html.
31 ** Alternatively, this file may be used in accordance with the terms and
32 ** conditions contained in a signed written agreement between you and Nokia.
40 ****************************************************************************/
42 #ifndef QDECLARATIVEJSAST_FWD_P_H
43 #define QDECLARATIVEJSAST_FWD_P_H
45 #include "qdeclarativejsglobal_p.h"
47 #include <QtCore/qglobal.h>
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.
60 QT_QML_BEGIN_NAMESPACE
62 namespace QDeclarativeJS { namespace AST {
67 SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0)
68 : offset(offset), length(length),
69 startLine(line), startColumn(column)
72 bool isValid() const { return length != 0; }
74 quint32 begin() const { return offset; }
75 quint32 end() const { return offset + length; }
90 class IdentifierExpression;
101 class PropertyNameAndValueList;
103 class IdentifierPropertyName;
104 class StringLiteralPropertyName;
105 class NumericLiteralPropertyName;
106 class ArrayMemberExpression;
107 class FieldMemberExpression;
108 class NewMemberExpression;
110 class CallExpression;
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;
123 class BinaryExpression;
124 class ConditionalExpression;
125 class Expression; // ### rename
128 class VariableStatement;
129 class VariableDeclarationList;
130 class VariableDeclaration;
131 class EmptyStatement;
132 class ExpressionStatement;
134 class DoWhileStatement;
135 class WhileStatement;
137 class LocalForStatement;
138 class ForEachStatement;
139 class LocalForEachStatement;
140 class ContinueStatement;
141 class BreakStatement;
142 class ReturnStatement;
144 class SwitchStatement;
149 class LabelledStatement;
150 class ThrowStatement;
154 class FunctionDeclaration;
155 class FunctionExpression;
156 class FormalParameterList;
159 class SourceElements;
161 class FunctionSourceElement;
162 class StatementSourceElement;
163 class DebuggerStatement;
164 class NestedExpression;
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;