1 implementation of Value
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4122public IOperation Value { get; }
19 references to Value
Microsoft.CodeAnalysis (4)
Operations\ControlFlowGraphBuilder.cs (4)
5467IOperation switchValue = VisitAndCapture(operation.Value); 5553bool leftIsNullable = ITypeSymbolHelpers.IsNullableType(operation.Value.Type); 5574Debug.Assert(operation.Value.Type != null); 5575rightOperand = MakeNullable(rightOperand, operation.Value.Type);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (2)
24=> operation.Value; 27=> operation.Value.Type is null;
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (2)
57var switchExpression = switchStatement.Value; 185var type = operation.Value.Type;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
60=> switchOperation.Value.Type ?? throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.Features (5)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (2)
24=> operation.Value; 27=> operation.Value.Type is null;
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (2)
57var switchExpression = switchStatement.Value; 185var type = operation.Value.Type;
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
60=> switchOperation.Value.Type ?? throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (1)
523Visit(operation.Value, header: "Switch expression");
Compilation\TestOperationVisitor.cs (1)
165AssertEx.Equal(new[] { operation.Value }.Concat(operation.Cases), operation.ChildOperations);
Diagnostics\OperationTestAnalyzer.cs (3)
453Report(operationContext, switchOperation.Value.Syntax, SparseSwitchDescriptor); 457Report(operationContext, switchOperation.Value.Syntax, NoDefaultSwitchDescriptor); 461Report(operationContext, switchOperation.Value.Syntax, OnlyDefaultSwitchDescriptor);