AvalonStudio.TextEditor.Document.TextAnchorTree.FindActualBeginNode C# (CSharp) Method

FindActualBeginNode() private method

private FindActualBeginNode ( TextAnchorNode node ) : TextAnchorNode
node TextAnchorNode
return TextAnchorNode
		private TextAnchorNode FindActualBeginNode(TextAnchorNode node)
		{
			// now find the actual beginNode
			while (node != null && node.length == 0)
				node = node.Predecessor;
			if (node == null)
			{
				// no predecessor = beginNode is first node in tree
				node = root.LeftMost;
			}
			return node;
		}