Exemplo n.º 1
0
        internal void EndInstanceProducer(bool last)
        {
            var entry = this.producers.Pop();

            this.indentingDepth--;

            this.Append(")");

            if (!last)
            {
                this.Append(",");
                if (this.stillToWriteLifestyleEntry != null)
                {
                    this.AppendLifestyle(this.stillToWriteLifestyleEntry);
                    this.stillToWriteLifestyleEntry = null;
                }

                this.AppendLifestyle(entry);
            }

            if (!entry.LifestyleWritten)
            {
                this.stillToWriteLifestyleEntry = entry;
            }

            if (!this.producers.Any())
            {
                this.AppendLifestyle(this.stillToWriteLifestyleEntry);
            }
        }
Exemplo n.º 2
0
 private void AppendLifestyle(ProducerEntry entry)
 {
     if (this.writeLifestyles && !entry.LifestyleWritten)
     {
         this.Append(" // ");
         this.Append(entry.Producer.Lifestyle.Name);
         entry.LifestyleWritten = true;
     }
 }
Exemplo n.º 3
0
 private void AppendLifestyle(ProducerEntry entry)
 {
     if (this.visualizationOptions.IncludeLifestyleInformation && !entry.LifestyleWritten)
     {
         this.Append(" // ");
         this.Append(entry.Producer.Lifestyle.Name);
         entry.LifestyleWritten = true;
     }
 }