C#: Fix violations

This commit is contained in:
Calum Grant
2019-08-23 12:10:03 +01:00
parent 97522c506e
commit b3d5e405a6
3 changed files with 7 additions and 33 deletions

View File

@@ -56,7 +56,7 @@ namespace Semmle.Extraction.CIL
}
#if DEBUG_LABELS
Dictionary<string, ILabelledEntity> debugLabels = new Dictionary<string, ILabelledEntity>();
private readonly Dictionary<string, ILabelledEntity> debugLabels = new Dictionary<string, ILabelledEntity>();
#endif
public IExtractedEntity Create(Handle h)
@@ -66,7 +66,7 @@ namespace Semmle.Extraction.CIL
}
// Lazily cache primitive types.
PrimitiveType[] primitiveTypes = new PrimitiveType[(int)PrimitiveTypeCode.Object + 1];
private readonly PrimitiveType[] primitiveTypes = new PrimitiveType[(int)PrimitiveTypeCode.Object + 1];
public PrimitiveType Create(PrimitiveTypeCode code)
{