9 references to TryGetOrCreateTypeByMetadataName
Microsoft.CodeAnalysis.Analyzers (9)
MetaAnalyzers\CompareSymbolsCorrectlyAnalyzer.cs (3)
330
if (compilation.
TryGetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemCollectionsImmutableImmutableHashSet, out var immutableHashSetType))
338
if (compilation.
TryGetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemCollectionsImmutableImmutableDictionary, out var immutableDictionaryType))
346
if (compilation.
TryGetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemLinqEnumerable, out var enumerableType))
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (5)
208
if (!compilationContext.Compilation.
TryGetOrCreateTypeByMetadataName
(WellKnownTypeNames.MicrosoftCodeAnalysisDiagnosticDescriptor, out var diagnosticDescriptorType) ||
209
!compilationContext.Compilation.
TryGetOrCreateTypeByMetadataName
(WellKnownTypeNames.MicrosoftCodeAnalysisLocalizableString, out var localizableResourceType) ||
210
!compilationContext.Compilation.
TryGetOrCreateTypeByMetadataName
(WellKnownTypeNames.MicrosoftCodeAnalysisLocalizableResourceString, out var localizableResourceStringType) ||
211
!compilationContext.Compilation.
TryGetOrCreateTypeByMetadataName
(WellKnownTypeNames.MicrosoftCodeAnalysisDiagnosticsCompilationEndAnalysisContext, out var compilationEndContextType) ||
212
!compilationContext.Compilation.
TryGetOrCreateTypeByMetadataName
(WellKnownTypeNames.MicrosoftCodeAnalysisDiagnostic, out var diagnosticType))
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (1)
87
!semanticModel.Compilation.
TryGetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemCollectionsGenericIEqualityComparer1, out var iEqualityComparer))