Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTlakaelel Axayakatl Ceja <tlakaelel_axayakatl@outlook.com>2022-09-01 23:02:43 +0300
committerGitHub <noreply@github.com>2022-09-01 23:02:43 +0300
commitab2d195f169a08bf8eb978b472b2d3aca61b0a46 (patch)
tree4e441a8841728347e13d9a14f0b457340d134ef1 /src/coreclr/tools/Common/TypeSystem/Canon/TypeDesc.Canon.cs
parent7a45201181d37329b7ab0bee541ed7c42b5d94b6 (diff)
Run code quality analyzers in the coreclr/tools directory (#74825)
Run codeanalysis analyzers in the coreclr/tools directory
Diffstat (limited to 'src/coreclr/tools/Common/TypeSystem/Canon/TypeDesc.Canon.cs')
-rw-r--r--src/coreclr/tools/Common/TypeSystem/Canon/TypeDesc.Canon.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/coreclr/tools/Common/TypeSystem/Canon/TypeDesc.Canon.cs b/src/coreclr/tools/Common/TypeSystem/Canon/TypeDesc.Canon.cs
index c0ce80263aa..0fbd5ecbbbb 100644
--- a/src/coreclr/tools/Common/TypeSystem/Canon/TypeDesc.Canon.cs
+++ b/src/coreclr/tools/Common/TypeSystem/Canon/TypeDesc.Canon.cs
@@ -6,15 +6,16 @@ using Debug = System.Diagnostics.Debug;
namespace Internal.TypeSystem
{
// Implements canonicalization for types
- partial class TypeDesc
+ public partial class TypeDesc
{
/// <summary>
/// Stores a cached version of the canonicalized form of this type since
/// calculating it is a recursive operation
/// </summary>
- TypeDesc _specificCanonCache;
- TypeDesc _universalCanonCache;
- TypeDesc GetCachedCanonValue(CanonicalFormKind kind)
+ private TypeDesc _specificCanonCache;
+ private TypeDesc _universalCanonCache;
+
+ private TypeDesc GetCachedCanonValue(CanonicalFormKind kind)
{
switch (kind)
{
@@ -30,7 +31,7 @@ namespace Internal.TypeSystem
}
}
- void SetCachedCanonValue(CanonicalFormKind kind, TypeDesc value)
+ private void SetCachedCanonValue(CanonicalFormKind kind, TypeDesc value)
{
switch (kind)
{