1 implementation of IDeclarationPatternOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
8568internal sealed partial class DeclarationPatternOperation : BasePatternOperation, IDeclarationPatternOperation
24 references to IDeclarationPatternOperation
ILLink.RoslynAnalyzer (1)
IOperationExtensions.cs (1)
44 } else if (operation is IDeclarationPatternOperation) {
Microsoft.CodeAnalysis (5)
Generated\OperationKind.Generated.cs (1)
195/// <summary>Indicates an <see cref="IDeclarationPatternOperation"/>.</summary>
Generated\Operations.Generated.cs (3)
11211public override IOperation VisitDeclarationPattern(IDeclarationPatternOperation operation, object? argument) 11504public virtual void VisitDeclarationPattern(IDeclarationPatternOperation operation) => DefaultVisit(operation); 11643public virtual TResult? VisitDeclarationPattern(IDeclarationPatternOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (1)
7629public override IOperation VisitDeclarationPattern(IDeclarationPatternOperation operation, int? captureIdForResult)
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (2)
94IDeclarationPatternOperation declarationPattern => declarationPattern.MatchesNull, 131IDeclarationPatternOperation declarationPattern => declarationPattern.MatchedType,
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
206IDeclarationPatternOperation declarationPattern => declarationPattern.MatchedType,
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
101if (operation is IDeclarationPatternOperation { DeclaredSymbol: ILocalSymbol local })
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
58else if (operation is IDeclarationPatternOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
292public override void VisitDeclarationPattern(IDeclarationPatternOperation operation)
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
2536private IDeclarationPatternOperation CreateBoundDeclarationPatternOperation(BoundDeclarationPattern boundDeclarationPattern)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
853if (isPattern is IDeclarationPatternOperation
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
853if (isPattern is IDeclarationPatternOperation
Microsoft.CodeAnalysis.Features (4)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (2)
94IDeclarationPatternOperation declarationPattern => declarationPattern.MatchesNull, 131IDeclarationPatternOperation declarationPattern => declarationPattern.MatchedType,
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
206IDeclarationPatternOperation declarationPattern => declarationPattern.MatchedType,
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
101if (operation is IDeclarationPatternOperation { DeclaredSymbol: ILocalSymbol local })
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (2)
1996public override void VisitDeclarationPattern(IDeclarationPatternOperation operation) 1998LogString(nameof(IDeclarationPatternOperation));
Compilation\TestOperationVisitor.cs (1)
1411public override void VisitDeclarationPattern(IDeclarationPatternOperation operation)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
58else if (operation is IDeclarationPatternOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
292public override void VisitDeclarationPattern(IDeclarationPatternOperation operation)