MonoDevelop.Refactoring.InsertionPointService.CheckEndPoint C# (CSharp) Method

CheckEndPoint() static private method

static private CheckEndPoint ( IReadonlyTextDocument doc, MonoDevelop.Ide.Editor.InsertionPoint point, bool isStartPoint ) : void
doc IReadonlyTextDocument
point MonoDevelop.Ide.Editor.InsertionPoint
isStartPoint bool
return void
		static void CheckEndPoint (IReadonlyTextDocument doc, InsertionPoint point, bool isStartPoint)
		{
			var line = doc.GetLine (point.Location.Line);
			if (line == null)
				return;

			if (doc.GetLineIndent (line).Length + 1 < point.Location.Column)
				point.LineBefore = NewLineInsertion.BlankLine;
			if (point.Location.Column < line.Length + 1)
				point.LineAfter = NewLineInsertion.Eol;
		}