public object Clone()
            {
                IndentStack clone = new IndentStack(engine, stack.Length);

                clone.stack = (Node[])stack.Clone();
                clone.size  = size;

                return(clone);
            }
示例#2
0
		// Constructors
		public CIndentEngine (CFormattingPolicy policy)
		{
			if (policy == null)
				throw new ArgumentNullException ("policy");
			this.policy = policy;
			stack = new IndentStack (this);
			linebuf = new StringBuilder ();
			Reset ();
		}
示例#3
0
 // Constructors
 public CSharpIndentEngine(CSharpFormattingPolicy policy)
 {
     if (policy == null)
     {
         throw new ArgumentNullException("policy");
     }
     this.policy = policy;
     stack       = new IndentStack(this);
     linebuf     = new StringBuilder();
     Reset();
 }
示例#4
0
		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 ();
 }