internal VariableInstruction CreateVariable(string nameHint, Type variableType) { var variable = new VariableInstruction(nameHint, variableType); _variables.Add(variable); return(variable); }
internal Expression Variable(VariableInstruction variableOccurance) { ParameterExpression variable; if (!_declaredVariables.TryGetValue(variableOccurance, out variable)) { variable = GetTemporaryVariable(variableOccurance.VariableType); _declaredVariables[variableOccurance] = variable; } return(variable); }
internal Instruction Assign(VariableInstruction variable, Instruction assignedValue) { return(new AssignInstruction(variable, assignedValue)); }
public virtual void VisitVariable(VariableInstruction x) { VisitInstruction(x); }
public override void VisitVariable(VariableInstruction x) { emit(_compiler.Variable(x)); }