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

#include <qscriptast_p.h>

Inheritance diagram for QScript::AST::CaseClauses:
QScript::AST::Node

Public Functions

virtual void accept0 (Visitor *visitor)
 
 CaseClauses (CaseClause *c)
 
 CaseClauses (CaseClauses *previous, CaseClause *c)
 
CaseClausesfinish ()
 
virtual ~CaseClauses ()
 
- Public Functions inherited from QScript::AST::Node
void accept (Visitor *visitor)
 
virtual BinaryExpressionbinaryExpressionCast ()
 
virtual ExpressionNodeexpressionCast ()
 
 Node ()
 
virtual StatementstatementCast ()
 
virtual ~Node ()
 

Public Variables

CaseClauseclause
 
CaseClausesnext
 
- 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 1157 of file qscriptast_p.h.

Constructors and Destructors

◆ CaseClauses() [1/2]

QScript::AST::CaseClauses::CaseClauses ( CaseClause c)
inline

Definition at line 1160 of file qscriptast_p.h.

1160  :
1161  clause (c), next (this)
1162  { kind = Kind_CaseClauses; }
unsigned char c[8]
Definition: qnumeric_p.h:62

◆ CaseClauses() [2/2]

QScript::AST::CaseClauses::CaseClauses ( CaseClauses previous,
CaseClause c 
)
inline

Definition at line 1164 of file qscriptast_p.h.

1164  :
1165  clause (c)
1166  {
1168  next = previous->next;
1169  previous->next = this;
1170  }
unsigned char c[8]
Definition: qnumeric_p.h:62

◆ ~CaseClauses()

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

Definition at line 1172 of file qscriptast_p.h.

1172 {}

Functions

◆ accept0()

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

Implements QScript::AST::Node.

Definition at line 600 of file qscriptast.cpp.

601 {
602  if (visitor->visit(this)) {
603  CaseClauses *it = this;
604  do {
605  acceptChild(it->clause, visitor);
606  it = it->next;
607  } while (it);
608  }
609 
610  visitor->endVisit(this);
611 }
#define it(className, varName)
static void acceptChild(Node *node, Visitor *visitor)
Definition: qscriptast_p.h:193
CaseClauses(CaseClause *c)

◆ finish()

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

Definition at line 1176 of file qscriptast_p.h.

Referenced by QScriptParser::parse().

1177  {
1178  CaseClauses *front = next;
1179  next = 0;
1180  return front;
1181  }
CaseClauses(CaseClause *c)

Properties

◆ clause

CaseClause* QScript::AST::CaseClauses::clause

Definition at line 1184 of file qscriptast_p.h.

Referenced by accept0().

◆ next

CaseClauses* QScript::AST::CaseClauses::next

Definition at line 1185 of file qscriptast_p.h.

Referenced by accept0(), and CaseClauses().


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