22 #ifndef STARK_TOOLS_COMMAND_H 23 #define STARK_TOOLS_COMMAND_H 25 #include "common/array.h" 26 #include "common/hashmap.h" 27 #include "common/hash-ptr.h" 29 #include "engines/stark/resources/command.h" 35 class DefinitionRegistry;
46 enum ControlFlowType {
63 Resources::Command::SubType getSubType()
const;
64 bool hasSubtypeDescription()
const;
71 Resources::Command::SubType subType;
73 ControlFlowType controlFlowType;
83 Resources::Command::SubType _subType;
85 ArgumentArray _arguments;
99 bool isEntryPoint()
const;
102 bool isBranch()
const;
105 bool isBranchTarget()
const;
121 Block *getBlock()
const;
122 void setBlock(
Block *block);
138 int32 _followerIndex;
139 int32 _trueBranchIndex;
140 int32 _falseBranchIndex;
166 void printAll()
const;
173 DefinitionMap _definitions;
179 #endif // STARK_TOOLS_COMMAND_H
Definition: resourcereference.h:39