1 write to CancellationToken
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionContext.cs (1)
154CancellationToken = cancellationToken;
62 references to CancellationToken
Microsoft.AspNetCore.App.Analyzers (13)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (9)
96var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 124var semanticModel = await context.Document.GetSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 134if (!IsCurrentParameterBindable(token, semanticModel, wellKnownTypes, context.CancellationToken)) 141var hasNonRouteAttribute = HasNonRouteAttribute(token, semanticModel, wellKnownTypes, context.CancellationToken); 152var mapMethodParts = RouteUsageDetector.FindMapMethodParts(semanticModel, wellKnownTypes, container, context.CancellationToken); 196var methodSymbol = semanticModel.GetDeclaredSymbol(methodSyntax, context.CancellationToken); 232var routeUsage = routeUsageCache.Get(routeStringToken, context.CancellationToken); 306context.CancellationToken, 502CancellationToken = _context.CancellationToken;
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (4)
95var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 108var semanticModel = await context.Document.GetSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 115var routeUsage = routeUsageCache.Get(stringToken, context.CancellationToken); 353CancellationToken = _context.CancellationToken;
Microsoft.AspNetCore.App.CodeFixes (2)
Dependencies\ExtensionMethodsCompletionProvider.cs (2)
34var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 47var semanticModel = await context.Document.GetSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (18)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (5)
57var cancellationToken = context.CancellationToken; 157var attributeNamedParameters = GetAttributeNamedParameters(semanticModel, context.Position, attributeSyntax, context.CancellationToken); 160var rightToken = semanticModel.SyntaxTree.FindTokenOnRightOfPosition(context.Position, context.CancellationToken); 179var parameterLists = GetParameterLists(semanticModel, context.Position, attributeSyntax, context.CancellationToken); 182var rightToken = semanticModel.SyntaxTree.FindTokenOnRightOfPosition(context.Position, context.CancellationToken);
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
65var cancellationToken = context.CancellationToken;
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
46var cancellationToken = completionContext.CancellationToken;
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
67var cancellationToken = context.CancellationToken;
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
45var cancellationToken = context.CancellationToken;
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
45var cancellationToken = context.CancellationToken;
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
49var cancellationToken = context.CancellationToken;
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
59var cancellationToken = context.CancellationToken;
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (1)
99var cancellationToken = context.CancellationToken;
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (1)
71builder.Add(KeyValuePairUtil.Create(DocumentationCommentXmlName, conversion.GetDocumentationCommentXml(cancellationToken: context.CancellationToken) ?? ""));
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
46var cancellationToken = context.CancellationToken;
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
78var cancellationToken = context.CancellationToken;
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
45var cancellationToken = context.CancellationToken;
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
45var cancellationToken = completionContext.CancellationToken;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
116context.CompletionListSpan = await GetTextChangeSpanAsync(context.Document, context.CompletionListSpan, context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Interactive\AbstractInteractiveWindowCommandCompletionProvider.cs (1)
25var cancellationToken = context.CancellationToken;
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
IntelliSense\MockCompletionProvider.vb (1)
32Dim items = _getItems(context.Document, context.Position, context.CancellationToken)
Microsoft.CodeAnalysis.Features (22)
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
86var cancellationToken = context.CancellationToken;
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
83context.Document, context.Position, context.Trigger, context.CancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (4)
59var cancellationToken = context.CancellationToken; 71if (await CheckTypeInfoOfAttributeAsync(context.Document, attributeSyntaxNode, context.CancellationToken).ConfigureAwait(false)) 202if (await CheckTypeInfoOfAttributeAsync(document, attribute, completionContext.CancellationToken).ConfigureAwait(false)) 212var assemblyName = await GetAssemblyNameFromInternalsVisibleToAttributeAsync(document, attribute, completionContext.CancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractKeywordCompletionProvider.cs (1)
33var cancellationToken = context.CancellationToken;
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
28var cancellationToken = context.CancellationToken;
Completion\Providers\AbstractOverrideCompletionProvider.cs (1)
24var state = await ItemGetter.CreateAsync(this, context.Document, context.Position, context.CancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractPartialMethodCompletionProvider.cs (1)
44var cancellationToken = context.CancellationToken;
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
33var cancellationToken = completionContext.CancellationToken;
Completion\Providers\AbstractPreprocessorCompletionProvider.cs (1)
19var cancellationToken = context.CancellationToken;
Completion\Providers\AbstractSuggestionModeCompletionProvider.cs (1)
19context.Document, context.Position, context.CompletionListSpan, context.Trigger, context.CancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
263var cancellationToken = completionContext.CancellationToken;
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (1)
46var cancellationToken = completionContext.CancellationToken;
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (1)
37var cancellationToken = context.CancellationToken;
Completion\Providers\Scripting\AbstractLoadDirectiveCompletionProvider.cs (1)
42context.AddItems(await helper.GetItemsAsync(pathThroughLastSlash, context.CancellationToken).ConfigureAwait(false));
Completion\Providers\Scripting\AbstractReferenceDirectiveCompletionProvider.cs (2)
63context.AddItems(await gacHelper.GetItemsAsync(pathThroughLastSlash, context.CancellationToken).ConfigureAwait(false)); 70context.AddItems(await helper.GetItemsAsync(pathThroughLastSlash, context.CancellationToken).ConfigureAwait(false));
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
74var cancellationToken = context.CancellationToken;
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
74var cancellationToken = context.CancellationToken;
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
75context.Document, position, context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer (1)
Services\StarredCompletions\StarredCompletionProvider.cs (1)
22var provider = await StarredCompletionAssemblyHelper.GetCompletionProviderAsync(context.CancellationToken);
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
60Dim cancellationToken = context.CancellationToken
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
48Dim cancellationToken = context.CancellationToken
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetCompletionProvider.vb (1)
49Dim cancellationToken = context.CancellationToken