17 references to _semanticModel
Microsoft.CodeAnalysis.CSharp.Features (17)
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (17)
93!_semanticModel.GetDiagnostics(_source.Span, _cancellationToken).Any(static diagnostic => diagnostic.DefaultSeverity == DiagnosticSeverity.Error)) 130_semanticModel, 173_semanticModel, 301if (_semanticModel.GetSymbolInfo(invocationExpression, _cancellationToken).Symbol is IMethodSymbol methodSymbol && 340if (_semanticModel.GetSymbolInfo(invocationExpression, _cancellationToken).Symbol is IMethodSymbol methodSymbol && 371=> Equals(typeSymbol.OriginalDefinition, _semanticModel.Compilation.GetTypeByMetadataName(typeof(List<>).FullName)); 431if (typeCheckMethod(_semanticModel.GetTypeInfo(expressionToVerifyType, _cancellationToken).Type) && 521? _semanticModel.GetTypeInfo(expression, _cancellationToken).ConvertedType.GenerateTypeSyntax() 551var returnTypeInfo = _semanticModel.GetTypeInfo(_source, _cancellationToken); 576_semanticModel, 605var freeToken = _semanticFacts.GenerateUniqueName(_semanticModel, _source, container: null, baseName: prefix, _introducedLocalNames, _cancellationToken); 630_semanticModel, 664var forEachStatementTypeSymbolType = _semanticModel.GetTypeInfo(forEachStatement.Type, _cancellationToken).Type; 665var lastSelectExpressionTypeInfo = _semanticModel.GetTypeInfo(lastSelectExpression, _cancellationToken); 779declaredSymbol = _semanticModel.GetEnclosingSymbol(node.SpanStart, _cancellationToken); 881if (_semanticModel.GetTypeInfo(selectClause.Expression, _cancellationToken).Type.ContainsAnonymousType()) 906=> IsLocalOrParameterSymbol(_semanticModel.GetOperation(expression, _cancellationToken));