using System;
using Microsoft.Scripting;
using IronPython.Compiler.Ast;
using MSAst = System.Linq.Expressions;
using Microsoft.Scripting.Utils;
namespace IronPython.Compiler {
internal class ReferenceClosureInfo {
public readonly PythonVariable Variable;
public bool IsClosedOver;
public ReferenceClosureInfo(PythonVariable variable, int index, MSAst.Expression tupleExpr, bool accessedInThisScope) {
Assert.NotNull(variable);
Variable = variable;
IsClosedOver = accessedInThisScope;
}
public PythonVariable PythonVariable {
get {
return Variable;
}
}
}
}