/// <summary> /// Visits all return attributes of the given <see cref="NRReturnValueOperation"/>. /// </summary> /// <param name="nrReturnValueOperation">The attributes of this <see cref="NRReturnValueOperation"/> /// gets visited.</param> private void VisitReturnValueAttributes(NRReturnValueOperation nrReturnValueOperation) { foreach (NRAttribute nrAttribute in nrReturnValueOperation.ReturnValueAttributes) { OutputLine(GetAttribute(nrAttribute, true)); } }
/// <summary> /// Visits the return value attributes of the given <see cref="NRReturnValueOperation"/>. /// </summary> /// <param name="nrReturnValueOperation">The attributes of this object are visited.</param> private void VisitReturnValueAttributes(NRReturnValueOperation nrReturnValueOperation) { foreach (NRAttribute nrAttribute in nrReturnValueOperation.ReturnValueAttributes) { string attribute = nrAttribute.Declaration(true); if (!string.IsNullOrWhiteSpace(attribute)) { OutputLine(attribute); } } }
/// <summary> /// Prints the members of the supplied <see cref="NRReturnValueOperation"/>. /// </summary> /// <param name="nrReturnValueOperation">The members of this <see cref="NRReturnValueOperation"/> are printed.</param> private void PrintMembers(NRReturnValueOperation nrReturnValueOperation) { PrintMembers((NROperation)nrReturnValueOperation); nrReturnValueOperation.ReturnValueAttributes.ForEach(nrAttribute => nrAttribute.Accept(this)); }