ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::Tools::ASTBlock Struct Reference

Block AST Node. More...

#include <abstractsyntaxtree.h>

Inheritance diagram for Stark::Tools::ASTBlock:
Collaboration diagram for Stark::Tools::ASTBlock:

List of all members.

Public Member Functions

 ASTBlock (ASTNode *parent)
 ~ASTBlock () override
void print (uint depth, DefinitionRegistry *definitions) override
 Print the script source code for this node and its children.
Common::Array< const ASTCommand * > listCommands (uint16 index) const override
 Recursively list all the commands in the tree with the requested index.
void findSuccessorsIntern (const ASTNode *node, ASTNode **follower, ASTNode **trueBranch, ASTNode **falseBranch) const override
const ASTCommandgetFirstCommand () const override
 Find the first command to be executed when running this job.
void addNode (ASTNode *node)
 Append a child expression to this block.

Private Attributes

Common::Array< ASTNode * > _children

Detailed Description

Block AST Node.

A list of consecutive script expressions.

Definition at line 86 of file abstractsyntaxtree.h.


Constructor & Destructor Documentation

Stark::Tools::ASTBlock::ASTBlock ( ASTNode parent  ) 

Definition at line 52 of file abstractsyntaxtree.cpp.

Stark::Tools::ASTBlock::~ASTBlock (  )  [override]

Definition at line 57 of file abstractsyntaxtree.cpp.


Member Function Documentation

void Stark::Tools::ASTBlock::addNode ( ASTNode node  ) 

Append a child expression to this block.

Definition at line 63 of file abstractsyntaxtree.cpp.

void Stark::Tools::ASTBlock::findSuccessorsIntern ( const ASTNode node,
ASTNode **  follower,
ASTNode **  trueBranch,
ASTNode **  falseBranch 
) const [override, virtual]

Implements Stark::Tools::ASTNode.

Definition at line 83 of file abstractsyntaxtree.cpp.

const ASTCommand * Stark::Tools::ASTBlock::getFirstCommand (  )  const [override, virtual]

Find the first command to be executed when running this job.

Implements Stark::Tools::ASTNode.

Definition at line 108 of file abstractsyntaxtree.cpp.

Common::Array< const ASTCommand * > Stark::Tools::ASTBlock::listCommands ( uint16  index  )  const [override, virtual]

Recursively list all the commands in the tree with the requested index.

Implements Stark::Tools::ASTNode.

Definition at line 73 of file abstractsyntaxtree.cpp.

void Stark::Tools::ASTBlock::print ( uint  depth,
DefinitionRegistry definitions 
) [override, virtual]

Print the script source code for this node and its children.

Implements Stark::Tools::ASTNode.

Definition at line 67 of file abstractsyntaxtree.cpp.


Member Data Documentation


The documentation for this struct was generated from the following files:


Generated on Sat Nov 9 2019 05:02:32 for ResidualVM by doxygen 1.7.1
curved edge   curved edge