Welcome to mirror list, hosted at ThFree Co, Russian Federation.

WhenKeywordRecommender.cs « KeywordRecommender « Completion « MonoDevelop.CSharp.Features « CSharpBinding « addins « src « main - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bccfe04c80e617d58052c851fad82705482f7073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.
//
//using System.Threading;
//using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery;
//using Microsoft.CodeAnalysis.CSharp;
//
//namespace ICSharpCode.NRefactory6.CSharp.Completion.KeywordRecommenders
//{
//    internal class WhenKeywordRecommender : AbstractSyntacticSingleKeywordRecommender
//    {
//        public WhenKeywordRecommender()
//			: base(SyntaxKind.WhenKeyword, isValidInPreprocessorContext: true)
//        {
//        }
//
//        protected override bool IsValidContext(int position, CSharpSyntaxContext context, CancellationToken cancellationToken)
//        {
//            return context.IsCatchFilterContext;
//        }
//    }
//}