/** * Sets the {@code _result} child of this {@link AImplicitOperationDefinition} node. * @param value the new {@code _result} child of this {@link AImplicitOperationDefinition} node */ public void setResult(APatternTypePair value) { if (this._result != null) { this._result.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._result = value; }
/** * Sets the {@code _result} child of this {@link AImplicitFunctionDefinition} node. * @param value the new {@code _result} child of this {@link AImplicitFunctionDefinition} node */ public void setResult(APatternTypePair value) { if (this._result != null) { this._result.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._result = value; }