public static Action ProcessDataContext()

in Backend/Core/ForTea.Core/Services/T4BraceHighlighter.cs [17:56]


    public static Action ProcessDataContext(
      Lifetime lifetime,
      [NotNull, ContextKey(typeof(ContextHighlighterPsiFileView.ContextKey))]
      IPsiDocumentRangeView psiDocumentRangeView,
      [NotNull] InvisibleBraceHintManager invisibleBraceHintManager,
      [NotNull] MatchingBraceSuggester matchingBraceSuggester,
      [NotNull] MatchingBraceConsumerFactory consumerFactory,
      [NotNull] HighlightingProlongedLifetime prolongedLifetime
    ) => new T4BraceHighlighter().ProcessDataContextImpl(
      lifetime,
      prolongedLifetime,
      psiDocumentRangeView,
      invisibleBraceHintManager,
      matchingBraceSuggester,
      consumerFactory
    );

    protected override void CollectHighlightings(IPsiView psiView, MatchingHighlightingsConsumer consumer)
    {
      TryConsumeHighlighting<IT4Block>(
        psiView,
        consumer,
        block => block.GetFirstTokenIn(),
        block => block.GetLastTokenIn());
      TryConsumeHighlighting<IT4Macro>(
        psiView,
        consumer,
        macro => macro.LeftParenthesis,
        macro => macro.RightParenthesis);
      TryConsumeHighlighting<IT4EnvironmentVariable>(
        psiView,
        consumer,
        variable => variable.StartPercent,
        variable => variable.EndPercent);
      TryConsumeHighlighting<IT4DirectiveAttribute>(
        psiView,
        consumer,
        attribute => attribute.OpeningQuote,
        attribute => attribute.ClosingQuote);
    }