ScummVM API documentation
Stark::Tools::ASTBlock Struct Reference

#include <abstractsyntaxtree.h>

Inheritance diagram for Stark::Tools::ASTBlock:
Stark::Tools::ASTNode

Public Member Functions

 ASTBlock (ASTNode *parent)
 
void print (uint depth, DefinitionRegistry *definitions) override
 
Common::Array< const ASTCommand * > listCommands (uint16 index) const override
 
void findSuccessorsIntern (const ASTNode *node, ASTNode **follower, ASTNode **trueBranch, ASTNode **falseBranch) const override
 
const ASTCommandgetFirstCommand () const override
 
void addNode (ASTNode *node)
 
- Public Member Functions inherited from Stark::Tools::ASTNode
 ASTNode (ASTNode *parent)
 
void findSuccessors (ASTNode **follower, ASTNode **trueBranch, ASTNode **falseBranch) const
 

Additional Inherited Members

- Protected Member Functions inherited from Stark::Tools::ASTNode
void printWithDepth (uint depth, const Common::String &string) const
 
- Protected Attributes inherited from Stark::Tools::ASTNode
ASTNode_parent
 

Detailed Description

Block AST Node

A list of consecutive script expressions.

Member Function Documentation

◆ print()

void Stark::Tools::ASTBlock::print ( uint  depth,
DefinitionRegistry definitions 
)
overridevirtual

Print the script source code for this node and its children

Implements Stark::Tools::ASTNode.

◆ listCommands()

Common::Array<const ASTCommand *> Stark::Tools::ASTBlock::listCommands ( uint16  index) const
overridevirtual

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

Implements Stark::Tools::ASTNode.

◆ getFirstCommand()

const ASTCommand* Stark::Tools::ASTBlock::getFirstCommand ( ) const
overridevirtual

Find the first command to be executed when running this job

Implements Stark::Tools::ASTNode.

◆ addNode()

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

Append a child expression to this block


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