8 references to SemanticModel
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (2)
223var type = this.SemanticModel.GetTypeInfo(_objectCreationExpression, cancellationToken).Type; 227var addMethods = this.SemanticModel.LookupSymbols(
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (2)
119var leftSymbol = this.SemanticModel.GetSymbolInfo(leftMemberAccess, cancellationToken).GetAnySymbol(); 126var type = this.SemanticModel.GetTypeInfo(_objectCreationExpression, cancellationToken).Type;
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (4)
98if (this.SemanticModel.GetSymbolInfo(_objectCreationExpression, cancellationToken).Symbol is not IMethodSymbol 130if (this.SemanticModel.GetSymbolInfo(_objectCreationExpression, cancellationToken).Symbol is not IMethodSymbol 220var constant = this.SemanticModel.GetConstantValue(piece, cancellationToken); 276var compilation = this.SemanticModel.Compilation;