source: trunk/src/declarative/qml/parser/qdeclarativejsastfwd_p.h

Last change on this file was 846, checked in by Dmitry A. Kuminov, 14 years ago

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

File size: 5.1 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4** All rights reserved.
5** Contact: Nokia Corporation (qt-info@nokia.com)
6**
7** This file is part of the QtDeclarative module of the Qt Toolkit.
8**
9** $QT_BEGIN_LICENSE:LGPL$
10** Commercial Usage
11** Licensees holding valid Qt Commercial licenses may use this file in
12** accordance with the Qt Commercial License Agreement provided with the
13** Software or, alternatively, in accordance with the terms contained in
14** a written agreement between you and Nokia.
15**
16** GNU Lesser General Public License Usage
17** Alternatively, this file may be used under the terms of the GNU Lesser
18** General Public License version 2.1 as published by the Free Software
19** Foundation and appearing in the file LICENSE.LGPL included in the
20** packaging of this file. Please review the following information to
21** ensure the GNU Lesser General Public License version 2.1 requirements
22** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
23**
24** In addition, as a special exception, Nokia gives you certain additional
25** rights. These rights are described in the Nokia Qt LGPL Exception
26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
27**
28** GNU General Public License Usage
29** Alternatively, this file may be used under the terms of the GNU
30** General Public License version 3.0 as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL included in the
32** packaging of this file. Please review the following information to
33** ensure the GNU General Public License version 3.0 requirements will be
34** met: http://www.gnu.org/copyleft/gpl.html.
35**
36** If you have questions regarding the use of this file, please contact
37** Nokia at qt-info@nokia.com.
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
60QT_QML_BEGIN_NAMESPACE
61
62namespace QDeclarativeJS { namespace AST {
63
64class SourceLocation
65{
66public:
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
85class Visitor;
86class Node;
87class ExpressionNode;
88class Statement;
89class ThisExpression;
90class IdentifierExpression;
91class NullExpression;
92class TrueLiteral;
93class FalseLiteral;
94class NumericLiteral;
95class StringLiteral;
96class RegExpLiteral;
97class ArrayLiteral;
98class ObjectLiteral;
99class ElementList;
100class Elision;
101class PropertyNameAndValueList;
102class PropertyName;
103class IdentifierPropertyName;
104class StringLiteralPropertyName;
105class NumericLiteralPropertyName;
106class ArrayMemberExpression;
107class FieldMemberExpression;
108class NewMemberExpression;
109class NewExpression;
110class CallExpression;
111class ArgumentList;
112class PostIncrementExpression;
113class PostDecrementExpression;
114class DeleteExpression;
115class VoidExpression;
116class TypeOfExpression;
117class PreIncrementExpression;
118class PreDecrementExpression;
119class UnaryPlusExpression;
120class UnaryMinusExpression;
121class TildeExpression;
122class NotExpression;
123class BinaryExpression;
124class ConditionalExpression;
125class Expression; // ### rename
126class Block;
127class StatementList;
128class VariableStatement;
129class VariableDeclarationList;
130class VariableDeclaration;
131class EmptyStatement;
132class ExpressionStatement;
133class IfStatement;
134class DoWhileStatement;
135class WhileStatement;
136class ForStatement;
137class LocalForStatement;
138class ForEachStatement;
139class LocalForEachStatement;
140class ContinueStatement;
141class BreakStatement;
142class ReturnStatement;
143class WithStatement;
144class SwitchStatement;
145class CaseBlock;
146class CaseClauses;
147class CaseClause;
148class DefaultClause;
149class LabelledStatement;
150class ThrowStatement;
151class TryStatement;
152class Catch;
153class Finally;
154class FunctionDeclaration;
155class FunctionExpression;
156class FormalParameterList;
157class FunctionBody;
158class Program;
159class SourceElements;
160class SourceElement;
161class FunctionSourceElement;
162class StatementSourceElement;
163class DebuggerStatement;
164class NestedExpression;
165
166// ui elements
167class UiProgram;
168class UiImportList;
169class UiImport;
170class UiPublicMember;
171class UiObjectDefinition;
172class UiObjectInitializer;
173class UiObjectBinding;
174class UiScriptBinding;
175class UiSourceElement;
176class UiArrayBinding;
177class UiObjectMember;
178class UiObjectMemberList;
179class UiArrayMemberList;
180class UiQualifiedId;
181class UiFormalList;
182class UiFormal;
183class UiSignature;
184
185} } // namespace AST
186
187QT_QML_END_NAMESPACE
188
189#endif
Note: See TracBrowser for help on using the repository browser.