20 #ifndef TQMAKETQMAKEAST_H 21 #define TQMAKETQMAKEAST_H 23 #include <tqstringlist.h> 77 int depth()
const {
return m_depth; }
125 virtual void writeBack(TQString &buffer);
130 bool isScope()
const {
return m_kind == Scope; }
134 bool isEmpty()
const {
return m_kind == Empty; }
136 void setFileName(
const TQString& fileName) { m_fileName = fileName; }
137 TQString fileName()
const {
return m_fileName; }
139 void setLineEnding( LineEnding );
140 LineEnding lineEnding();
150 LineEnding m_lineEnding;
179 virtual void writeBack(TQString &buffer);
200 virtual void writeBack(TQString &buffer);
213 virtual void writeBack(TQString &buffer);
229 virtual void writeBack(TQString &buffer);
231 TQString projectName;
void setDepth(int depth)
Sets the depth of the node in AST.
TQStringList values
List of values.
virtual TQString indentation()
virtual void removeChildAST(AST *node)
Removes child AST node from this node.
TQValueList< AST * > m_children
The list of child AST nodes.
virtual void addChildAST(AST *node)
Adds child AST node to this node.
AST(NodeType nodeType)
Constructs AST with given node type.
TQString scopedID
Scoped identifier (scope name or function name).
TQString scopedID
Scoped name of the variable.
virtual void writeBack(TQString &buffer)
Writes information stored in the AST into the buffer.
TQString args
Function arguments.
virtual NodeType nodeType() const
Kind
The kind of a project node.
bool isFunctionScope() const
ProjectAST(Kind kind=Project)
Constructs a project node of given kind.
NodeType
Type of AST node.
TQString indent
Indentation of multiline values.