private IndexorExpression(ILocation location, Expression parent) : base(location) { Require.Assigned(parent); this.parent = parent; field = new FieldExpression(location, new Identifier(location, "OperatorSetIndex")); field.SetParent(parent); call = new CallExpression(location, field); setter = true; }
public override void SetParent(Expression expression) { Require.Unassigned(parent); field.SetParent(expression); this.parent = expression; }