Skip to content

Commit 564072f

Browse files
[StyleCleanUp] Fix MilCodeGen generated code whitespaces (#10615)
* [StyleCleanUp] Fix MilCodeGen generated code whitespaces * Fix equality operator whitespace
1 parent 69c2625 commit 564072f

File tree

269 files changed

+1006
-1006
lines changed

Some content is hidden

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

269 files changed

+1006
-1006
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void ApplyAnimationClock(
8585
if (IsSealed)
8686
{
8787
throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
88-
}
88+
}
8989

9090
AnimationStorage.ApplyAnimationClock(this, dp, clock, handoffBehavior);
9191
}
@@ -136,7 +136,7 @@ public void BeginAnimation(DependencyProperty dp, AnimationTimeline animation, H
136136
throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp));
137137
}
138138

139-
if ( animation != null
139+
if (animation != null
140140
&& !AnimationStorage.IsAnimationValid(dp, animation))
141141
{
142142
throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), nameof(animation));
@@ -150,7 +150,7 @@ public void BeginAnimation(DependencyProperty dp, AnimationTimeline animation, H
150150
if (IsSealed)
151151
{
152152
throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
153-
}
153+
}
154154

155155
AnimationStorage.BeginAnimation(this, dp, animation, handoffBehavior);
156156
}
@@ -524,7 +524,7 @@ public void AddHandler(
524524
EnsureEventHandlersStore();
525525
EventHandlersStore.AddRoutedEventHandler(routedEvent, handler, handledEventsToo);
526526

527-
OnAddHandler (routedEvent, handler);
527+
OnAddHandler(routedEvent, handler);
528528
}
529529

