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

#include <bond/compiler/parsenodes.h>

Inheritance diagram for Bond::SwitchSection:
Bond::Symbol Bond::ListParseNode Bond::ParseNode

Public Member Functions

 SwitchSection (SwitchLabel *labelList, ListParseNode *statementList)
 
virtual ~SwitchSection ()
 
virtual void Accept (ParseNodeVisitor &visitor) override
 
virtual void Accept (ParseNodeVisitor &visitor) const override
 
virtual SymbolType GetSymbolType () const override
 
SwitchLabelGetLabelList ()
 
const SwitchLabelGetLabelList () const
 
ListParseNodeGetStatementList ()
 
const ListParseNodeGetStatementList () const
 
size_t GetJumpTargetId () const
 
void SetJumpTargetId (size_t id)
 
- Public Member Functions inherited from Bond::Symbol
virtual ~Symbol ()
 
virtual const TokenGetContextToken () const override
 
virtual SymbolType GetSymbolType () const =0
 
virtual const TokenGetName () const
 
virtual TypeAndValueGetTypeAndValue ()
 
virtual const TypeAndValueGetTypeAndValue () const
 
virtual bool IsResolved () const
 
bool IsTypeDefinition () const
 
SymbolGetParentSymbol ()
 
const SymbolGetParentSymbol () const
 
void SetParentSymbol (Symbol *parent)
 
SymbolFindSymbol (const StringView &name)
 
const SymbolFindSymbol (const StringView &name) const
 
SymbolFindSymbol (const Token *name)
 
const SymbolFindSymbol (const Token *name) const
 
SymbolFindSymbol (const QualifiedIdentifier *identifier)
 
const SymbolFindSymbol (const QualifiedIdentifier *identifier) const
 
void InsertSymbol (Symbol *symbol)
 
bool IsAnonymous () const
 
bool Matches (const StringView &name) 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

- Public Types inherited from Bond::Symbol
enum  SymbolType {
  TYPE_NAMESPACE , TYPE_STRUCT , TYPE_ENUM , TYPE_LOCALSCOPE ,
  TYPE_VALUE , TYPE_FUNCTION
}
 
- Protected Member Functions inherited from Bond::Symbol
 Symbol ()
 
- Protected Member Functions inherited from Bond::ListParseNode
 ListParseNode ()
 
- Protected Member Functions inherited from Bond::ParseNode
 ParseNode ()
 

Constructor & Destructor Documentation

◆ SwitchSection()

Bond::SwitchSection::SwitchSection ( SwitchLabel labelList,
ListParseNode statementList 
)
inline

◆ ~SwitchSection()

virtual Bond::SwitchSection::~SwitchSection ( )
inlinevirtual

Member Function Documentation

◆ Accept() [1/2]

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

Implements Bond::ParseNode.

◆ Accept() [2/2]

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

Implements Bond::ParseNode.

◆ GetJumpTargetId()

size_t Bond::SwitchSection::GetJumpTargetId ( ) const
inline

◆ GetLabelList() [1/2]

SwitchLabel * Bond::SwitchSection::GetLabelList ( )
inline

◆ GetLabelList() [2/2]

const SwitchLabel * Bond::SwitchSection::GetLabelList ( ) const
inline

◆ GetStatementList() [1/2]

ListParseNode * Bond::SwitchSection::GetStatementList ( )
inline

◆ GetStatementList() [2/2]

const ListParseNode * Bond::SwitchSection::GetStatementList ( ) const
inline

◆ GetSymbolType()

virtual SymbolType Bond::SwitchSection::GetSymbolType ( ) const
inlineoverridevirtual

Implements Bond::Symbol.

◆ SetJumpTargetId()

void Bond::SwitchSection::SetJumpTargetId ( size_t  id)
inline

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