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

#include <abstractsyntaxtree.h>

Inheritance diagram for Stark::Tools::ASTCondition:
Stark::Tools::ASTNode

Public Member Functions

 ASTCondition (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
 
ASTBlockthenBlock
 
ASTBlockelseBlock
 

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

Condition AST Node

An if / then / else branching condition.

Member Function Documentation

◆ print()

void Stark::Tools::ASTCondition::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::ASTCondition::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::ASTCondition::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: