Skip to content

Commit

Permalink
remove repetitions ';' (#50236)
Browse files Browse the repository at this point in the history
Co-authored-by: kronic <kronic@softland.ru>
  • Loading branch information
kronic and kronic authored Mar 26, 2021
1 parent 0817e74 commit 62170c1
Show file tree
Hide file tree
Showing 154 changed files with 358 additions and 358 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public override ObjectData GetData(NodeFactory factory, bool relocsOnly = false)
builder.AddSymbol(this);
builder.EmitBytes(result);

return builder.ToObjectData(); ;
return builder.ToObjectData();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilde
{
sb.Append(" [");
sb.Append(_methodArgument.Token.MetadataReader.GetString(_methodArgument.Token.MetadataReader.GetAssemblyDefinition().Name));
sb.Append(":"); ;
sb.Append(":");
sb.Append(((uint)_methodArgument.Token.Token).ToString("X8"));
sb.Append("]");
}
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/tools/r2rdump/CoreDisTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ private void ProbeCommonIntelQuirks(RuntimeFunction rtf, int imageOffset, int rt
if (pointsOutsideRuntimeFunction && IsIntel2ByteIndirectJumpPCRelativeInstruction(targetImageOffset, out int instructionRelativeOffset))
{
int thunkTargetRVA = targetRVA + instructionRelativeOffset;
bool haveImportCell = TryGetImportCellName(thunkTargetRVA, out string importCellName); ;
bool haveImportCell = TryGetImportCellName(thunkTargetRVA, out string importCellName);

if (_options.Naked && haveImportCell)
{
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/tools/r2rtest/CommandLineOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Option ExecutionTimeoutMinutes() =>
new Option<int>(new[] { "--execution-timeout-minutes", "-et" }, "Execution timeout (minutes)");

Option R2RDumpPath() =>
new Option<FileInfo>(new[] { "--r2r-dump-path", "-r2r" }, "Path to R2RDump.exe/dll").ExistingOnly();;
new Option<FileInfo>(new[] { "--r2r-dump-path", "-r2r" }, "Path to R2RDump.exe/dll").ExistingOnly();

Option MeasurePerf() =>
new Option<bool>(new[] { "--measure-perf" }, "Print out compilation time");
Expand All @@ -290,7 +290,7 @@ Option TargetArch() =>
// compile-nuget specific options
//
Option PackageList() =>
new Option<FileInfo>(new[] { "--package-list", "-pl" }, "Text file containing a package name on each line").ExistingOnly();;
new Option<FileInfo>(new[] { "--package-list", "-pl" }, "Text file containing a package name on each line").ExistingOnly();

//
// compile-serp specific options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public string GetDiagnosticsInfo()
$"Arguments: {Result.StartInfo.Arguments}{Environment.NewLine}" +
$"Exit Code: {Result.ExitCode}{Environment.NewLine}" +
$"StdOut:{Environment.NewLine}{Result.StdOut}{Environment.NewLine}" +
$"StdErr:{Environment.NewLine}{Result.StdErr}{Environment.NewLine}"; ;
$"StdErr:{Environment.NewLine}{Result.StdErr}{Environment.NewLine}";
}

public AndConstraint<CommandResultAssertions> HaveSkippedProjectCompilation(string skippedProject, string frameworkFullName)
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/Common/tests/Tests/System/StringTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ public static void SameSpanEndsWith_Char()
[Fact]
public static void LengthMismatchEndsWith_Char()
{
string value = "456";;
string value = "456";

string s1 = value.Substring(0, 2);
string s2 = value.Substring(0, 3);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private void Initialize(IProducerConsumerCollection<T> collection, int boundedCa
Debug.Assert(boundedCapacity > 0 || boundedCapacity == NON_BOUNDED);

_collection = collection;
_boundedCapacity = boundedCapacity; ;
_boundedCapacity = boundedCapacity;
_isDisposed = false;
_consumersCancellationTokenSource = new CancellationTokenSource();
_producersCancellationTokenSource = new CancellationTokenSource();
Expand Down Expand Up @@ -1144,7 +1144,7 @@ private static int UpdateTimeOut(uint startTime, int originalWaitMillisecondsTim
}

// Subtract the elapsed time from the current wait time
int currentWaitTimeout = originalWaitMillisecondsTimeout - (int)elapsedMilliseconds; ;
int currentWaitTimeout = originalWaitMillisecondsTimeout - (int)elapsedMilliseconds;
if (currentWaitTimeout <= 0)
{
return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public T[] Contents
{
get
{
return _set.ToArray(_set.Count); ;
return _set.ToArray(_set.Count);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public void Queue_Generic_TrimExcess_OnValidQueueThatHasntBeenRemovedFrom(int co
[MemberData(nameof(ValidCollectionSizes))]
public void Queue_Generic_TrimExcess_Repeatedly(int count)
{
Queue<T> queue = GenericQueueFactory(count); ;
Queue<T> queue = GenericQueueFactory(count);
List<T> expected = queue.ToList();
queue.TrimExcess();
queue.TrimExcess();
Expand All @@ -226,7 +226,7 @@ public void Queue_Generic_TrimExcess_AfterRemovingOneElement(int count)
{
if (count > 0)
{
Queue<T> queue = GenericQueueFactory(count); ;
Queue<T> queue = GenericQueueFactory(count);
List<T> expected = queue.ToList();
queue.TrimExcess();
T removed = queue.Dequeue();
Expand All @@ -243,7 +243,7 @@ public void Queue_Generic_TrimExcess_AfterClearingAndAddingSomeElementsBack(int
{
if (count > 0)
{
Queue<T> queue = GenericQueueFactory(count); ;
Queue<T> queue = GenericQueueFactory(count);
queue.TrimExcess();
queue.Clear();
queue.TrimExcess();
Expand All @@ -261,7 +261,7 @@ public void Queue_Generic_TrimExcess_AfterClearingAndAddingAllElementsBack(int c
{
if (count > 0)
{
Queue<T> queue = GenericQueueFactory(count); ;
Queue<T> queue = GenericQueueFactory(count);
queue.TrimExcess();
queue.Clear();
queue.TrimExcess();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void Constructor2_ValueAsContractNameArgument_ShouldSetContractNameProper
[Fact]
public void Constructor2_NullAsMetadataArgument_ShouldSetMetadataPropertyToEmptyDictionary()
{
var definition = new ExportDefinition("Contract", (IDictionary<string, object>)null); ;
var definition = new ExportDefinition("Contract", (IDictionary<string, object>)null);

Assert.Empty(definition.Metadata);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public void Add_SDB1()
{
DataTable dt = DataProvider.CreateParentDataTable();
dt.Constraints.Add("UniqueConstraint", dt.Columns["ParentId"], true);
Assert.Equal(1, (double)dt.Constraints.Count); ;
Assert.Equal(1, (double)dt.Constraints.Count);
Assert.Equal("UniqueConstraint", dt.Constraints[0].ConstraintName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ public void IdFormat_W3CForcedOverridesParentActivityIdFormat()
Activity parent = new Activity("parent").Start();
Activity activity = new Activity("child").Start();
Assert.Equal(parent.SpanId.ToHexString(), activity.ParentSpanId.ToHexString()); ;
Assert.Equal(parent.SpanId.ToHexString(), activity.ParentSpanId.ToHexString());
}).Dispose();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ internal void AdvancedFilterSet(string attribute, object value, Type objectType,
else
_extensionCache.properties[attribute] = new ExtensionCacheValue(new object[] { value }, objectType, mt);

_extensionCacheChanged = LoadState.Changed; ;
_extensionCacheChanged = LoadState.Changed;
}

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,12 @@ internal override void ResetAllChangeStatus()
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "User", "ResetAllChangeStatus");

_givenNameChanged = (_givenNameChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet; ;
_middleNameChanged = (_middleNameChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet; ;
_surnameChanged = (_surnameChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet; ;
_emailAddressChanged = (_emailAddressChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet; ;
_voiceTelephoneNumberChanged = (_voiceTelephoneNumberChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet; ;
_employeeIDChanged = (_employeeIDChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet; ;
_givenNameChanged = (_givenNameChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet;
_middleNameChanged = (_middleNameChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet;
_surnameChanged = (_surnameChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet;
_emailAddressChanged = (_emailAddressChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet;
_voiceTelephoneNumberChanged = (_voiceTelephoneNumberChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet;
_employeeIDChanged = (_employeeIDChanged == LoadState.Changed) ? LoadState.Loaded : LoadState.NotSet;

base.ResetAllChangeStatus();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public void TransferRoleOwnership(ActiveDirectoryRole role)
}
catch (COMException e)
{
throw ExceptionHelper.GetExceptionFromCOMException(context, e); ;
throw ExceptionHelper.GetExceptionFromCOMException(context, e);
}

// invalidate the role collection so that it gets loaded again next time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ internal DeviceContext CreateDeviceContext(PageSettings pageSettings)
internal DeviceContext CreateDeviceContext(IntPtr hdevmode)
{
IntPtr modePointer = Interop.Kernel32.GlobalLock(hdevmode);
DeviceContext dc = DeviceContext.CreateDC(DriverName, PrinterNameInternal, fileName:null, modePointer); ;
DeviceContext dc = DeviceContext.CreateDC(DriverName, PrinterNameInternal, fileName:null, modePointer);
Interop.Kernel32.GlobalUnlock(hdevmode);
return dc;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,13 @@ public MyClass Method_ReturnMyClass(out int? p1, short? p2, out byte p3)
{
p1 = 2;
p3 = 3;
return new MyClass { Field = (int)p2 }; ;
return new MyClass { Field = (int)p2 };
}

public MyClass Method_ReturnMyClass(out ulong l)
{
l = 3;
return new MyClass { Field = (int)l }; ;
return new MyClass { Field = (int)l };
}

public MyClass Method_ReturnMyClass(params MyStruct[] arr) => new MyClass { Field = 1 };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static int GetDayOfYearHelper(Calendar calendar, DateTime time, Calendar

break;
}
return (weekOfYear - 1) * DaysPerWeek + offset + 1;;
return (weekOfYear - 1) * DaysPerWeek + offset + 1;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private Socket CreatePipeSocket(bool ownsHandle = true)
}
}
}
return socket ?? throw new ObjectDisposedException(GetType().ToString());;
return socket ?? throw new ObjectDisposedException(GetType().ToString());
}

private Socket SetPipeSocketInterlocked(Socket socket, bool ownsHandle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void CheckNewWithTwoParametersStructWithValueTest(bool useInterpre
public static void CheckNewWithTwoParametersCustom2Test(bool useInterpreter)
{
int[] array1 = { 0, 1, -1, int.MinValue, int.MaxValue };
string[] array2 = { null, "", "a", "foo" }; ;
string[] array2 = { null, "", "a", "foo" };
for (int i = 0; i < array1.Length; i++)
{
for (int j = 0; j < array2.Length; j++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private void EnumerateAndRedistributeElements()
while (_source.MoveNext(ref element!, ref ignoreKey))
{
if ((loopCount++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

// Calculate the element's destination partition index, placing it into the
// appropriate buffer from which partitions will later enumerate.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private void EnumerateAndRedistributeElements()
while (_source.MoveNext(ref element!, ref key))
{
if ((loopCount++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

// Calculate the element's destination partition index, placing it into the
// appropriate buffer from which partitions will later enumerate.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TIntermedi
while (_source.MoveNext(ref input!, ref keyUnused))
{
if ((i++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();
hadNext = true;
accumulator = _reduceOperator._intermediateReduce(accumulator, input);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutp
while (_rightSource.MoveNext(ref rightElement, ref rightKeyUnused))
{
if ((i++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

_hashLookup.Add(rightElement.First);
}
Expand All @@ -200,7 +200,7 @@ internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutp
while (_leftSource.MoveNext(ref leftElement, ref leftKeyUnused))
{
if ((_outputLoopCount.Value++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

if (_hashLookup.Add(leftElement.First))
{
Expand Down Expand Up @@ -273,7 +273,7 @@ internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutp
while (_rightSource.MoveNext(ref rightElement, ref rightKeyUnused))
{
if ((i++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

rightLookup.Add(rightElement.First);
}
Expand All @@ -287,7 +287,7 @@ internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutp
while (_leftSource.MoveNext(ref leftElement, ref leftKey))
{
if ((i++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

if (rightLookup.Contains(leftElement.First))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TOutput cu
while (_leftSource.MoveNext(ref leftPair, ref leftKey))
{
if ((mutables._outputLoopCount++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

// Find the match in the hash table.
HashLookupValueList<TRightInput, TRightKey> matchValue = default(HashLookupValueList<TRightInput, TRightKey>);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutp
while (_rightSource.MoveNext(ref rightElement, ref rightKeyUnused))
{
if ((i++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

_hashLookup.Add(rightElement.First);
}
Expand All @@ -187,7 +187,7 @@ internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutp
{
Debug.Assert(_outputLoopCount != null);
if ((_outputLoopCount.Value++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

// If we found the element in our set, and if we haven't returned it yet,
// we can yield it to the caller. We also mark it so we know we've returned
Expand Down Expand Up @@ -274,7 +274,7 @@ internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutp
while (_leftSource.MoveNext(ref leftElement, ref leftKey))
{
if ((i++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

// For each element, we track the smallest order key for that element that we saw so far
Pair<TInputOutput, TLeftKey> oldEntry;
Expand All @@ -298,7 +298,7 @@ internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutp
while (_rightSource.MoveNext(ref rightElement, ref rightKeyUnused))
{
if ((i++ & CancellationState.POLL_INTERVAL) == 0)
_cancellationToken.ThrowIfCancellationRequested();;
_cancellationToken.ThrowIfCancellationRequested();

// If we found the element in our set, and if we haven't returned it yet,
// we can yield it to the caller. We also mark it so we know we've returned
Expand Down
Loading

0 comments on commit 62170c1

Please sign in to comment.