35 references to DescendantsAndSelf
ILLink.RoslynAnalyzer (2)
DataFlow\BasicBlockExtensions.cs (2)
15 foreach (var operation in statement.DescendantsAndSelf ()) { 21 foreach (var operation in basicBlock.BranchValue.DescendantsAndSelf ()) {
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2983operationsToAnalyze.AddRange(operationBlock.DescendantsAndSelf());
Operations\ControlFlowGraphBuilder.cs (2)
1884foreach (IFlowCaptureReferenceOperation reference in operation.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>()) 4478foreach (IOperation op in operation.Collection.DescendantsAndSelf())
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (2)
98foreach (var operation in condition.DescendantsAndSelf()) 123foreach (var operation in target.DescendantsAndSelf())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\BasicBlockExtensions.cs (2)
16foreach (var operation in statement.DescendantsAndSelf()) 24foreach (var operation in basicBlock.BranchValue.DescendantsAndSelf())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
358foreach (var descendant in operationBlock.DescendantsAndSelf())
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
223foreach (var operation in blockOperation.DescendantsAndSelf())
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
506foreach (var operation in rightOperation.DescendantsAndSelf())
Microsoft.CodeAnalysis.CSharp.Features (3)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
791var returnOperations = methodOperation.DescendantsAndSelf().OfType<IReturnOperation>();
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
223foreach (var operation in blockOperation.DescendantsAndSelf())
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
506foreach (var operation in rightOperation.DescendantsAndSelf())
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (2)
877return graph.Blocks.SelectMany(b => b.Operations.SelectMany(o => o.DescendantsAndSelf())).OfType<IFlowAnonymousFunctionOperation>().Single(); 933return graph.Blocks.SelectMany(b => b.Operations.SelectMany(o => o.DescendantsAndSelf())).OfType<IFlowAnonymousFunctionOperation>().ElementAt(index);
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (2)
98foreach (var operation in condition.DescendantsAndSelf()) 123foreach (var operation in target.DescendantsAndSelf())
Microsoft.CodeAnalysis.Test.Utilities (13)
CommonTestBase.cs (4)
670var originalSet = new HashSet<IOperation>(operation.DescendantsAndSelf()); 671var clonedSet = new HashSet<IOperation>(clonedOperation.DescendantsAndSelf()); 681var set = new HashSet<IOperation>(root.DescendantsAndSelf()); 683foreach (var child in root.DescendantsAndSelf())
Compilation\ControlFlowGraphVerifier.cs (6)
495foreach (IFlowCaptureReferenceOperation reference in lastOperation.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>()) 694foreach (ITranslatedQueryOperation query in operation.DescendantsAndSelf().OfType<ITranslatedQueryOperation>()) 773foreach (IFlowCaptureReferenceOperation reference in operation.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>()) 1326foreach (IFlowCaptureReferenceOperation reference in operation.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>()) 1334foreach (IFlowCaptureReferenceOperation reference in block.BranchValue.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>()) 1697foreach (IOperation node in operation.DescendantsAndSelf())
Compilation\OperationTreeVerifier.cs (1)
55foreach (var op in operation.DescendantsAndSelf())
Compilation\TestOperationVisitor.cs (1)
194foreach (IOperation descendant in root.DescendantsAndSelf())
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1425foreach (var operation in operationBlock.DescendantsAndSelf().OfType<IFieldReferenceOperation>())
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\BasicBlockExtensions.cs (2)
16foreach (var operation in statement.DescendantsAndSelf()) 24foreach (var operation in basicBlock.BranchValue.DescendantsAndSelf())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
358foreach (var descendant in operationBlock.DescendantsAndSelf())