예제 #1
0
 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;
 }
예제 #2
0
 public override void SetParent(Expression expression)
 {
     Require.Unassigned(parent);
     field.SetParent(expression);
     this.parent = expression;
 }