6 references to GetRequiredParent
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
517expression = (TExpression)expression.GetRequiredParent();
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
226var memberAccess = instance.GetRequiredParent();
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (1)
64var containingBlockOrCompilationUnit = initialStatement.GetRequiredParent();
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (3)
274var containingOperation = semanticModel.GetOperation(throwStatement.GetRequiredParent(), cancellationToken); 287containingOperation = semanticModel.GetOperation(throwStatement.GetRequiredParent().GetRequiredParent(), cancellationToken);