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:
Diffstat (limited to 'src/coreclr/tools/Common/TypeSystem/IL/ILImporter.cs')
-rw-r--r--src/coreclr/tools/Common/TypeSystem/IL/ILImporter.cs13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/coreclr/tools/Common/TypeSystem/IL/ILImporter.cs b/src/coreclr/tools/Common/TypeSystem/IL/ILImporter.cs
index 8f4cb7440c7..1ac634591cd 100644
--- a/src/coreclr/tools/Common/TypeSystem/IL/ILImporter.cs
+++ b/src/coreclr/tools/Common/TypeSystem/IL/ILImporter.cs
@@ -1,14 +1,11 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-using System;
-
using Internal.TypeSystem;
-using Internal.IL;
namespace Internal.IL
{
- internal partial class ILImporter
+ internal sealed partial class ILImporter
{
private BasicBlock[] _basicBlocks; // Maps IL offset to basic block
@@ -29,22 +26,22 @@ namespace Internal.IL
return _ilBytes[_currentOffset++];
}
- private UInt16 ReadILUInt16()
+ private ushort ReadILUInt16()
{
if (_currentOffset + 1 >= _ilBytes.Length)
ReportMethodEndInsideInstruction();
- UInt16 val = (UInt16)(_ilBytes[_currentOffset] + (_ilBytes[_currentOffset + 1] << 8));
+ ushort val = (ushort)(_ilBytes[_currentOffset] + (_ilBytes[_currentOffset + 1] << 8));
_currentOffset += 2;
return val;
}
- private UInt32 ReadILUInt32()
+ private uint ReadILUInt32()
{
if (_currentOffset + 3 >= _ilBytes.Length)
ReportMethodEndInsideInstruction();
- UInt32 val = (UInt32)(_ilBytes[_currentOffset] + (_ilBytes[_currentOffset + 1] << 8) + (_ilBytes[_currentOffset + 2] << 16) + (_ilBytes[_currentOffset + 3] << 24));
+ uint val = (uint)(_ilBytes[_currentOffset] + (_ilBytes[_currentOffset + 1] << 8) + (_ilBytes[_currentOffset + 2] << 16) + (_ilBytes[_currentOffset + 3] << 24));
_currentOffset += 4;
return val;
}