|
Bond 0.9
C++ Bond Runtime Library API Documentation
|
Represents member access on a struct-like value. More...
#include <bond/compiler/parsenodes.h>
Public Member Functions | |
| MemberExpression (const Token *op, const Token *memberName, Expression *lhs) | |
| Constructs a member access expression. | |
| virtual | ~MemberExpression () |
| virtual void | Accept (ParseNodeVisitor &visitor) override |
| Dispatches this node to the given visitor. | |
| virtual void | Accept (ParseNodeVisitor &visitor) const override |
| Dispatches this node to the given visitor. | |
| virtual const Token * | GetContextToken () const override |
| Returns the token used as source context for diagnostics. | |
| const Token * | GetOperator () const |
| Returns the member access operator token. | |
| const Token * | GetMemberName () const |
| Returns the member name token. | |
| Expression * | GetLhs () |
| Returns the left-hand-side object expression. | |
| const Expression * | GetLhs () const |
| Returns the left-hand-side object expression. | |
| const Symbol * | GetDefinition () const |
| Returns resolved symbol definition for the member. | |
| void | SetDefinition (const Symbol *symbol) |
| Sets resolved symbol definition for the member. | |
| Public Member Functions inherited from Bond::Expression | |
| virtual | ~Expression () |
| const TypeDescriptor & | GetTypeDescriptor () const |
| Returns the expression's type descriptor. | |
| void | SetTypeDescriptor (const TypeDescriptor &descriptor) |
| Sets the expression's type descriptor. | |
| const TypeAndValue & | GetTypeAndValue () const |
| Returns type and value metadata for the expression. | |
| TypeAndValue & | GetTypeAndValue () |
| Returns mutable type and value metadata for the expression. | |
| Public Member Functions inherited from Bond::ListParseNode | |
| virtual | ~ListParseNode () |
| ListParseNode * | GetNextNode () |
| Returns the next node in the list. | |
| const ListParseNode * | GetNextNode () const |
| Returns the next node in the list. | |
| void | SetNextNode (ListParseNode *next) |
| Sets the next node in the list. | |
| Public Member Functions inherited from Bond::ParseNode | |
| virtual | ~ParseNode () |
Additional Inherited Members | |
| Protected Member Functions inherited from Bond::Expression | |
| Expression () | |
| Protected Member Functions inherited from Bond::ListParseNode | |
| ListParseNode () | |
| Protected Member Functions inherited from Bond::ParseNode | |
| ParseNode () | |
Represents member access on a struct-like value.
|
inline |
Constructs a member access expression.
| op | Member access operator token. |
| memberName | Member name token. |
| lhs | Left-hand-side object expression. |
|
inlinevirtual |
|
inlineoverridevirtual |
Dispatches this node to the given visitor.
| visitor | Visitor that handles this node type. |
Implements Bond::ParseNode.
|
inlineoverridevirtual |
Dispatches this node to the given visitor.
| visitor | Visitor that handles this node type. |
Implements Bond::ParseNode.
|
inlineoverridevirtual |
Returns the token used as source context for diagnostics.
Implements Bond::ParseNode.
|
inline |
Returns resolved symbol definition for the member.
|
inline |
Returns the left-hand-side object expression.
|
inline |
Returns the left-hand-side object expression.
|
inline |
Returns the member name token.
|
inline |
Returns the member access operator token.
|
inline |
Sets resolved symbol definition for the member.
| symbol | Symbol resolved for the member access. |