530530
/// <summary>
@@ -581,7 +581,7 @@ public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
581581
{
582582
store.RemoveRoutedEventHandler(routedEvent, handler);
583583

584-
OnRemoveHandler (routedEvent, handler);
584+
OnRemoveHandler(routedEvent, handler);
585585

586586
if (store.Count == 0)
587587
{
@@ -638,7 +638,7 @@ public void AddToEventRoute(EventRoute route, RoutedEventArgs e)
638638
// Add all class listeners for this ContentElement
639639
while (classListeners != null)
640640
{
641-
for(int i = 0; i < classListeners.Handlers.Length; i++)
641+
for (int i = 0; i < classListeners.Handlers.Length; i++)
642642
{
643643
route.Add(this, classListeners.Handlers[i].Handler, classListeners.Handlers[i].InvokeHandledEventsToo);
644644
}
@@ -687,7 +687,7 @@ internal EventHandlersStore EventHandlersStore
687687
{
688688
get
689689
{
690-
if(!ReadFlag(CoreFlags.ExistsEventHandlersStore))
690+
if (!ReadFlag(CoreFlags.ExistsEventHandlersStore))
691691
{
692692
return null;
693693
}
@@ -2240,7 +2240,7 @@ protected internal virtual void OnTouchLeave(TouchEventArgs e) {}
22402240

22412241
private static void IsMouseDirectlyOver_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
22422242
{
2243-
((ContentElement) d).RaiseIsMouseDirectlyOverChanged(e);
2243+
((ContentElement)d).RaiseIsMouseDirectlyOverChanged(e);
22442244
}
22452245

22462246
/// <summary>
@@ -2315,7 +2315,7 @@ internal void RaiseIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventAr
23152315

23162316
private static void IsMouseCaptured_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
23172317
{
2318-
((ContentElement) d).RaiseIsMouseCapturedChanged(e);
2318+
((ContentElement)d).RaiseIsMouseCapturedChanged(e);
23192319
}
23202320

23212321
/// <summary>
@@ -2380,7 +2380,7 @@ internal void RaiseIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArg
23802380

23812381
private static void IsStylusDirectlyOver_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
23822382
{
2383-
((ContentElement) d).RaiseIsStylusDirectlyOverChanged(e);
2383+
((ContentElement)d).RaiseIsStylusDirectlyOverChanged(e);
23842384
}
23852385

23862386
/// <summary>
@@ -2415,7 +2415,7 @@ private void RaiseIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs
24152415

24162416
private static void IsStylusCaptured_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
24172417
{
2418-
((ContentElement) d).RaiseIsStylusCapturedChanged(e);
2418+
((ContentElement)d).RaiseIsStylusCapturedChanged(e);
24192419
}
24202420

24212421
/// <summary>
@@ -2480,7 +2480,7 @@ internal void RaiseIsStylusCaptureWithinChanged(DependencyPropertyChangedEventAr
24802480

24812481
private static void IsKeyboardFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
24822482
{
2483-
((ContentElement) d).RaiseIsKeyboardFocusedChanged(e);
2483+
((ContentElement)d).RaiseIsKeyboardFocusedChanged(e);
24842484
}
24852485

24862486
/// <summary>

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecoration.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public Pen Pen
6767
{
6868
get
6969
{
70-
return (Pen) GetValue(PenProperty);
70+
return (Pen)GetValue(PenProperty);
7171
}
7272
set
7373
{
@@ -83,7 +83,7 @@ public double PenOffset
8383
{
8484
get
8585
{
86-
return (double) GetValue(PenOffsetProperty);
86+
return (double)GetValue(PenOffsetProperty);
8787
}
8888
set
8989
{
@@ -99,7 +99,7 @@ public TextDecorationUnit PenOffsetUnit
9999
{
100100
get
101101
{
102-
return (TextDecorationUnit) GetValue(PenOffsetUnitProperty);
102+
return (TextDecorationUnit)GetValue(PenOffsetUnitProperty);
103103
}
104104
set
105105
{
@@ -115,7 +115,7 @@ public TextDecorationUnit PenThicknessUnit
115115
{
116116
get
117117
{
118-
return (TextDecorationUnit) GetValue(PenThicknessUnitProperty);
118+
return (TextDecorationUnit)GetValue(PenThicknessUnitProperty);
119119
}
120120
set
121121
{
@@ -131,7 +131,7 @@ public TextDecorationLocation Location
131131
{
132132
get
133133
{
134-
return (TextDecorationLocation) GetValue(LocationProperty);
134+
return (TextDecorationLocation)GetValue(LocationProperty);
135135
}
136136
set
137137
{

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationCollection.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,10 @@ internal override void OnInheritanceContextChangedCore(EventArgs args)
474474
{
475475
base.OnInheritanceContextChangedCore(args);
476476

477-
for (int i=0; i<this.Count; i++)
477+
for (int i = 0; i < this.Count; i++)
478478
{
479479
DependencyObject inheritanceChild = _collection[i];
480-
if (inheritanceChild!= null && inheritanceChild.InheritanceContext == this)
480+
if (inheritanceChild != null && inheritanceChild.InheritanceContext == this)
481481
{
482482
inheritanceChild.OnInheritanceContextChanged(args);
483483
}
@@ -570,7 +570,7 @@ protected override Freezable CreateInstanceCore()
570570
/// </summary>
571571
protected override void CloneCore(Freezable source)
572572
{
573-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
573+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
574574

575575
base.CloneCore(source);
576576

@@ -580,7 +580,7 @@ protected override void CloneCore(Freezable source)
580580

581581
for (int i = 0; i < count; i++)
582582
{
583-
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].Clone();
583+
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].Clone();
584584
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
585585
_collection.Add(newValue);
586586

@@ -592,7 +592,7 @@ protected override void CloneCore(Freezable source)
592592
/// </summary>
593593
protected override void CloneCurrentValueCore(Freezable source)
594594
{
595-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
595+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
596596

597597
base.CloneCurrentValueCore(source);
598598

@@ -602,7 +602,7 @@ protected override void CloneCurrentValueCore(Freezable source)
602602

603603
for (int i = 0; i < count; i++)
604604
{
605-
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].CloneCurrentValue();
605+
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].CloneCurrentValue();
606606
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
607607
_collection.Add(newValue);
608608

@@ -614,7 +614,7 @@ protected override void CloneCurrentValueCore(Freezable source)
614614
/// </summary>
615615
protected override void GetAsFrozenCore(Freezable source)
616616
{
617-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
617+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
618618

619619
base.GetAsFrozenCore(source);
620620

@@ -624,7 +624,7 @@ protected override void GetAsFrozenCore(Freezable source)
624624

625625
for (int i = 0; i < count; i++)
626626
{
627-
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].GetAsFrozen();
627+
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].GetAsFrozen();
628628
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
629629
_collection.Add(newValue);
630630

@@ -636,7 +636,7 @@ protected override void GetAsFrozenCore(Freezable source)
636636
/// </summary>
637637
protected override void GetCurrentValueAsFrozenCore(Freezable source)
638638
{
639-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
639+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
640640

641641
base.GetCurrentValueAsFrozenCore(source);
642642

@@ -646,7 +646,7 @@ protected override void GetCurrentValueAsFrozenCore(Freezable source)
646646

647647
for (int i = 0; i < count; i++)
648648
{
649-
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].GetCurrentValueAsFrozen();
649+
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].GetCurrentValueAsFrozen();
650650
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
651651
_collection.Add(newValue);
652652

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationLocation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ public enum TextDecorationLocation
3535
/// Baseline - Baseline position
3636
/// </summary>
3737
Baseline = 3,
38-
}
38+
}
3939
}

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationUnit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ public enum TextDecorationUnit
3030
/// Pixel - The unit is one pixel
3131
/// </summary>
3232
Pixel = 2,
33-
}
33+
}
3434
}

0 commit comments

Comments
 (0)