Skip to content

Commit 69747df

Browse files
committed
♻️Fix whitespace
1 parent 5399f0a commit 69747df

File tree

258 files changed

+511
-512
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+511
-512
lines changed

CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Linq;
66
using CodeGen.Helpers;
77
using CodeGen.JsonTypes;
8-
using static System.Runtime.InteropServices.JavaScript.JSType;
98

109
namespace CodeGen.Generators.UnitsNetGen
1110
{
@@ -140,15 +139,15 @@ namespace UnitsNet
140139
}}");
141140
return Writer.ToString();
142141
}
143-
142+
144143
private void GenerateQuantityInfo()
145144
{
146145
var quantityInfoClassName = $"{_quantity.Name}Info";
147146
BaseDimensions baseDimensions = _quantity.BaseDimensions;
148147
var createDimensionsExpression = _isDimensionless
149148
? "BaseDimensions.Dimensionless"
150149
: $"new BaseDimensions({baseDimensions.L}, {baseDimensions.M}, {baseDimensions.T}, {baseDimensions.I}, {baseDimensions.Θ}, {baseDimensions.N}, {baseDimensions.J})";
151-
150+
152151
Writer.WL($@"
153152
/// <summary>
154153
/// Provides detailed information about the <see cref=""{_quantity.Name}""/> quantity, including its name, base unit, unit mappings, base dimensions, and conversion functions.
@@ -208,7 +207,7 @@ public sealed class {quantityInfoClassName}: QuantityInfo<{_quantity.Name}, {_un
208207
/// <returns>An <see cref=""IEnumerable{{T}}""/> of <see cref=""UnitDefinition{{{_unitEnumName}}}""/> representing the default unit mappings for {_quantity.Name}.</returns>
209208
public static IEnumerable<UnitDefinition<{_unitEnumName}>> GetDefaultMappings()
210209
{{");
211-
210+
212211
foreach (Unit unit in _quantity.Units)
213212
{
214213
BaseUnits? baseUnits = unit.BaseUnits;
@@ -241,7 +240,7 @@ public sealed class {quantityInfoClassName}: QuantityInfo<{_quantity.Name}, {_un
241240
}}
242241
");
243242
}
244-
243+
245244
private void GenerateStaticConstructor()
246245
{
247246
Writer.WL($@"
@@ -363,7 +362,7 @@ private void GenerateProperties()
363362
364363
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
365364
Enum IQuantity.Unit => Unit;
366-
365+
367366
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
368367
UnitKey IQuantity.UnitKey => UnitKey.ForUnit(Unit);
369368
@@ -1256,7 +1255,7 @@ public string ToString(string? format, IFormatProvider? provider)
12561255
#endregion
12571256
" );
12581257
}
1259-
1258+
12601259
/// <inheritdoc cref="GetObsoleteAttributeOrNull(string)"/>
12611260
private static string? GetObsoleteAttributeOrNull(Quantity quantity) => GetObsoleteAttributeOrNull(quantity.ObsoleteText);
12621261

CodeGen/Generators/UnitsNetGen/UnitTestBaseClassGenerator.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ internal class UnitTestBaseClassGenerator : GeneratorBase
5050
/// Example: "LengthUnit.Centimeter".
5151
/// </summary>
5252
private readonly string _otherOrBaseUnitFullName;
53-
53+
5454
/// <summary>
5555
/// Indicates whether the quantity is dimensionless.
5656
/// </summary>
@@ -374,7 +374,7 @@ public void As_UnitSystem_ReturnsValueInDimensionlessUnit()
374374
var quantity = new {_quantity.Name}(value: 1, unit: {_baseUnitFullName});
375375
376376
var convertedValue = quantity.As(UnitSystem.SI);
377-
377+
378378
Assert.Equal(quantity.Value, convertedValue);
379379
}}
380380
@@ -420,7 +420,7 @@ public void ToUnitSystem_ReturnsValueInDimensionlessUnit()
420420
public void ToUnit_UnitSystem_ThrowsArgumentNullExceptionIfNull()
421421
{{
422422
UnitSystem nullUnitSystem = null!;
423-
Assert.Multiple(() =>
423+
Assert.Multiple(() =>
424424
{{
425425
var quantity = new {_quantity.Name}(value: 1, unit: {_quantity.Name}.BaseUnit);
426426
Assert.Throws<ArgumentNullException>(() => quantity.ToUnit(nullUnitSystem));
@@ -496,23 +496,23 @@ public virtual void ToUnit_UnitSystem_SI_ReturnsQuantityInSIUnits()
496496
IQuantity<{_unitEnumName}> convertedQuantity = quantityToConvert.ToUnit(UnitSystem.SI);
497497
498498
Assert.Equal(expectedUnit, convertedQuantity.Unit);
499-
Assert.Equal(expectedValue, convertedQuantity.Value);
499+
Assert.Equal(expectedValue, convertedQuantity.Value);
500500
}}, () =>
501501
{{
502502
IQuantity quantityToConvert = quantity;
503503
504504
IQuantity convertedQuantity = quantityToConvert.ToUnit(UnitSystem.SI);
505505
506506
Assert.Equal(expectedUnit, convertedQuantity.Unit);
507-
Assert.Equal(expectedValue, convertedQuantity.Value);
507+
Assert.Equal(expectedValue, convertedQuantity.Value);
508508
}});
509509
}}
510510
511511
[Fact]
512512
public void ToUnit_UnitSystem_ThrowsArgumentNullExceptionIfNull()
513513
{{
514514
UnitSystem nullUnitSystem = null!;
515-
Assert.Multiple(() =>
515+
Assert.Multiple(() =>
516516
{{
517517
var quantity = new {_quantity.Name}(value: 1, unit: {_quantity.Name}.BaseUnit);
518518
Assert.Throws<ArgumentNullException>(() => quantity.ToUnit(nullUnitSystem));

UnitsNet.Tests/GeneratedCode/TestsBase/AbsorbedDoseOfIonizingRadiationTestsBase.g.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/GeneratedCode/TestsBase/AccelerationTestsBase.g.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/GeneratedCode/TestsBase/AmountOfSubstanceTestsBase.g.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/GeneratedCode/TestsBase/AmplitudeRatioTestsBase.g.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/GeneratedCode/TestsBase/AngleTestsBase.g.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/GeneratedCode/TestsBase/AreaDensityTestsBase.g.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/GeneratedCode/TestsBase/AreaMomentOfInertiaTestsBase.g.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/GeneratedCode/TestsBase/AreaTestsBase.g.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)