Пример #1
0
 public PrettyPrinter(TextWriter writer, int width)
 {
     this.buffer = new Dequeue<Token>();
     this.breaks = new Dequeue<Break>();
     this.output = new PrettyPrinterOutput(writer, width);
     this.breakLevel = -1;
 }
Пример #2
0
 public PrettyPrinter(TextWriter writer, int width)
 {
     this.buffer     = new Dequeue <Token>();
     this.breaks     = new Dequeue <Break>();
     this.output     = new PrettyPrinterOutput(writer, width);
     this.breakLevel = -1;
 }
Пример #3
0
 public StringToken(char c, PrettyPrinterOutput output) : base(output)
 {
     this.c = c;
 }
Пример #4
0
 public NewlineToken(PrettyPrinterOutput output) : base(output)
 {
 }
Пример #5
0
 public OutdentToken(int amount, PrettyPrinterOutput output)
     : base(output)
 {
     outdentAmt = amount;
 }
Пример #6
0
 public MarkerToken(int groupingLevel, PrettyPrinterOutput output)
     : base(output)
 {
     this.groupingLevel = groupingLevel;
 }
Пример #7
0
 protected Token(PrettyPrinterOutput output)
 {
     this.Output = output;
 }
Пример #8
0
 public StringToken(char c, PrettyPrinterOutput output) : base(output)
 {
     this.c = c;
 }
Пример #9
0
 public NewlineToken(PrettyPrinterOutput output) : base(output)
 {
 }
Пример #10
0
 public OutdentToken(int amount, PrettyPrinterOutput output)
     : base(output)
 {
     outdentAmt = amount;
 }
Пример #11
0
 public MarkerToken(int groupingLevel, PrettyPrinterOutput output)
     : base(output)
 {
     this.groupingLevel = groupingLevel;
 }
Пример #12
0
 protected Token(PrettyPrinterOutput output)
 {
     this.Output = output;
 }