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

#include <qscriptast_p.h>

Inheritance diagram for QScript::AST::ArgumentList:
QScript::AST::Node

Public Functions

virtual void accept0 (Visitor *visitor)
 
 ArgumentList (ExpressionNode *e)
 
 ArgumentList (ArgumentList *previous, ExpressionNode *e)
 
ArgumentListfinish ()
 
virtual ~ArgumentList ()
 
- Public Functions inherited from QScript::AST::Node
void accept (Visitor *visitor)
 
virtual BinaryExpressionbinaryExpressionCast ()
 
virtual ExpressionNodeexpressionCast ()
 
 Node ()
 
virtual StatementstatementCast ()
 
virtual ~Node ()
 

Public Variables

ExpressionNodeexpression
 
ArgumentListnext
 
- 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 576 of file qscriptast_p.h.

Constructors and Destructors

◆ ArgumentList() [1/2]

QScript::AST::ArgumentList::ArgumentList ( ExpressionNode e)
inline

Definition at line 579 of file qscriptast_p.h.

◆ ArgumentList() [2/2]

QScript::AST::ArgumentList::ArgumentList ( ArgumentList previous,
ExpressionNode e 
)
inline

Definition at line 583 of file qscriptast_p.h.

583  :
584  expression (e)
585  {
587  next = previous->next;
588  previous->next = this;
589  }
ExpressionNode * expression
Definition: qscriptast_p.h:603

◆ ~ArgumentList()

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

Definition at line 591 of file qscriptast_p.h.

591 {}

Functions

◆ accept0()

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

Implements QScript::AST::Node.

Definition at line 254 of file qscriptast.cpp.

255 {
256  if (visitor->visit(this)) {
257  ArgumentList *it = this;
258  do {
259  acceptChild(it->expression, visitor);
260  it = it->next;
261  } while (it);
262  }
263 
264  visitor->endVisit(this);
265 }
#define it(className, varName)
static void acceptChild(Node *node, Visitor *visitor)
Definition: qscriptast_p.h:193
ArgumentList(ExpressionNode *e)
Definition: qscriptast_p.h:579

◆ finish()

ArgumentList* QScript::AST::ArgumentList::finish ( )
inline

Definition at line 595 of file qscriptast_p.h.

Referenced by QScriptParser::parse().

596  {
597  ArgumentList *front = next;
598  next = 0;
599  return front;
600  }
ArgumentList(ExpressionNode *e)
Definition: qscriptast_p.h:579

Properties

◆ expression

ExpressionNode* QScript::AST::ArgumentList::expression

Definition at line 603 of file qscriptast_p.h.

Referenced by accept0().

◆ next

ArgumentList* QScript::AST::ArgumentList::next

Definition at line 604 of file qscriptast_p.h.

Referenced by accept0(), and ArgumentList().


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