#include <ast.h>
Inheritance diagram for defNode::
Public Methods | |
defNode (NodeType typ, const Coord coord) | |
Create a definition node. More... | |
virtual | ~defNode () |
Destroy a defNode. More... | |
Accessors | |
Methods to get and set fields in the class. | |
text_list & | pragmas () |
Private Attributes | |
text_list | _pragmas |
Pragmas. More... |
This class provides a base class for procNode and declNode, which are the two kinds of external definitions in a translation unit.
The NodeType is determined by the subclass (either Proc or Decl).
|
Create a definition node.
|
|
Destroy a defNode.
|
|
|
|
Pragmas. This list will contain any pragmas that precede the given defNode. During parsing, they are collected into the CBZ::pragmas list and then placed here in the defNode constructor. |