1 write to CancellationToken
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeMetricsAnalysisContext.cs (1)
22CancellationToken = cancellationToken;
12 references to CancellationToken
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (12)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (3)
256if (context.CancellationToken.IsCancellationRequested) 258return Task.FromCanceled<CodeAnalysisMetricData>(context.CancellationToken); 301context.CancellationToken.ThrowIfCancellationRequested();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (9)
75if (!Equals(model.GetDeclaredSymbol(declSyntax, context.CancellationToken), symbol)) 81FileLinePositionSpan linePosition = declSyntax.SyntaxTree.GetLineSpan(declSyntax.FullSpan, context.CancellationToken); 179var declSyntax = declaration.GetSyntax(context.CancellationToken); 183while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.CancellationToken), declaredSymbol)) 216var parameterSyntax = parameterSyntaxRef.GetSyntax(context.CancellationToken); 232var attributeSyntax = attribute.ApplicationSyntaxReference.GetSyntax(context.CancellationToken); 247var declaredSymbol = model.GetDeclaredSymbol(node, context.CancellationToken); 255var typeInfo = model.GetTypeInfo(node, context.CancellationToken); 258var operationBlock = model.GetOperation(node, context.CancellationToken);