Exemple #1
0
        internal VariableInstruction CreateVariable(string nameHint, Type variableType)
        {
            var variable = new VariableInstruction(nameHint, variableType);

            _variables.Add(variable);

            return(variable);
        }
Exemple #2
0
        internal Expression Variable(VariableInstruction variableOccurance)
        {
            ParameterExpression variable;

            if (!_declaredVariables.TryGetValue(variableOccurance, out variable))
            {
                variable = GetTemporaryVariable(variableOccurance.VariableType);
                _declaredVariables[variableOccurance] = variable;
            }

            return(variable);
        }
Exemple #3
0
 internal Instruction Assign(VariableInstruction variable, Instruction assignedValue)
 {
     return(new AssignInstruction(variable, assignedValue));
 }
Exemple #4
0
 public virtual void VisitVariable(VariableInstruction x)
 {
     VisitInstruction(x);
 }
Exemple #5
0
 public override void VisitVariable(VariableInstruction x)
 {
     emit(_compiler.Variable(x));
 }