13 references to GetBestTypeByMetadataName
Microsoft.CodeAnalysis.CSharp.Features (7)
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
37var programType = compilation.GetBestTypeByMetadataName(WellKnownMemberNames.TopLevelStatementsEntryPointTypeName);
ConvertProgramAnalysis_ProgramMain.cs (1)
39var programType = compilation.GetBestTypeByMetadataName(WellKnownMemberNames.TopLevelStatementsEntryPointTypeName);
ConvertToRecordHelpers.cs (1)
70var equatable = compilation.GetBestTypeByMetadataName("System.IEquatable`1")?.Construct(containingType);
CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
45var indexType = compilation.GetBestTypeByMetadataName(typeof(Index).FullName!);
CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
57var rangeType = compilation.GetBestTypeByMetadataName(typeof(Range).FullName!);
UseUtf8StringLiteralCodeFixProvider.cs (1)
51var readOnlySpanType = semanticModel.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
52if (context.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!) is null)
Microsoft.CodeAnalysis.Features (5)
AbstractForEachCastCodeFixProvider.cs (1)
67var enumerableType = semanticModel.Compilation.GetBestTypeByMetadataName(typeof(Enumerable).FullName!);
AbstractForEachCastDiagnosticAnalyzer.cs (1)
127semanticModel.Compilation.GetBestTypeByMetadataName(typeof(Enumerable).FullName!) != null;
HashCodeAnalyzer.cs (2)
41var equalityComparerType = compilation.GetBestTypeByMetadataName(typeof(EqualityComparer<>).FullName!); 46var systemHashCodeType = compilation.GetBestTypeByMetadataName("System.HashCode");
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
142var symbol = compilation.GetBestTypeByMetadataName(typeof(Console).FullName!);
Microsoft.CodeAnalysis.Workspaces (1)
AbstractSemanticFactsService.cs (1)
118var disposableType = compilation.GetBestTypeByMetadataName(typeName);