13 private readonly Dictionary<string, BadExpression>
m_Constants =
new Dictionary<string, BadExpression>();
55 throw new Exception(
"Constant not found");
The scope of the Constant Substitution Optimizer.
BadConstantSubstitutionOptimizerScope(BadConstantSubstitutionOptimizerScope? parent)
Creates a new scope with a parent scope.
BadExpression GetConstant(string name)
Returns a constant from this scope or a parent scope.
BadConstantSubstitutionOptimizerScope CreateChildScope()
Creates a child scope.
void AddConstant(string name, BadExpression expr)
Adds a constant to this scope.
readonly? BadConstantSubstitutionOptimizerScope m_Parent
The parent scope.
BadConstantSubstitutionOptimizerScope()
Creates a new scope.
bool IsConstant(string name)
Returns true if the constant is defined in this scope or a parent scope.
readonly Dictionary< string, BadExpression > m_Constants
The constants in this scope.
Base Implementation for all Expressions used inside the Script.
Contains the BadScript2 Constant Substitution Optimizations.
Contains the Expressions for the BadScript2 Language.