Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of a FormatterVisitor.
 /// </summary>
 /// <param name="writer">The text writer to write the text to.</param>
 /// <param name="options">The command options to use to augment the text generation.</param>
 public FormattingVisitor(TextWriter writer, CommandOptions options = null)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     this.writer = writer;
     this.options = options == null ? new CommandOptions() : options.Clone();
     this.commandType = CommandType.Unknown;
     this.sourceReferenceType = SourceReferenceType.Declaration;
     this.valueReferenceType = ValueReferenceType.Declaration;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of a FormatterVisitor.
 /// </summary>
 /// <param name="writer">The text writer to write the text to.</param>
 /// <param name="options">The command options to use to augment the text generation.</param>
 public FormattingVisitor(TextWriter writer, CommandOptions options = null)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     this.writer              = writer;
     this.options             = options == null ? new CommandOptions() : options.Clone();
     this.commandType         = CommandType.Unknown;
     this.sourceReferenceType = SourceReferenceType.Declaration;
     this.valueReferenceType  = ValueReferenceType.Declaration;
 }
Exemplo n.º 3
0
 private FormattingVisitor(
     TextWriter writer, 
     CommandOptions options, 
     int level, 
     CommandType commandType, 
     SourceReferenceType sourceType,
     ValueReferenceType projectionType)
 {
     this.writer = writer;
     this.options = options;
     this.level = level;
     this.commandType = commandType;
     this.sourceReferenceType = sourceType;
     this.valueReferenceType = projectionType;
 }
Exemplo n.º 4
0
 private FormattingVisitor(
     TextWriter writer,
     CommandOptions options,
     int level,
     CommandType commandType,
     SourceReferenceType sourceType,
     ValueReferenceType projectionType)
 {
     this.writer              = writer;
     this.options             = options;
     this.level               = level;
     this.commandType         = commandType;
     this.sourceReferenceType = sourceType;
     this.valueReferenceType  = projectionType;
 }
Exemplo n.º 5
0
 private FormattingVisitor forSourceContext(SourceReferenceType type)
 {
     return new FormattingVisitor(writer, options, level, commandType, type, valueReferenceType);
 }
Exemplo n.º 6
0
 internal DomainModelRefInfo(Type type, SourceReferenceType sourceReferenceType)
 {
     SourceReferenceType = sourceReferenceType;
     ReflectedType       = type;
 }
Exemplo n.º 7
0
 internal OtherDomainModelRefInfo(Type type, SourceReferenceType sourceReferenceType)
     : base(type, sourceReferenceType)
 {
 }
Exemplo n.º 8
0
 private FormattingVisitor forSourceContext(SourceReferenceType type)
 {
     return(new FormattingVisitor(writer, options, level, commandType, type, valueReferenceType));
 }