Exemple #1
0
        public IndentEngine(IndentEngine prototype)
        {
            this.Document          = prototype.Document;
            this.Options           = prototype.Options;
            this.TextEditorOptions = prototype.TextEditorOptions;

            this.CurrentState          = prototype.CurrentState.Clone();
            this.ConditionalSymbols    = new HashSet <string>(prototype.ConditionalSymbols);
            this.IfDirectiveEvalResult = prototype.IfDirectiveEvalResult;
            this.CurrentIndent         = new StringBuilder(prototype.CurrentIndent.ToString());

            this.offset       = prototype.offset;
            this.line         = prototype.line;
            this.column       = prototype.column;
            this.IsLineStart  = prototype.IsLineStart;
            this.CurrentChar  = prototype.CurrentChar;
            this.PreviousChar = prototype.PreviousChar;
        }
Exemple #2
0
		public IndentEngine(IndentEngine prototype)
		{
			this.Document = prototype.Document;
			this.Options = prototype.Options;
			this.TextEditorOptions = prototype.TextEditorOptions;

			this.CurrentState = prototype.CurrentState.Clone();
			this.ConditionalSymbols = new HashSet<string>(prototype.ConditionalSymbols);
			this.IfDirectiveEvalResult = prototype.IfDirectiveEvalResult;
			this.CurrentIndent = new StringBuilder(prototype.CurrentIndent.ToString());

			this.offset = prototype.offset;
			this.line = prototype.line;
			this.column = prototype.column;
			this.IsLineStart = prototype.IsLineStart;
			this.CurrentChar = prototype.CurrentChar;
			this.PreviousChar = prototype.PreviousChar;
		}