Represents a potentially qualified identifier.
More...
#include <bond/compiler/parsenodes.h>
Represents a potentially qualified identifier.
◆ QualifiedIdentifier()
| Bond::QualifiedIdentifier::QualifiedIdentifier |
( |
const Token * | name | ) |
|
|
inlineexplicit |
Constructs a qualified identifier element.
- Parameters
-
| name | Token containing one identifier segment. |
◆ ~QualifiedIdentifier()
| virtual Bond::QualifiedIdentifier::~QualifiedIdentifier |
( |
| ) |
|
|
inlinevirtual |
◆ Accept() [1/2]
| virtual void Bond::QualifiedIdentifier::Accept |
( |
ParseNodeVisitor & | visitor | ) |
const |
|
inlineoverridevirtual |
Dispatches this node to the given visitor.
- Parameters
-
| visitor | Visitor that handles this node type. |
Implements Bond::ParseNode.
◆ Accept() [2/2]
Dispatches this node to the given visitor.
- Parameters
-
| visitor | Visitor that handles this node type. |
Implements Bond::ParseNode.
◆ GetContextToken()
| virtual const Token * Bond::QualifiedIdentifier::GetContextToken |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the token used as source context for diagnostics.
- Returns
- A token associated with this node, or null if no token applies.
Implements Bond::ParseNode.
◆ GetName()
| const Token * Bond::QualifiedIdentifier::GetName |
( |
| ) |
const |
|
inline |
Returns this identifier segment token.
◆ GetNextIdentifier() [1/2]
Returns the next identifier segment.
- Returns
- Next segment, or null if this segment is terminal.
◆ GetNextIdentifier() [2/2]
Returns the next identifier segment.
- Returns
- Next segment, or null if this segment is terminal.
◆ IsTerminal()
| bool Bond::QualifiedIdentifier::IsTerminal |
( |
| ) |
const |
|
inline |
Returns true if this is the last identifier segment.
The documentation for this class was generated from the following file:
- include/bond/compiler/parsenodes.h