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