Represents a function signature.
More...
#include <bond/compiler/parsenodes.h>
Represents a function signature.
◆ FunctionPrototype()
Constructs a function prototype.
- Parameters
-
| name | Function name token. |
| returnType | Function return type descriptor. |
| parameterList | Function parameter list. |
| isConst | True if this is a const-qualified member function. |
◆ ~FunctionPrototype()
| virtual Bond::FunctionPrototype::~FunctionPrototype |
( |
| ) |
|
|
inlinevirtual |
◆ Accept() [1/2]
| virtual void Bond::FunctionPrototype::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::FunctionPrototype::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::FunctionPrototype::GetName |
( |
| ) |
const |
|
inline |
Returns the function name token.
◆ GetParameterList() [1/2]
| Parameter * Bond::FunctionPrototype::GetParameterList |
( |
| ) |
|
|
inline |
Returns the parameter list.
◆ GetParameterList() [2/2]
| const Parameter * Bond::FunctionPrototype::GetParameterList |
( |
| ) |
const |
|
inline |
Returns the parameter list.
◆ GetReturnType() [1/2]
Returns the return type descriptor.
◆ GetReturnType() [2/2]
| const TypeDescriptor * Bond::FunctionPrototype::GetReturnType |
( |
| ) |
const |
|
inline |
Returns the return type descriptor.
◆ IsConst()
| bool Bond::FunctionPrototype::IsConst |
( |
| ) |
const |
|
inline |
Returns true if the function is const-qualified.
The documentation for this class was generated from the following file:
- include/bond/compiler/parsenodes.h