Exemplo n.º 1
0
 public static Action ProcessDataContext(
     Lifetime lifetime,
     [ContextKey(typeof(CSharpContextActionDataProvider.ContextKey))] IContextActionDataProvider dataProvider,
     InvisibleBraceHintManager invisibleBraceHintManager,
     MatchingBraceSuggester matchingBraceSuggester)
 {
     return(new MatchingBraceContextHighlighter(dataProvider).ProcessDataContextImpl(lifetime, dataProvider, invisibleBraceHintManager, matchingBraceSuggester));
 }
 public static Action ProcessDataContext(
     Lifetime lifetime,
     [ContextKey(typeof(CSharpContextActionDataProvider.ContextKey))] IContextActionDataProvider dataProvider,
     InvisibleBraceHintManager invisibleBraceHintManager,
     MatchingBraceSuggester matchingBraceSuggester)
 {
     return new MatchingBraceContextHighlighter(dataProvider).ProcessDataContextImpl(lifetime, dataProvider, invisibleBraceHintManager, matchingBraceSuggester);
 }
        public static Action ProcessDataContext(
            Lifetime lifetime,
            [NotNull, ContextKey(typeof(ContextHighlighterPsiFileView.ContextKey))]
            IPsiDocumentRangeView psiDocumentRangeView,
            [NotNull] InvisibleBraceHintManager invisibleBraceHintManager,
            [NotNull] MatchingBraceSuggester matchingBraceSuggester,
            [NotNull] HighlightingProlongedLifetime prolongedLifetime)
        {
            var highlighter = new FSharpTypeParametersMatchingBracesContextHighlighter();

            return(highlighter.ProcessDataContextImpl(
                       lifetime, prolongedLifetime, psiDocumentRangeView, invisibleBraceHintManager, matchingBraceSuggester));
        }
Exemplo n.º 4
0
        public static Action ProcessDataContext(
            [NotNull] Lifetime lifetime,
            [NotNull, ContextKey(typeof(ContextHighlighterPsiFileView.ContextKey))]
            IPsiDocumentRangeView psiDocumentRangeView,
            [NotNull] InvisibleBraceHintManager invisibleBraceHintManager,
            [NotNull] MatchingBraceSuggester matchingBraceSuggester,
            [NotNull] MatchingBraceConsumerFactory consumerFactory,
            [NotNull] HighlightingProlongedLifetime prolongedLifetime)
        {
            var highlighter = new ShaderLabMatchingBraceContextHighlighter();

            return(highlighter.ProcessDataContextImpl(lifetime, prolongedLifetime, psiDocumentRangeView,
                                                      invisibleBraceHintManager, matchingBraceSuggester, consumerFactory));
        }