#include <qmakeast.h>
Public Types | |
| enum | Kind { Project , Scope , FunctionScope , Empty } |
| enum | LineEnding { Unix , MacOS , Windows } |
| Public Types inherited from TQMake::AST | |
| enum | NodeType { ProjectAST , AssignmentAST , NewLineAST , CommentAST , IncludeAST , OrOperatorAST } |
Public Member Functions | |
| ProjectAST (Kind kind=Project) | |
| virtual void | writeBack (TQString &buffer) |
| bool | isProject () const |
| bool | isScope () const |
| bool | isFunctionScope () const |
| bool | isEmpty () const |
| void | setFileName (const TQString &fileName) |
| TQString | fileName () const |
| void | setLineEnding (LineEnding) |
| LineEnding | lineEnding () |
| Public Member Functions inherited from TQMake::AST | |
| AST (NodeType nodeType) | |
| virtual void | addChildAST (AST *node) |
| virtual void | removeChildAST (AST *node) |
| virtual NodeType | nodeType () const |
| void | setDepth (int depth) |
| int | depth () const |
| virtual TQString | indentation () |
Public Attributes | |
| TQString | scopedID |
| TQString | args |
| Public Attributes inherited from TQMake::AST | |
| TQValueList< AST * > | m_children |
Additional Inherited Members | |
| Protected Attributes inherited from TQMake::AST | |
| NodeType | m_nodeType |
Detailed Description
Project AST node.
Represents complete projects, scopes and function scopes. Examples:
Definition at line 106 of file qmakeast.h.
Member Enumeration Documentation
◆ Kind
The kind of a project node.
| Enumerator | |
|---|---|
| Project | Project. |
| Scope | Scope. |
| FunctionScope | FunctionScope. |
| Empty | Project does not exist, the AST is empty. |
Definition at line 109 of file qmakeast.h.
◆ LineEnding
| enum TQMake::ProjectAST::LineEnding |
Definition at line 116 of file qmakeast.h.
Constructor & Destructor Documentation
◆ ProjectAST()
Constructs a project node of given kind.
Definition at line 123 of file qmakeast.h.
Member Function Documentation
◆ fileName()
|
inline |
Definition at line 137 of file qmakeast.h.
◆ isEmpty()
|
inline |
- Returns
- true if this node is empty.
Definition at line 134 of file qmakeast.h.
◆ isFunctionScope()
|
inline |
- Returns
- true if this node is a function scope.
Definition at line 132 of file qmakeast.h.
◆ isProject()
|
inline |
- Returns
- true if this node is a project.
Definition at line 128 of file qmakeast.h.
◆ isScope()
|
inline |
- Returns
- true if this node is a scope.
Definition at line 130 of file qmakeast.h.
◆ lineEnding()
| ProjectAST::LineEnding TQMake::ProjectAST::lineEnding | ( | ) |
Definition at line 120 of file qmakeast.cpp.
◆ setFileName()
|
inline |
Definition at line 136 of file qmakeast.h.
◆ setLineEnding()
| void TQMake::ProjectAST::setLineEnding | ( | ProjectAST::LineEnding | l | ) |
Definition at line 115 of file qmakeast.cpp.
◆ writeBack()
|
virtual |
Writes information stored in the AST into the buffer.
This is a default implementation which iterates over child nodes and calls writeBack for each child node.
Reimplemented from TQMake::AST.
Definition at line 70 of file qmakeast.cpp.
Member Data Documentation
◆ args
| TQString TQMake::ProjectAST::args |
◆ scopedID
| TQString TQMake::ProjectAST::scopedID |
Scoped identifier (scope name or function name).
Definition at line 143 of file qmakeast.h.
The documentation for this class was generated from the following files:
Trinity API Reference