35 references to DescendantsAndSelf
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2859operationsToAnalyze.AddRange(operationBlock.DescendantsAndSelf());
Operations\ControlFlowGraphBuilder.cs (2)
1878foreach (IFlowCaptureReferenceOperation reference in operation.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>()) 4397foreach (IOperation op in operation.Collection.DescendantsAndSelf())
Microsoft.CodeAnalysis.CodeStyle (3)
BasicBlockExtensions.cs (2)
16foreach (var operation in statement.DescendantsAndSelf()) 24foreach (var operation in basicBlock.BranchValue.DescendantsAndSelf())
OperationExtensions.cs (1)
352foreach (var descendant in operationBlock.DescendantsAndSelf())
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
129foreach (var operation in blockOperation.DescendantsAndSelf())
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
MakeLocalFunctionStaticCodeFixHelper.cs (1)
154foreach (var descendent in localFunctionBodyOperation.DescendantsAndSelf())
NullableHelpers.cs (1)
47var references = operation.DescendantsAndSelf()
UseUtf8StringLiteralCodeFixProvider.cs (1)
121return operation.DescendantsAndSelf()
Microsoft.CodeAnalysis.CSharp.Features (4)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
129foreach (var operation in blockOperation.DescendantsAndSelf())
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
798var returnOperations = methodOperation.DescendantsAndSelf().OfType<IReturnOperation>();
MakeLocalFunctionStaticCodeFixHelper.cs (1)
154foreach (var descendent in localFunctionBodyOperation.DescendantsAndSelf())
UseUtf8StringLiteralCodeFixProvider.cs (1)
121return operation.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.CSharp.Workspaces (1)
NullableHelpers.cs (1)
47var references = operation.DescendantsAndSelf()
Microsoft.CodeAnalysis.Test.Utilities (14)
CommonTestBase.cs (4)
635var originalSet = new HashSet<IOperation>(operation.DescendantsAndSelf()); 636var clonedSet = new HashSet<IOperation>(clonedOperation.DescendantsAndSelf()); 646var set = new HashSet<IOperation>(root.DescendantsAndSelf()); 648foreach (var child in root.DescendantsAndSelf())
Compilation\CompilationExtensions.cs (1)
328foreach (var operation in root.DescendantsAndSelf())
Compilation\ControlFlowGraphVerifier.cs (6)
495foreach (IFlowCaptureReferenceOperation reference in lastOperation.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>()) 732foreach (ITranslatedQueryOperation query in operation.DescendantsAndSelf().OfType<ITranslatedQueryOperation>()) 811foreach (IFlowCaptureReferenceOperation reference in operation.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>()) 1351foreach (IFlowCaptureReferenceOperation reference in operation.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>()) 1359foreach (IFlowCaptureReferenceOperation reference in block.BranchValue.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>()) 1722foreach (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)
1315foreach (var operation in operationBlock.DescendantsAndSelf().OfType<IFieldReferenceOperation>())
Microsoft.CodeAnalysis.Workspaces (3)
BasicBlockExtensions.cs (2)
16foreach (var operation in statement.DescendantsAndSelf()) 24foreach (var operation in basicBlock.BranchValue.DescendantsAndSelf())
OperationExtensions.cs (1)
352foreach (var descendant in operationBlock.DescendantsAndSelf())
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests_IOmittedArgumentOperation.vb (1)
41Dim operationsToAnalyze = methodOperation.DescendantsAndSelf().ToArray()