public void ProcessAfterInterior()

in Backend/RiderPlugin/ForTea.RiderPlugin/Features/Folding/T4CodeFoldingProcessor.cs [59:69]


    public void ProcessAfterInterior(ITreeNode element, FoldingHighlightingConsumer context)
    {
      if (element.NextSibling != null) return;
      if (!(element is IT4TreeNode t4Element)) return;
      if (!t4Element.IsVisibleInDocument()) return;
      if (DirectiveFoldingStart == null || DirectiveFoldingEnd == null) return;
      var range = new DocumentRange(DirectiveFoldingStart.Value, DirectiveFoldingEnd.Value);
      context.AddDefaultPriorityFolding(T4CodeFoldingAttributes.Directive, range, "<#@ ... #>");
      DirectiveFoldingStart = null;
      DirectiveFoldingEnd = null;
    }