Exemplo n.º 1
0
 /// <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));
     }
 }
Exemplo n.º 2
0
 /// <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);
         }
     }
 }
Exemplo n.º 3
0
        /// <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));
        }