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

#include <qdeclarativejsast_p.h>

Inheritance diagram for QDeclarativeJS::AST::UiPublicMember:
QDeclarativeJS::AST::UiObjectMember QDeclarativeJS::AST::Node

Public Types

enum  { Signal, Property }
 
- 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
}
 

Public Functions

virtual void accept0 (Visitor *visitor)
 
virtual SourceLocation firstSourceLocation () const
 
virtual SourceLocation lastSourceLocation () const
 
 UiPublicMember (NameId *memberType, NameId *name)
 
 UiPublicMember (NameId *memberType, NameId *name, ExpressionNode *expression)
 
- Public Functions inherited from QDeclarativeJS::AST::UiObjectMember
virtual UiObjectMemberuiObjectMemberCast ()
 
- Public Functions inherited from QDeclarativeJS::AST::Node
void accept (Visitor *visitor)
 
virtual BinaryExpressionbinaryExpressionCast ()
 
virtual ExpressionNodeexpressionCast ()
 
 Node ()
 
virtual StatementstatementCast ()
 
virtual ~Node ()
 

Public Variables

UiObjectMemberbinding
 
SourceLocation colonToken
 
SourceLocation defaultToken
 
ExpressionNodeexpression
 
SourceLocation identifierToken
 
bool isDefaultMember
 
bool isReadonlyMember
 
NameIdmemberType
 
NameIdname
 
UiParameterListparameters
 
SourceLocation propertyToken
 
SourceLocation readonlyToken
 
SourceLocation semicolonToken
 
enum QDeclarativeJS::AST::UiPublicMember:: { ... }  type
 
NameIdtypeModifier
 
SourceLocation typeModifierToken
 
SourceLocation typeToken
 
- Public Variables inherited from QDeclarativeJS::AST::Node
int kind
 

Additional Inherited Members

- 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 2338 of file qdeclarativejsast_p.h.

Enumerations

◆ anonymous enum

anonymous enum
Enumerator
Signal 
Property 

Definition at line 2375 of file qdeclarativejsast_p.h.

Constructors and Destructors

◆ UiPublicMember() [1/2]

QDeclarativeJS::AST::UiPublicMember::UiPublicMember ( NameId memberType,
NameId name 
)
inline

◆ UiPublicMember() [2/2]

QDeclarativeJS::AST::UiPublicMember::UiPublicMember ( NameId memberType,
NameId name,
ExpressionNode expression 
)
inline

Functions

◆ accept0()

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

Implements QDeclarativeJS::AST::Node.

Definition at line 836 of file qdeclarativejsast.cpp.

837 {
838  if (visitor->visit(this)) {
839  accept(expression, visitor);
840  accept(binding, visitor);
841  }
842 
843  visitor->endVisit(this);
844 }
void accept(Visitor *visitor)

◆ firstSourceLocation()

virtual SourceLocation QDeclarativeJS::AST::UiPublicMember::firstSourceLocation ( ) const
inlinevirtual

Implements QDeclarativeJS::AST::UiObjectMember.

Definition at line 2354 of file qdeclarativejsast_p.h.

2355  {
2356  if (defaultToken.isValid())
2357  return defaultToken;
2358  else if (readonlyToken.isValid())
2359  return readonlyToken;
2360 
2361  return propertyToken;
2362  }

◆ lastSourceLocation()

virtual SourceLocation QDeclarativeJS::AST::UiPublicMember::lastSourceLocation ( ) const
inlinevirtual

Implements QDeclarativeJS::AST::UiObjectMember.

Definition at line 2364 of file qdeclarativejsast_p.h.

2365  {
2366  if (binding)
2367  return binding->lastSourceLocation();
2368 
2369  return semicolonToken;
2370  }
virtual SourceLocation lastSourceLocation() const =0

Properties

◆ binding

UiObjectMember* QDeclarativeJS::AST::UiPublicMember::binding

Definition at line 2380 of file qdeclarativejsast_p.h.

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

◆ colonToken

SourceLocation QDeclarativeJS::AST::UiPublicMember::colonToken

Definition at line 2390 of file qdeclarativejsast_p.h.

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

◆ defaultToken

SourceLocation QDeclarativeJS::AST::UiPublicMember::defaultToken

Definition at line 2384 of file qdeclarativejsast_p.h.

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

◆ expression

ExpressionNode* QDeclarativeJS::AST::UiPublicMember::expression

Definition at line 2379 of file qdeclarativejsast_p.h.

◆ identifierToken

SourceLocation QDeclarativeJS::AST::UiPublicMember::identifierToken

Definition at line 2389 of file qdeclarativejsast_p.h.

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

◆ isDefaultMember

bool QDeclarativeJS::AST::UiPublicMember::isDefaultMember

Definition at line 2381 of file qdeclarativejsast_p.h.

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

◆ isReadonlyMember

bool QDeclarativeJS::AST::UiPublicMember::isReadonlyMember

Definition at line 2382 of file qdeclarativejsast_p.h.

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

◆ memberType

NameId* QDeclarativeJS::AST::UiPublicMember::memberType

Definition at line 2377 of file qdeclarativejsast_p.h.

◆ name

NameId* QDeclarativeJS::AST::UiPublicMember::name

Definition at line 2378 of file qdeclarativejsast_p.h.

◆ parameters

UiParameterList* QDeclarativeJS::AST::UiPublicMember::parameters

Definition at line 2383 of file qdeclarativejsast_p.h.

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

◆ propertyToken

SourceLocation QDeclarativeJS::AST::UiPublicMember::propertyToken

Definition at line 2386 of file qdeclarativejsast_p.h.

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

◆ readonlyToken

SourceLocation QDeclarativeJS::AST::UiPublicMember::readonlyToken

Definition at line 2385 of file qdeclarativejsast_p.h.

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

◆ semicolonToken

SourceLocation QDeclarativeJS::AST::UiPublicMember::semicolonToken

Definition at line 2391 of file qdeclarativejsast_p.h.

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

◆ type

enum { ... } QDeclarativeJS::AST::UiPublicMember::type

◆ typeModifier

NameId* QDeclarativeJS::AST::UiPublicMember::typeModifier

Definition at line 2376 of file qdeclarativejsast_p.h.

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

◆ typeModifierToken

SourceLocation QDeclarativeJS::AST::UiPublicMember::typeModifierToken

Definition at line 2387 of file qdeclarativejsast_p.h.

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

◆ typeToken

SourceLocation QDeclarativeJS::AST::UiPublicMember::typeToken

Definition at line 2388 of file qdeclarativejsast_p.h.

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


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