1 implementation of Operation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
6506public IOperation Operation { get; }
31 references to Operation
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
312return operation.GetAncestor(OperationKind.ConditionalAccess, (IConditionalAccessOperation c) => c.Operation.Syntax == operation.Syntax);
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
312return operation.GetAncestor(OperationKind.ConditionalAccess, (IConditionalAccessOperation c) => c.Operation.Syntax == operation.Syntax);
Microsoft.Analyzers.Extra (8)
ConditionalAccessAnalyzer.cs (8)
37switch (op.Operation.Kind) 41var propRef = (IPropertyReferenceOperation)op.Operation; 54var fieldRef = (IFieldReferenceOperation)op.Operation; 66var invocation = (IInvocationOperation)op.Operation; 72type = op.Operation.Type; 78type = op.Operation.Type; 98if (op.Operation.Kind == OperationKind.ParameterReference) 100var pr = (IParameterReferenceOperation)op.Operation;
Microsoft.CodeAnalysis (5)
Generated\Operations.Generated.cs (2)
1594/// of <see cref="Operation" /> within <see cref="WhenNotNull" />. 1618/// Operation to be evaluated if <see cref="Operation" /> is non null.
Operations\ControlFlowGraphBuilder.ConditionalAccessOperationTracker.cs (1)
17/// Represents the stack <see cref="IConditionalAccessOperation.Operation"/>s of a tree of conditional accesses. The top of the stack is the
Operations\ControlFlowGraphBuilder.cs (2)
3384testExpression = currentConditionalAccess.Operation; 3452SyntaxNode defaultValueSyntax = (operation.Operation == testExpression ? testExpression : operation).Syntax;
Microsoft.CodeAnalysis.Analyzers (3)
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (1)
204conditionalAccessMembers.Add(conditionalAccess.Operation.Syntax);
MetaAnalyzers\PreferIsKindAnalyzer.cs (1)
82if (conditionalAccess.Operation.Type!.OriginalDefinition.SpecialType == SpecialType.System_Nullable_T)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
312return operation.GetAncestor(OperationKind.ConditionalAccess, (IConditionalAccessOperation c) => c.Operation.Syntax == operation.Syntax);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
312return operation.GetAncestor(OperationKind.ConditionalAccess, (IConditionalAccessOperation c) => c.Operation.Syntax == operation.Syntax);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (1)
163instance = conditionalAccess?.Operation;
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
312return operation.GetAncestor(OperationKind.ConditionalAccess, (IConditionalAccessOperation c) => c.Operation.Syntax == operation.Syntax);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
117conditionalAccess.Operation.Syntax,
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
117conditionalAccess.Operation.Syntax,
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
312return operation.GetAncestor(OperationKind.ConditionalAccess, (IConditionalAccessOperation c) => c.Operation.Syntax == operation.Syntax);
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\OperationTreeVerifier.cs (2)
1146Visit(operation.Operation, header: nameof(operation.Operation));
Compilation\TestOperationVisitor.cs (1)
730AssertEx.Equal(new[] { operation.Operation, operation.WhenNotNull }, operation.ChildOperations);
Diagnostics\OperationTestAnalyzer.cs (1)
1846if (conditionalAccess.WhenNotNull != null && conditionalAccess.Operation != null)
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
312return operation.GetAncestor(OperationKind.ConditionalAccess, (IConditionalAccessOperation c) => c.Operation.Syntax == operation.Syntax);
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
312return operation.GetAncestor(OperationKind.ConditionalAccess, (IConditionalAccessOperation c) => c.Operation.Syntax == operation.Syntax);
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
312return operation.GetAncestor(OperationKind.ConditionalAccess, (IConditionalAccessOperation c) => c.Operation.Syntax == operation.Syntax);