v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::IfStatement Class Referencefinal

#include <ast.h>

Inheritance diagram for v8::internal::IfStatement:
Collaboration diagram for v8::internal::IfStatement:

Public Member Functions

bool HasThenStatement () const
 
bool HasElseStatement () const
 
Expressioncondition () const
 
Statementthen_statement () const
 
Statementelse_statement () const
 
void set_then_statement (Statement *s)
 
void set_else_statement (Statement *s)
 
- Public Member Functions inherited from v8::internal::AstNode
NodeType node_type () const
 
int position () const
 
IterationStatementAsIterationStatement ()
 
MaterializedLiteralAsMaterializedLiteral ()
 
- Public Member Functions inherited from v8::internal::ZoneObject
void * operator new (size_t, Zone *)=delete
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)=delete
 

Private Member Functions

 IfStatement (Expression *condition, Statement *then_statement, Statement *else_statement, int pos)
 

Private Attributes

friend Zone
 
Expressioncondition_
 
Statementthen_statement_
 
Statementelse_statement_
 

Friends

class AstNodeFactory
 

Additional Inherited Members

- Public Types inherited from v8::internal::AstNode
enum  NodeType : uint8_t
 
- Protected Types inherited from v8::internal::AstNode
template<class T , int size>
using NextBitField = NodeTypeField::Next<T, size>
 
- Protected Member Functions inherited from v8::internal::Statement
 Statement (int position, NodeType type)
 
- Protected Member Functions inherited from v8::internal::AstNode
 AstNode (int position, NodeType type)
 
- Protected Attributes inherited from v8::internal::AstNode
uint32_t bit_field_
 

Detailed Description

Definition at line 757 of file ast.h.

Constructor & Destructor Documentation

◆ IfStatement()

v8::internal::IfStatement::IfStatement ( Expression * condition,
Statement * then_statement,
Statement * else_statement,
int pos )
inlineprivate

Definition at line 773 of file ast.h.

Member Function Documentation

◆ condition()

Expression * v8::internal::IfStatement::condition ( ) const
inline

Definition at line 762 of file ast.h.

◆ else_statement()

Statement * v8::internal::IfStatement::else_statement ( ) const
inline

Definition at line 764 of file ast.h.

◆ HasElseStatement()

bool v8::internal::IfStatement::HasElseStatement ( ) const
inline

Definition at line 760 of file ast.h.

◆ HasThenStatement()

bool v8::internal::IfStatement::HasThenStatement ( ) const
inline

Definition at line 759 of file ast.h.

◆ set_else_statement()

void v8::internal::IfStatement::set_else_statement ( Statement * s)
inline

Definition at line 767 of file ast.h.

◆ set_then_statement()

void v8::internal::IfStatement::set_then_statement ( Statement * s)
inline

Definition at line 766 of file ast.h.

◆ then_statement()

Statement * v8::internal::IfStatement::then_statement ( ) const
inline

Definition at line 763 of file ast.h.

Friends And Related Symbol Documentation

◆ AstNodeFactory

friend class AstNodeFactory
friend

Definition at line 770 of file ast.h.

Member Data Documentation

◆ condition_

Expression* v8::internal::IfStatement::condition_
private

Definition at line 780 of file ast.h.

◆ else_statement_

Statement* v8::internal::IfStatement::else_statement_
private

Definition at line 782 of file ast.h.

◆ then_statement_

Statement* v8::internal::IfStatement::then_statement_
private

Definition at line 781 of file ast.h.

◆ Zone

friend v8::internal::IfStatement::Zone
private

Definition at line 771 of file ast.h.


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