Represents an include directive.
More...
#include <bond/compiler/parsenodes.h>
Represents an include directive.
◆ IncludeDirective()
| Bond::IncludeDirective::IncludeDirective |
( |
const Token * | includePath | ) |
|
|
inlineexplicit |
Constructs an include directive node.
- Parameters
-
| includePath | Token containing the include path. |
◆ ~IncludeDirective()
| virtual Bond::IncludeDirective::~IncludeDirective |
( |
| ) |
|
|
inlinevirtual |
◆ Accept() [1/2]
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::IncludeDirective::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.
◆ GetIncludePath()
| const Token * Bond::IncludeDirective::GetIncludePath |
( |
| ) |
const |
|
inline |
Returns the include path token.
The documentation for this class was generated from the following file:
- include/bond/compiler/parsenodes.h