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

#include <qdeclarativejsast_p.h>

Inheritance diagram for QDeclarativeJS::AST::FunctionExpression:
QDeclarativeJS::AST::ExpressionNode QDeclarativeJS::AST::Node QDeclarativeJS::AST::FunctionDeclaration

Public Functions

virtual void accept0 (Visitor *visitor)
 
virtual SourceLocation firstSourceLocation () const
 
 FunctionExpression (NameId *n, FormalParameterList *f, FunctionBody *b)
 
virtual SourceLocation lastSourceLocation () const
 
- Public Functions inherited from QDeclarativeJS::AST::ExpressionNode
virtual ExpressionNodeexpressionCast ()
 
 ExpressionNode ()
 
- Public Functions inherited from QDeclarativeJS::AST::Node
void accept (Visitor *visitor)
 
virtual BinaryExpressionbinaryExpressionCast ()
 
 Node ()
 
virtual StatementstatementCast ()
 
virtual UiObjectMemberuiObjectMemberCast ()
 
virtual ~Node ()
 

Public Variables

FunctionBodybody
 
FormalParameterListformals
 
SourceLocation functionToken
 
SourceLocation identifierToken
 
SourceLocation lbraceToken
 
SourceLocation lparenToken
 
NameIdname
 
SourceLocation rbraceToken
 
SourceLocation rparenToken
 
- 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 1892 of file qdeclarativejsast_p.h.

Constructors and Destructors

◆ FunctionExpression()

QDeclarativeJS::AST::FunctionExpression::FunctionExpression ( NameId n,
FormalParameterList f,
FunctionBody b 
)
inline

Functions

◆ accept0()

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

Implements QDeclarativeJS::AST::Node.

Reimplemented in QDeclarativeJS::AST::FunctionDeclaration.

Definition at line 727 of file qdeclarativejsast.cpp.

728 {
729  if (visitor->visit(this)) {
730  accept(formals, visitor);
731  accept(body, visitor);
732  }
733 
734  visitor->endVisit(this);
735 }
void accept(Visitor *visitor)

◆ firstSourceLocation()

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

Implements QDeclarativeJS::AST::ExpressionNode.

Definition at line 1903 of file qdeclarativejsast_p.h.

◆ lastSourceLocation()

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

Implements QDeclarativeJS::AST::ExpressionNode.

Definition at line 1906 of file qdeclarativejsast_p.h.

Properties

◆ body

FunctionBody* QDeclarativeJS::AST::FunctionExpression::body

Definition at line 1912 of file qdeclarativejsast_p.h.

◆ formals

FormalParameterList* QDeclarativeJS::AST::FunctionExpression::formals

Definition at line 1911 of file qdeclarativejsast_p.h.

◆ functionToken

SourceLocation QDeclarativeJS::AST::FunctionExpression::functionToken

Definition at line 1913 of file qdeclarativejsast_p.h.

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

◆ identifierToken

SourceLocation QDeclarativeJS::AST::FunctionExpression::identifierToken

Definition at line 1914 of file qdeclarativejsast_p.h.

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

◆ lbraceToken

SourceLocation QDeclarativeJS::AST::FunctionExpression::lbraceToken

Definition at line 1917 of file qdeclarativejsast_p.h.

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

◆ lparenToken

SourceLocation QDeclarativeJS::AST::FunctionExpression::lparenToken

Definition at line 1915 of file qdeclarativejsast_p.h.

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

◆ name

NameId* QDeclarativeJS::AST::FunctionExpression::name

Definition at line 1910 of file qdeclarativejsast_p.h.

◆ rbraceToken

SourceLocation QDeclarativeJS::AST::FunctionExpression::rbraceToken

Definition at line 1918 of file qdeclarativejsast_p.h.

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

◆ rparenToken

SourceLocation QDeclarativeJS::AST::FunctionExpression::rparenToken

Definition at line 1916 of file qdeclarativejsast_p.h.

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


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