Bond 0.9
C++ Bond Runtime Library API Documentation
Loading...
Searching...
No Matches
Bond::SwitchLabel Class Reference

#include <bond/compiler/parsenodes.h>

Inheritance diagram for Bond::SwitchLabel:
Bond::ListParseNode Bond::ParseNode

Public Member Functions

 SwitchLabel (const Token *label)
 
 SwitchLabel (const Token *label, Expression *expression)
 
virtual ~SwitchLabel ()
 
virtual void Accept (ParseNodeVisitor &visitor) override
 
virtual void Accept (ParseNodeVisitor &visitor) const override
 
virtual const TokenGetContextToken () const override
 
const TokenGetLabel () const
 
ExpressionGetExpression ()
 
const ExpressionGetExpression () const
 
ResolvedSwitchLabelGetResolvedLabel ()
 
const ResolvedSwitchLabelGetResolvedLabel () const
 
bool IsDefaultLabel () const
 
- Public Member Functions inherited from Bond::ListParseNode
virtual ~ListParseNode ()
 
ListParseNodeGetNextNode ()
 
const ListParseNodeGetNextNode () const
 
void SetNextNode (ListParseNode *next)
 
- Public Member Functions inherited from Bond::ParseNode
virtual ~ParseNode ()
 
virtual void Accept (ParseNodeVisitor &visitor)=0
 
virtual void Accept (ParseNodeVisitor &visitor) const =0
 
virtual const TokenGetContextToken () const =0
 

Additional Inherited Members

- Protected Member Functions inherited from Bond::ListParseNode
 ListParseNode ()
 
- Protected Member Functions inherited from Bond::ParseNode
 ParseNode ()
 

Constructor & Destructor Documentation

◆ SwitchLabel() [1/2]

Bond::SwitchLabel::SwitchLabel ( const Token label)
inlineexplicit

◆ SwitchLabel() [2/2]

Bond::SwitchLabel::SwitchLabel ( const Token label,
Expression expression 
)
inline

◆ ~SwitchLabel()

virtual Bond::SwitchLabel::~SwitchLabel ( )
inlinevirtual

Member Function Documentation

◆ Accept() [1/2]

virtual void Bond::SwitchLabel::Accept ( ParseNodeVisitor visitor) const
inlineoverridevirtual

Implements Bond::ParseNode.

◆ Accept() [2/2]

virtual void Bond::SwitchLabel::Accept ( ParseNodeVisitor visitor)
inlineoverridevirtual

Implements Bond::ParseNode.

◆ GetContextToken()

virtual const Token * Bond::SwitchLabel::GetContextToken ( ) const
inlineoverridevirtual

Implements Bond::ParseNode.

◆ GetExpression() [1/2]

Expression * Bond::SwitchLabel::GetExpression ( )
inline

◆ GetExpression() [2/2]

const Expression * Bond::SwitchLabel::GetExpression ( ) const
inline

◆ GetLabel()

const Token * Bond::SwitchLabel::GetLabel ( ) const
inline

◆ GetResolvedLabel() [1/2]

ResolvedSwitchLabel & Bond::SwitchLabel::GetResolvedLabel ( )
inline

◆ GetResolvedLabel() [2/2]

const ResolvedSwitchLabel & Bond::SwitchLabel::GetResolvedLabel ( ) const
inline

◆ IsDefaultLabel()

bool Bond::SwitchLabel::IsDefaultLabel ( ) const
inline

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