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

Represents an include directive. More...

#include <bond/compiler/parsenodes.h>

Inheritance diagram for Bond::IncludeDirective:
Bond::ListParseNode Bond::ParseNode

Public Member Functions

 IncludeDirective (const Token *includePath)
 Constructs an include directive node.
virtual ~IncludeDirective ()
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 TokenGetContextToken () const override
 Returns the token used as source context for diagnostics.
const TokenGetIncludePath () const
 Returns the include path token.
Public Member Functions inherited from Bond::ListParseNode
virtual ~ListParseNode ()
ListParseNodeGetNextNode ()
 Returns the next node in the list.
const ListParseNodeGetNextNode () 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::ListParseNode
 ListParseNode ()
Protected Member Functions inherited from Bond::ParseNode
 ParseNode ()

Detailed Description

Represents an include directive.

Constructor & Destructor Documentation

◆ IncludeDirective()

Bond::IncludeDirective::IncludeDirective ( const Token * includePath)
inlineexplicit

Constructs an include directive node.

Parameters
includePathToken containing the include path.

◆ ~IncludeDirective()

virtual Bond::IncludeDirective::~IncludeDirective ( )
inlinevirtual

Member Function Documentation

◆ Accept() [1/2]

virtual void Bond::IncludeDirective::Accept ( ParseNodeVisitor & visitor) const
inlineoverridevirtual

Dispatches this node to the given visitor.

Parameters
visitorVisitor that handles this node type.

Implements Bond::ParseNode.

◆ Accept() [2/2]

virtual void Bond::IncludeDirective::Accept ( ParseNodeVisitor & visitor)
inlineoverridevirtual

Dispatches this node to the given visitor.

Parameters
visitorVisitor 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