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