39 references to CancellationToken
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
35var diagnostics = semanticModel.GetSyntaxDiagnostics(cancellationToken: context.CancellationToken);
Microsoft.CodeAnalysis.CodeStyle (6)
AbstractAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
39ProcessCompilationUnit(context, option, (TCompilationUnitSyntax)context.Tree.GetRoot(context.CancellationToken));
AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
45var cancellationToken = context.CancellationToken;
AbstractFileHeaderDiagnosticAnalyzer.cs (1)
44var root = tree.GetRoot(context.CancellationToken);
AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
41var cancellationToken = context.CancellationToken;
AbstractOrderModifiersDiagnosticAnalyzer.cs (1)
49var root = context.Tree.GetRoot(context.CancellationToken);
FormattingAnalyzerHelper.cs (1)
21var cancellationToken = context.CancellationToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (2)
39Recurse(context, option.Notification.Severity, context.Tree.GetRoot(context.CancellationToken)); 44context.CancellationToken.ThrowIfCancellationRequested();
ConditionalExpressionPlacementDiagnosticAnalyzer.cs (2)
40Recurse(context, option.Notification.Severity, context.Tree.GetRoot(context.CancellationToken)); 45context.CancellationToken.ThrowIfCancellationRequested();
ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
47var cancellationToken = context.CancellationToken;
ConstructorInitializerPlacementDiagnosticAnalyzer.cs (3)
41Recurse(context, option.Notification.Severity, context.Tree.GetRoot(context.CancellationToken)); 46context.CancellationToken.ThrowIfCancellationRequested(); 65var sourceText = context.Tree.GetText(context.CancellationToken);
CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (2)
49var root = context.Tree.GetCompilationUnitRoot(context.CancellationToken); 50var initialState = context.Tree.IsGeneratedCode(context.Options, CSharpSyntaxFacts.Instance, context.CancellationToken)
EmbeddedStatementPlacementDiagnosticAnalyzer.cs (2)
40Recurse(context, option.Notification.Severity, context.Tree.GetRoot(context.CancellationToken)); 45context.CancellationToken.ThrowIfCancellationRequested();
Microsoft.CodeAnalysis.CSharp.Features (12)
ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (2)
39Recurse(context, option.Notification.Severity, context.Tree.GetRoot(context.CancellationToken)); 44context.CancellationToken.ThrowIfCancellationRequested();
ConditionalExpressionPlacementDiagnosticAnalyzer.cs (2)
40Recurse(context, option.Notification.Severity, context.Tree.GetRoot(context.CancellationToken)); 45context.CancellationToken.ThrowIfCancellationRequested();
ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
47var cancellationToken = context.CancellationToken;
ConstructorInitializerPlacementDiagnosticAnalyzer.cs (3)
41Recurse(context, option.Notification.Severity, context.Tree.GetRoot(context.CancellationToken)); 46context.CancellationToken.ThrowIfCancellationRequested(); 65var sourceText = context.Tree.GetText(context.CancellationToken);
CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (2)
49var root = context.Tree.GetCompilationUnitRoot(context.CancellationToken); 50var initialState = context.Tree.IsGeneratedCode(context.Options, CSharpSyntaxFacts.Instance, context.CancellationToken)
EmbeddedStatementPlacementDiagnosticAnalyzer.cs (2)
40Recurse(context, option.Notification.Severity, context.Tree.GetRoot(context.CancellationToken)); 45context.CancellationToken.ThrowIfCancellationRequested();
Microsoft.CodeAnalysis.Features (6)
AbstractAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
39ProcessCompilationUnit(context, option, (TCompilationUnitSyntax)context.Tree.GetRoot(context.CancellationToken));
AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
45var cancellationToken = context.CancellationToken;
AbstractFileHeaderDiagnosticAnalyzer.cs (1)
44var root = tree.GetRoot(context.CancellationToken);
AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
41var cancellationToken = context.CancellationToken;
AbstractOrderModifiersDiagnosticAnalyzer.cs (1)
49var root = context.Tree.GetRoot(context.CancellationToken);
FormattingAnalyzerHelper.cs (1)
21var cancellationToken = context.CancellationToken;
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
2520context.CancellationToken.ThrowIfCancellationRequested(); 2608context.RegisterSyntaxTreeAction(syntaxContext => HandleCallback(syntaxContext.Tree.GetRoot().GetLocation(), context.Compilation, syntaxContext.ReportDiagnostic, syntaxContext.CancellationToken));