1 write to CancellationToken
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeMetricsAnalysisContext.cs (1)
24
CancellationToken
= cancellationToken;
12 references to CancellationToken
Metrics.Legacy (12)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (3)
258
if (context.
CancellationToken
.IsCancellationRequested)
260
return Task.FromCanceled<CodeAnalysisMetricData>(context.
CancellationToken
);
303
context.
CancellationToken
.ThrowIfCancellationRequested();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (9)
77
if (!Equals(model.GetDeclaredSymbol(declSyntax, context.
CancellationToken
), symbol))
83
FileLinePositionSpan linePosition = declSyntax.SyntaxTree.GetLineSpan(declSyntax.FullSpan, context.
CancellationToken
);
181
var declSyntax = declaration.GetSyntax(context.
CancellationToken
);
185
while (declSyntax.Parent != null && Equals(model.GetDeclaredSymbol(declSyntax.Parent, context.
CancellationToken
), declaredSymbol))
218
var parameterSyntax = parameterSyntaxRef.GetSyntax(context.
CancellationToken
);
234
var attributeSyntax = attribute.ApplicationSyntaxReference.GetSyntax(context.
CancellationToken
);
249
var declaredSymbol = model.GetDeclaredSymbol(node, context.
CancellationToken
);
257
var typeInfo = model.GetTypeInfo(node, context.
CancellationToken
);
260
var operationBlock = model.GetOperation(node, context.
CancellationToken
);