public object Clone() { IndentStack clone = new IndentStack(engine, stack.Length); clone.stack = (Node[])stack.Clone(); clone.size = size; return(clone); }
// Constructors public CIndentEngine (CFormattingPolicy policy) { if (policy == null) throw new ArgumentNullException ("policy"); this.policy = policy; stack = new IndentStack (this); linebuf = new StringBuilder (); Reset (); }
// Constructors public CSharpIndentEngine(CSharpFormattingPolicy policy) { if (policy == null) { throw new ArgumentNullException("policy"); } this.policy = policy; stack = new IndentStack(this); linebuf = new StringBuilder(); Reset(); }
public CSharpIndentEngine (CSharpFormattingPolicy policy, TextStylePolicy textPolicy) { if (policy == null) throw new ArgumentNullException ("policy"); if (textPolicy == null) throw new ArgumentNullException ("textPolicy"); this.policy = policy; this.textPolicy = textPolicy; stack = new IndentStack (this); linebuf = new StringBuilder (); Reset (); }
// Constructors public CSharpIndentEngine(PlayScriptFormattingPolicy policy, TextStylePolicy textPolicy) { if (policy == null) { throw new ArgumentNullException("policy"); } if (textPolicy == null) { throw new ArgumentNullException("textPolicy"); } this.policy = policy; this.textPolicy = textPolicy; stack = new IndentStack(this); linebuf = new StringBuilder(); Reset(); }
public object Clone () { IndentStack clone = new IndentStack (engine, stack.Length); clone.stack = (Node[]) stack.Clone (); clone.size = size; return clone; }
// Constructors public FSharpIndentEngine() { stack = new IndentStack (); linebuf = new StringBuilder (); Reset (); }