1 write to _semanticModel
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
32
_semanticModel
= semanticModel;
4 references to _semanticModel
Microsoft.CodeAnalysis.CSharp.Features (4)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (4)
192
var typeInfo =
_semanticModel
.GetTypeInfo(node, _cancellationToken);
197
var conversion =
_semanticModel
.Compilation.ClassifyConversion(typeInfo.Type, typeInfo.ConvertedType);
262
var expressionType =
_semanticModel
.GetSymbolInfo(node.Expression).Symbol.GetSymbolType();
263
var expressionConvertedType =
_semanticModel
.GetTypeInfo(node.Expression).ConvertedType;