Qt 4.8
Public Functions | Public Variables | List of all members
QDeclarativeJS::AST::PropertyNameAndValueList Class Reference

#include <qdeclarativejsast_p.h>

Inheritance diagram for QDeclarativeJS::AST::PropertyNameAndValueList:
QDeclarativeJS::AST::Node

Public Functions

virtual void accept0 (Visitor *visitor)
 
PropertyNameAndValueListfinish ()
 
 PropertyNameAndValueList (PropertyName *n, ExpressionNode *v)
 
 PropertyNameAndValueList (PropertyNameAndValueList *previous, PropertyName *n, ExpressionNode *v)
 
- Public Functions inherited from QDeclarativeJS::AST::Node
void accept (Visitor *visitor)
 
virtual BinaryExpressionbinaryExpressionCast ()
 
virtual ExpressionNodeexpressionCast ()
 
 Node ()
 
virtual StatementstatementCast ()
 
virtual UiObjectMemberuiObjectMemberCast ()
 
virtual ~Node ()
 

Public Variables

SourceLocation colonToken
 
SourceLocation commaToken
 
PropertyNamename
 
PropertyNameAndValueListnext
 
ExpressionNodevalue
 
- Public Variables inherited from QDeclarativeJS::AST::Node
int kind
 

Additional Inherited Members

- Public Types inherited from QDeclarativeJS::AST::Node
enum  Kind {
  Kind_Undefined, Kind_ArgumentList, Kind_ArrayLiteral, Kind_ArrayMemberExpression,
  Kind_BinaryExpression, Kind_Block, Kind_BreakStatement, Kind_CallExpression,
  Kind_CaseBlock, Kind_CaseClause, Kind_CaseClauses, Kind_Catch,
  Kind_ConditionalExpression, Kind_ContinueStatement, Kind_DebuggerStatement, Kind_DefaultClause,
  Kind_DeleteExpression, Kind_DoWhileStatement, Kind_ElementList, Kind_Elision,
  Kind_EmptyStatement, Kind_Expression, Kind_ExpressionStatement, Kind_FalseLiteral,
  Kind_FieldMemberExpression, Kind_Finally, Kind_ForEachStatement, Kind_ForStatement,
  Kind_FormalParameterList, Kind_FunctionBody, Kind_FunctionDeclaration, Kind_FunctionExpression,
  Kind_FunctionSourceElement, Kind_IdentifierExpression, Kind_IdentifierPropertyName, Kind_IfStatement,
  Kind_LabelledStatement, Kind_LocalForEachStatement, Kind_LocalForStatement, Kind_NewExpression,
  Kind_NewMemberExpression, Kind_NotExpression, Kind_NullExpression, Kind_NumericLiteral,
  Kind_NumericLiteralPropertyName, Kind_ObjectLiteral, Kind_PostDecrementExpression, Kind_PostIncrementExpression,
  Kind_PreDecrementExpression, Kind_PreIncrementExpression, Kind_Program, Kind_PropertyName,
  Kind_PropertyNameAndValueList, Kind_RegExpLiteral, Kind_ReturnStatement, Kind_SourceElement,
  Kind_SourceElements, Kind_StatementList, Kind_StatementSourceElement, Kind_StringLiteral,
  Kind_StringLiteralPropertyName, Kind_SwitchStatement, Kind_ThisExpression, Kind_ThrowStatement,
  Kind_TildeExpression, Kind_TrueLiteral, Kind_TryStatement, Kind_TypeOfExpression,
  Kind_UnaryMinusExpression, Kind_UnaryPlusExpression, Kind_VariableDeclaration, Kind_VariableDeclarationList,
  Kind_VariableStatement, Kind_VoidExpression, Kind_WhileStatement, Kind_WithStatement,
  Kind_NestedExpression, Kind_UiArrayBinding, Kind_UiImport, Kind_UiImportList,
  Kind_UiObjectBinding, Kind_UiObjectDefinition, Kind_UiObjectInitializer, Kind_UiObjectMemberList,
  Kind_UiArrayMemberList, Kind_UiProgram, Kind_UiParameterList, Kind_UiPublicMember,
  Kind_UiQualifiedId, Kind_UiScriptBinding, Kind_UiSourceElement, Kind_UiFormal,
  Kind_UiFormalList, Kind_UiSignature
}
 
- Static Public Functions inherited from QDeclarativeJS::AST::Node
static void accept (Node *node, Visitor *visitor)
 
static void acceptChild (Node *node, Visitor *visitor)
 

Detailed Description

Definition at line 658 of file qdeclarativejsast_p.h.

Constructors and Destructors

◆ PropertyNameAndValueList() [1/2]

QDeclarativeJS::AST::PropertyNameAndValueList::PropertyNameAndValueList ( PropertyName n,
ExpressionNode v 
)
inline

◆ PropertyNameAndValueList() [2/2]

QDeclarativeJS::AST::PropertyNameAndValueList::PropertyNameAndValueList ( PropertyNameAndValueList previous,
PropertyName n,
ExpressionNode v 
)
inline

Definition at line 667 of file qdeclarativejsast_p.h.

667  :
668  name (n), value (v)
669  {
670  kind = K;
671  next = previous->next;
672  previous->next = this;
673  }

Functions

◆ accept0()

void QDeclarativeJS::AST::PropertyNameAndValueList::accept0 ( Visitor visitor)
virtual

Implements QDeclarativeJS::AST::Node.

Definition at line 216 of file qdeclarativejsast.cpp.

217 {
218  if (visitor->visit(this)) {
219  for (PropertyNameAndValueList *it = this; it; it = it->next) {
220  accept(it->name, visitor);
221  accept(it->value, visitor);
222  }
223  }
224 
225  visitor->endVisit(this);
226 }
#define it(className, varName)
void accept(Visitor *visitor)
PropertyNameAndValueList(PropertyName *n, ExpressionNode *v)

◆ finish()

PropertyNameAndValueList* QDeclarativeJS::AST::PropertyNameAndValueList::finish ( )
inline

Definition at line 677 of file qdeclarativejsast_p.h.

Referenced by QDeclarativeJS::Parser::parse().

678  {
680  next = 0;
681  return front;
682  }
PropertyNameAndValueList(PropertyName *n, ExpressionNode *v)

Properties

◆ colonToken

SourceLocation QDeclarativeJS::AST::PropertyNameAndValueList::colonToken

Definition at line 688 of file qdeclarativejsast_p.h.

Referenced by QDeclarativeJS::Parser::parse().

◆ commaToken

SourceLocation QDeclarativeJS::AST::PropertyNameAndValueList::commaToken

Definition at line 689 of file qdeclarativejsast_p.h.

Referenced by QDeclarativeJS::Parser::parse().

◆ name

PropertyName* QDeclarativeJS::AST::PropertyNameAndValueList::name

Definition at line 685 of file qdeclarativejsast_p.h.

◆ next

PropertyNameAndValueList* QDeclarativeJS::AST::PropertyNameAndValueList::next

Definition at line 687 of file qdeclarativejsast_p.h.

Referenced by PropertyNameAndValueList().

◆ value

ExpressionNode* QDeclarativeJS::AST::PropertyNameAndValueList::value

Definition at line 686 of file qdeclarativejsast_p.h.


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