16 references to GetOrCreateTypeByMetadataName
Microsoft.CodeAnalysis.AnalyzerUtilities (16)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (3)
98
return compilation.
GetOrCreateTypeByMetadataName
(_enablingMethodAttributeFullyQualifiedName);
106
compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemException),
107
compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemSystemException)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (9)
166
INamedTypeSymbol? iDisposable = compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemIDisposable);
175
INamedTypeSymbol? iAsyncDisposable = compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemIAsyncDisposable);
176
INamedTypeSymbol? valueTaskType = compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemThreadingTasksValueTask);
322
INamedTypeSymbol? iDisposable = compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemIDisposable);
323
INamedTypeSymbol? iAsyncDisposable = compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemIAsyncDisposable);
324
INamedTypeSymbol? configuredAsyncDisposable = compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemRuntimeCompilerServicesConfiguredAsyncDisposable);
325
INamedTypeSymbol? task = compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemThreadingTasksTask);
326
INamedTypeSymbol? valueTask = compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemThreadingTasksValueTask);
327
INamedTypeSymbol? configuredValueTaskAwaitable = compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemRuntimeCompilerServicesConfiguredValueTaskAwaitable);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\OperationBlockAnalysisContextExtension.cs (3)
59
context.Compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemNotImplementedException),
62
context.Compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemNotSupportedException),
66
context.Compilation.
GetOrCreateTypeByMetadataName
(WellKnownTypeNames.SystemPlatformNotSupportedException),
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (1)
78
INamedTypeSymbol? typeSymbol = compilation.
GetOrCreateTypeByMetadataName
(typeName);