27 references to Descendants
ILLink.RoslynAnalyzer (1)
DataFlow\UnexpectedOperationHandler.cs (1)
37 foreach (var descendant in operation.Descendants()) {
Microsoft.Analyzers.Extra (7)
AsyncCallInsideUsingBlockAnalyzer.cs (5)
76var invocations = block.Descendants() 155if (block.Descendants() 157.SelectMany(operation => operation.Descendants()) 163if (block.Descendants() 171if (block.Descendants()
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
453foreach (var d in e.Descendants())
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (1)
106var op = invocationOp.Arguments[LogLevelParamIndex].Descendants().SingleOrDefault(x => x.Kind == OperationKind.Literal || x.Kind == OperationKind.FieldReference);
Microsoft.AspNetCore.Analyzers (1)
CompilationFeatureDetector.cs (1)
46.Descendants()
Microsoft.AspNetCore.App.Analyzers (4)
Authorization\AddAuthorizationBuilderAnalyzer.cs (1)
165var usesAuthorizationOptionsSpecificAPIs = configureAction.Descendants()
Http\RequestDelegateReturnTypeAnalyzer.cs (1)
53foreach (var item in anonymousFunction.Body.Descendants())
RouteHandlers\DisallowReturningActionResultFromMapMethods.cs (1)
54foreach (var returnOperation in methodBody.Descendants().OfType<IReturnOperation>())
RouteHandlers\RouteHandlerAnalyzer.cs (1)
82delegateCreation = argument.Descendants().OfType<IDelegateCreationOperation>().FirstOrDefault();
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ActualApiResponseMetadataFactory.cs (1)
295foreach (var returnOperation in method.Descendants().OfType<IReturnOperation>())
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
377foreach (var operation in operationBlock.Descendants())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
45var localFunctionOperation = rootOperation.Descendants()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
190foreach (var operation in cfg.OriginalOperation.Descendants())
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IArgument.cs (1)
4096var conversion = operation.Descendants().OfType<IConversionOperation>().Single();
IOperation\IOperationTests_IFieldReferenceExpression.cs (1)
713var fieldReferenceOperation = methodBlockOperation.Descendants().OfType<IFieldReferenceOperation>().Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\SymbolEqualityTests.cs (1)
964var lambdas = operation.Descendants().OfType<AnonymousFunctionOperation>().
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
377foreach (var operation in operationBlock.Descendants())
ValueTracking\ValueTracker.OperationCollector.cs (1)
47var returnOperations = operation.Descendants().Where(d => d is IReturnOperation && (allowImplicit || !d.IsImplicit));
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\ControlFlowGraphVerifier.cs (1)
1636foreach (var operation in root.Descendants())
Compilation\TestOperationVisitor.cs (1)
588Assert.True(operation.Descendants().All(n => n.IsImplicit), $"Explicit node in default argument value ({operation.Syntax.RawKind}): {operation.Syntax.ToString()}");
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1294_ = getControlFlowGraph(operationBlock.Descendants().First());
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
45var localFunctionOperation = rootOperation.Descendants()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
190foreach (var operation in cfg.OriginalOperation.Descendants())