*/
public abstract bool is_chainup { get; set; }
+ /**
+ * The expression to call.
+ */
+ public abstract Expression call { get; }
+
/**
* Appends the specified expression to the list of arguments.
*
*/
public Expression call {
get { return _call; }
- private set {
- _call = value;
- _call.parent_node = this;
- }
}
public bool is_yield_expression { get; set; }
*/
public MethodCall (Expression call, SourceReference? source_reference = null) {
this.source_reference = source_reference;
- this.call = call;
+ this._call = call;
+ this._call.parent_node = this;
}
/**
public override void replace_expression (Expression old_node, Expression new_node) {
if (call == old_node) {
- call = new_node;
+ _call = new_node;
}
int index = argument_list.index_of (old_node);
}
}
+ /**
+ * The construction method to call.
+ */
+ public Expression call {
+ get { return member_name; }
+ }
+
/**
* The construction method to use or the data type to be created
* with the default construction method.