![]() |
|
An element of compilation passed to and from plugins. More...
#include <cbackend.h>
Public Member Functions | |
| CElement (const char *filename, int filenameValid, CNode *code) | |
| Constructor for class. | |
| const char * | Filename () |
| Access method for filename tagging this compilation unit. | |
| CNode * | Code () |
| Access method for parse tree for this compilation unit. | |
| void | Code (CNode *code) |
| Method to set parse tree for this compilation unit. | |
An element of compilation passed to and from plugins.
Each element contains a parse tree and optionally a filename. The filename may represent the input file for the compilation unit or may have been synthetically generated by a plugin. The dump plugin is configurable so that all elements may be dumped to a single file (using -o <filename>) or dumped to a directory using the tagged filenames (using -dir <directory>).
| CElement::CElement | ( | const char * | filename, | |
| int | filenameValid, | |||
| CNode * | code | |||
| ) | [inline] |
Constructor for class.
| filename | a filename tagging the compilation unit. | |
| filenameValid | non-zero when filename is valid. | |
| code | a pointer to the parse tree for the compilation unit. |
| CNode* CElement::Code | ( | ) | [inline] |
Access method for parse tree for this compilation unit.
| void CElement::Code | ( | CNode * | code | ) | [inline] |
Method to set parse tree for this compilation unit.
| code | a pointer to parse tree. |
| const char* CElement::Filename | ( | ) | [inline] |
Access method for filename tagging this compilation unit.
1.7.1