/src/declarative/qml/parser/qdeclarativejsastfwd_p.h

https://bitbucket.org/ultra_iter/qt-vtl · C Header · 189 lines · 121 code · 15 blank · 53 comment · 1 complexity · a558b54b0e4f59320e4d9fb420e597bf MD5 · raw file

  1. /****************************************************************************
  2. **
  3. ** Copyright (C) 2012 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. ** 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.
  17. **
  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.
  21. **
  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.
  29. **
  30. ** Other Usage
  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.
  33. **
  34. **
  35. **
  36. **
  37. **
  38. ** $QT_END_LICENSE$
  39. **
  40. ****************************************************************************/
  41. #ifndef QDECLARATIVEJSAST_FWD_P_H
  42. #define QDECLARATIVEJSAST_FWD_P_H
  43. #include "private/qdeclarativejsglobal_p.h"
  44. #include <QtCore/qglobal.h>
  45. //
  46. // W A R N I N G
  47. // -------------
  48. //
  49. // This file is not part of the Qt API. It exists purely as an
  50. // implementation detail. This header file may change from version to
  51. // version without notice, or even be removed.
  52. //
  53. // We mean it.
  54. //
  55. QT_QML_BEGIN_NAMESPACE
  56. namespace QDeclarativeJS { namespace AST {
  57. class SourceLocation
  58. {
  59. public:
  60. SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0)
  61. : offset(offset), length(length),
  62. startLine(line), startColumn(column)
  63. { }
  64. bool isValid() const { return length != 0; }
  65. quint32 begin() const { return offset; }
  66. quint32 end() const { return offset + length; }
  67. // attributes
  68. // ### encode
  69. quint32 offset;
  70. quint32 length;
  71. quint32 startLine;
  72. quint32 startColumn;
  73. };
  74. class Visitor;
  75. class Node;
  76. class ExpressionNode;
  77. class Statement;
  78. class ThisExpression;
  79. class IdentifierExpression;
  80. class NullExpression;
  81. class TrueLiteral;
  82. class FalseLiteral;
  83. class NumericLiteral;
  84. class StringLiteral;
  85. class RegExpLiteral;
  86. class ArrayLiteral;
  87. class ObjectLiteral;
  88. class ElementList;
  89. class Elision;
  90. class PropertyNameAndValueList;
  91. class PropertyName;
  92. class IdentifierPropertyName;
  93. class StringLiteralPropertyName;
  94. class NumericLiteralPropertyName;
  95. class ArrayMemberExpression;
  96. class FieldMemberExpression;
  97. class NewMemberExpression;
  98. class NewExpression;
  99. class CallExpression;
  100. class ArgumentList;
  101. class PostIncrementExpression;
  102. class PostDecrementExpression;
  103. class DeleteExpression;
  104. class VoidExpression;
  105. class TypeOfExpression;
  106. class PreIncrementExpression;
  107. class PreDecrementExpression;
  108. class UnaryPlusExpression;
  109. class UnaryMinusExpression;
  110. class TildeExpression;
  111. class NotExpression;
  112. class BinaryExpression;
  113. class ConditionalExpression;
  114. class Expression; // ### rename
  115. class Block;
  116. class StatementList;
  117. class VariableStatement;
  118. class VariableDeclarationList;
  119. class VariableDeclaration;
  120. class EmptyStatement;
  121. class ExpressionStatement;
  122. class IfStatement;
  123. class DoWhileStatement;
  124. class WhileStatement;
  125. class ForStatement;
  126. class LocalForStatement;
  127. class ForEachStatement;
  128. class LocalForEachStatement;
  129. class ContinueStatement;
  130. class BreakStatement;
  131. class ReturnStatement;
  132. class WithStatement;
  133. class SwitchStatement;
  134. class CaseBlock;
  135. class CaseClauses;
  136. class CaseClause;
  137. class DefaultClause;
  138. class LabelledStatement;
  139. class ThrowStatement;
  140. class TryStatement;
  141. class Catch;
  142. class Finally;
  143. class FunctionDeclaration;
  144. class FunctionExpression;
  145. class FormalParameterList;
  146. class FunctionBody;
  147. class Program;
  148. class SourceElements;
  149. class SourceElement;
  150. class FunctionSourceElement;
  151. class StatementSourceElement;
  152. class DebuggerStatement;
  153. class NestedExpression;
  154. // ui elements
  155. class UiProgram;
  156. class UiImportList;
  157. class UiImport;
  158. class UiPublicMember;
  159. class UiObjectDefinition;
  160. class UiObjectInitializer;
  161. class UiObjectBinding;
  162. class UiScriptBinding;
  163. class UiSourceElement;
  164. class UiArrayBinding;
  165. class UiObjectMember;
  166. class UiObjectMemberList;
  167. class UiArrayMemberList;
  168. class UiQualifiedId;
  169. class UiFormalList;
  170. class UiFormal;
  171. class UiSignature;
  172. } } // namespace AST
  173. QT_QML_END_NAMESPACE
  174. #endif