Qt 4.8
Public Functions | Public Variables | List of all members
QScript::AST::LocalForStatement Class Reference

#include <qscriptast_p.h>

Inheritance diagram for QScript::AST::LocalForStatement:
QScript::AST::Statement QScript::AST::Node

Public Functions

virtual void accept0 (Visitor *visitor)
 
 LocalForStatement (VariableDeclarationList *vlist, ExpressionNode *c, ExpressionNode *e, Statement *stmt)
 
virtual ~LocalForStatement ()
 
- Public Functions inherited from QScript::AST::Statement
 Statement ()
 
virtual StatementstatementCast ()
 
virtual ~Statement ()
 
- Public Functions inherited from QScript::AST::Node
void accept (Visitor *visitor)
 
virtual BinaryExpressionbinaryExpressionCast ()
 
virtual ExpressionNodeexpressionCast ()
 
 Node ()
 
virtual ~Node ()
 

Public Variables

ExpressionNodecondition
 
VariableDeclarationListdeclarations
 
ExpressionNodeexpression
 
Statementstatement
 
- Public Variables inherited from QScript::AST::Node
int endColumn
 
int endLine
 
Kind kind
 
int startColumn
 
int startLine
 

Additional Inherited Members

- Public Types inherited from QScript::AST::Node
enum  Kind {
  Kind_Node, Kind_ExpressionNode, Kind_Statement, Kind_ThisExpression,
  Kind_IdentifierExpression, Kind_NullExpression, Kind_TrueLiteral, Kind_FalseLiteral,
  Kind_NumericLiteral, Kind_StringLiteral, Kind_RegExpLiteral, Kind_ArrayLiteral,
  Kind_ObjectLiteral, Kind_ElementList, Kind_Elision, Kind_PropertyNameAndValueList,
  Kind_PropertyName, Kind_IdentifierPropertyName, Kind_StringLiteralPropertyName, Kind_NumericLiteralPropertyName,
  Kind_ArrayMemberExpression, Kind_FieldMemberExpression, Kind_NewMemberExpression, Kind_NewExpression,
  Kind_CallExpression, Kind_ArgumentList, Kind_PostIncrementExpression, Kind_PostDecrementExpression,
  Kind_DeleteExpression, Kind_VoidExpression, Kind_TypeOfExpression, Kind_PreIncrementExpression,
  Kind_PreDecrementExpression, Kind_UnaryPlusExpression, Kind_UnaryMinusExpression, Kind_TildeExpression,
  Kind_NotExpression, Kind_BinaryExpression, Kind_ConditionalExpression, Kind_Expression,
  Kind_Block, Kind_StatementList, Kind_VariableStatement, Kind_VariableDeclarationList,
  Kind_VariableDeclaration, Kind_EmptyStatement, Kind_ExpressionStatement, Kind_IfStatement,
  Kind_DoWhileStatement, Kind_WhileStatement, Kind_ForStatement, Kind_LocalForStatement,
  Kind_ForEachStatement, Kind_LocalForEachStatement, Kind_ContinueStatement, Kind_BreakStatement,
  Kind_ReturnStatement, Kind_WithStatement, Kind_SwitchStatement, Kind_CaseBlock,
  Kind_CaseClauses, Kind_CaseClause, Kind_DefaultClause, Kind_LabelledStatement,
  Kind_ThrowStatement, Kind_TryStatement, Kind_Catch, Kind_Finally,
  Kind_FunctionDeclaration, Kind_FunctionExpression, Kind_FormalParameterList, Kind_FunctionBody,
  Kind_Program, Kind_SourceElements, Kind_SourceElement, Kind_FunctionSourceElement,
  Kind_StatementSourceElement, Kind_DebuggerStatement
}
 
- Static Public Functions inherited from QScript::AST::Node
static void acceptChild (Node *node, Visitor *visitor)
 

Detailed Description

Definition at line 1014 of file qscriptast_p.h.

Constructors and Destructors

◆ LocalForStatement()

QScript::AST::LocalForStatement::LocalForStatement ( VariableDeclarationList vlist,
ExpressionNode c,
ExpressionNode e,
Statement stmt 
)
inline

Definition at line 1017 of file qscriptast_p.h.

1017  :
1018  declarations (vlist), condition (c), expression (e), statement (stmt)
unsigned char c[8]
Definition: qnumeric_p.h:62
VariableDeclarationList * declarations

◆ ~LocalForStatement()

virtual QScript::AST::LocalForStatement::~LocalForStatement ( )
inlinevirtual

Definition at line 1021 of file qscriptast_p.h.

1021 {}

Functions

◆ accept0()

void QScript::AST::LocalForStatement::accept0 ( Visitor visitor)
virtual

Implements QScript::AST::Node.

Definition at line 510 of file qscriptast.cpp.

511 {
512  if (visitor->visit(this)) {
513  acceptChild(declarations, visitor);
514  acceptChild(condition, visitor);
515  acceptChild(expression, visitor);
516  acceptChild(statement, visitor);
517  }
518 
519  visitor->endVisit(this);
520 }
static void acceptChild(Node *node, Visitor *visitor)
Definition: qscriptast_p.h:193
VariableDeclarationList * declarations

Properties

◆ condition

ExpressionNode* QScript::AST::LocalForStatement::condition

Definition at line 1027 of file qscriptast_p.h.

◆ declarations

VariableDeclarationList* QScript::AST::LocalForStatement::declarations

Definition at line 1026 of file qscriptast_p.h.

◆ expression

ExpressionNode* QScript::AST::LocalForStatement::expression

Definition at line 1028 of file qscriptast_p.h.

◆ statement

Statement* QScript::AST::LocalForStatement::statement

Definition at line 1029 of file qscriptast_p.h.


The documentation for this class was generated from the following files: