#include <qmakeast.h>

Public Types | |
enum | Kind { Project, Scope, FunctionScope, Empty } |
enum | LineEnding { Unix, MacOS, Windows } |
![]() | |
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 () |
![]() | |
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 |
![]() | |
TQValueList< AST * > | m_children |
Additional Inherited Members | |
![]() | |
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.
Constructor & Destructor Documentation
◆ ProjectAST()
Constructs a project node of given kind
.
Definition at line 123 of file qmakeast.h.
Member Function Documentation
◆ 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.
◆ 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: