void AddFoldIfEndElementOnDifferentLineToStartElement(HtmlElementFold fold) { if (razorHtmlReader.Line > fold.Line) { folds.Add(fold); } }
void SaveFoldStartOnStack() { var fold = new HtmlElementFold() { ElementName = razorHtmlReader.Value, StartOffset = razorHtmlReader.Offset, Line = razorHtmlReader.Line }; foldStack.Push(fold); }