|
Bond 0.9
C++ Bond Runtime Library API Documentation
|
Represents a complete parsed source file. More...
#include <bond/compiler/parsenodes.h>
Public Member Functions | |
| TranslationUnit (IncludeDirective *includeDirectiveList, ListParseNode *declarationList) | |
| Constructs a translation unit. | |
| virtual | ~TranslationUnit () |
| 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. | |
| IncludeDirective * | GetIncludeDirectiveList () |
| Returns the include directive list. | |
| const IncludeDirective * | GetIncludeDirectiveList () const |
| Returns the include directive list. | |
| ListParseNode * | GetExternalDeclarationList () |
| Returns the list of top-level declarations. | |
| const ListParseNode * | GetExternalDeclarationList () const |
| Returns the list of top-level declarations. | |
| bool | RequiresCodeGeneration () const |
| Returns true if this unit should produce code. | |
| void | SetRequiresCodeGeneration (bool required) |
| Sets whether this translation unit should produce code. | |
| 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::ListParseNode | |
| ListParseNode () | |
| Protected Member Functions inherited from Bond::ParseNode | |
| ParseNode () | |
Represents a complete parsed source file.
|
inline |
Constructs a translation unit.
| includeDirectiveList | List of include directives. |
| declarationList | List of top-level declarations. |
|
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 the list of top-level declarations.
|
inline |
Returns the list of top-level declarations.
|
inline |
Returns the include directive list.
|
inline |
Returns the include directive list.
|
inline |
Returns true if this unit should produce code.
|
inline |
Sets whether this translation unit should produce code.
| required | True to enable code generation. |