1 write to _semanticModel
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\CSharpSimplificationService.Expander.cs (1)
59
_semanticModel
= semanticModel;
19 references to _semanticModel
Microsoft.CodeAnalysis.CSharp.Workspaces (19)
Simplification\CSharpSimplificationService.Expander.cs (19)
82
var objectCreationType =
_semanticModel
.GetTypeInfo(objectCreationExpression).Type;
93
=> new(expression, newExpression,
_semanticModel
, _cancellationToken);
120
var returnType = (
_semanticModel
.GetSymbolInfo(lambdaExpression).Symbol as IMethodSymbol)?.ReturnType;
142
var returnType = (
_semanticModel
.GetSymbolInfo(parentLambda).Symbol as IMethodSymbol)?.ReturnType;
178
.Select(p =>
_semanticModel
.GetDeclaredSymbol(p, _cancellationToken))
223
var parameterSymbol =
_semanticModel
.GetDeclaredSymbol(node.Parameter);
271
var argumentType =
_semanticModel
.GetTypeInfo(node.Expression).ConvertedType;
457
var aliasInfo =
_semanticModel
.GetAliasInfo(originalSimpleName, _cancellationToken);
470
if (typeOfExpression != null && IsTypeOfUnboundGenericType(
_semanticModel
, typeOfExpression))
548
var symbol =
_semanticModel
.GetSymbolInfo(originalSimpleName.Identifier).Symbol;
579
if (IsInvocationWithDynamicArguments(originalSimpleName,
_semanticModel
))
673
_semanticModel
.SyntaxTree.IsNameOfContext(originalSimpleName.SpanStart,
_semanticModel
, _cancellationToken))
691
if (!Equals(
_semanticModel
.GetEnclosingNamedType(originalSimpleName.SpanStart, _cancellationToken), symbol.ContainingType))
776
var symbol =
_semanticModel
.GetSymbolInfo(typeArgument).Symbol;
1045
if (
_semanticModel
.GetSymbolInfo(originalNode).Symbol.IsLocalFunction())
1053
var targetSymbol = SimplificationHelpers.GetOriginalSymbolInfo(
_semanticModel
, memberAccess.Name);
1081
var binding =
_semanticModel
.GetSpeculativeSymbolInfo(originalNode.SpanStart, expression, SpeculativeBindingOption.BindAsExpression);
1103
var newContainingType =
_semanticModel
.GetSpeculativeSymbolInfo(speculationPosition, containingTypeSyntax, SpeculativeBindingOption.BindAsExpression).Symbol;