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

#include <abstractsyntaxtree.h>

Inheritance diagram for Stark::Tools::ASTLoop:
Stark::Tools::ASTNode

Public Member Functions

 ASTLoop (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
 
- Public Member Functions inherited from Stark::Tools::ASTNode
 ASTNode (ASTNode *parent)
 
void findSuccessors (ASTNode **follower, ASTNode **trueBranch, ASTNode **falseBranch) const
 

Public Attributes

ASTCommandcondition
 
bool invertedCondition
 
ASTBlockloopBlock
 

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

Loop AST Node

A while loop.

Member Function Documentation

◆ print()

void Stark::Tools::ASTLoop::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::ASTLoop::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::ASTLoop::getFirstCommand ( ) const
overridevirtual

Find the first command to be executed when running this job

Implements Stark::Tools::ASTNode.


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