コード例 #1
0
		CSharpIndentEngine (CSharpIndentEngine prototype)
		{
			this.document = prototype.document;
			this.options = prototype.options;
			this.textEditorOptions = prototype.textEditorOptions;
			this.indent = prototype.indent.Clone();
			this.thisLineindent = prototype.thisLineindent.Clone();
			this.offset = prototype.offset;
			this.inside = prototype.inside;
			this.IsLineStart = prototype.IsLineStart;
			this.pc = prototype.pc;
			this.parenStack = new Stack<TextLocation>(prototype.parenStack.Reverse ());
			this.currentBody = prototype.currentBody;
			this.nextBody = prototype.nextBody;
			this.addContinuation = prototype.addContinuation;
			this.line = prototype.line;
			this.col = prototype.col;
			this.popNextParenBlock = prototype.popNextParenBlock;
		}
コード例 #2
0
 CSharpIndentEngine(CSharpIndentEngine prototype)
 {
     this.document          = prototype.document;
     this.options           = prototype.options;
     this.textEditorOptions = prototype.textEditorOptions;
     this.indent            = prototype.indent.Clone();
     this.thisLineindent    = prototype.thisLineindent.Clone();
     this.offset            = prototype.offset;
     this.inside            = prototype.inside;
     this.IsLineStart       = prototype.IsLineStart;
     this.pc                = prototype.pc;
     this.parenStack        = new Stack <TextLocation>(prototype.parenStack.Reverse());
     this.currentBody       = prototype.currentBody;
     this.nextBody          = prototype.nextBody;
     this.addContinuation   = prototype.addContinuation;
     this.line              = prototype.line;
     this.col               = prototype.col;
     this.popNextParenBlock = prototype.popNextParenBlock;
 }