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)
82var objectCreationType = _semanticModel.GetTypeInfo(objectCreationExpression).Type; 93=> new(expression, newExpression, _semanticModel, _cancellationToken); 120var returnType = (_semanticModel.GetSymbolInfo(lambdaExpression).Symbol as IMethodSymbol)?.ReturnType; 142var returnType = (_semanticModel.GetSymbolInfo(parentLambda).Symbol as IMethodSymbol)?.ReturnType; 178.Select(p => _semanticModel.GetDeclaredSymbol(p, _cancellationToken)) 223var parameterSymbol = _semanticModel.GetDeclaredSymbol(node.Parameter); 271var argumentType = _semanticModel.GetTypeInfo(node.Expression).ConvertedType; 457var aliasInfo = _semanticModel.GetAliasInfo(originalSimpleName, _cancellationToken); 470if (typeOfExpression != null && IsTypeOfUnboundGenericType(_semanticModel, typeOfExpression)) 548var symbol = _semanticModel.GetSymbolInfo(originalSimpleName.Identifier).Symbol; 579if (IsInvocationWithDynamicArguments(originalSimpleName, _semanticModel)) 673_semanticModel.SyntaxTree.IsNameOfContext(originalSimpleName.SpanStart, _semanticModel, _cancellationToken)) 691if (!Equals(_semanticModel.GetEnclosingNamedType(originalSimpleName.SpanStart, _cancellationToken), symbol.ContainingType)) 776var symbol = _semanticModel.GetSymbolInfo(typeArgument).Symbol; 1045if (_semanticModel.GetSymbolInfo(originalNode).Symbol.IsLocalFunction()) 1053var targetSymbol = SimplificationHelpers.GetOriginalSymbolInfo(_semanticModel, memberAccess.Name); 1081var binding = _semanticModel.GetSpeculativeSymbolInfo(originalNode.SpanStart, expression, SpeculativeBindingOption.BindAsExpression); 1103var newContainingType = _semanticModel.GetSpeculativeSymbolInfo(speculationPosition, containingTypeSyntax, SpeculativeBindingOption.BindAsExpression).Symbol;