8000 [MilCodeGen] Allow emitting empty-lines via NULL, including conditionals by h3xds1nz · Pull Request #10856 · dotnet/wpf · GitHub
[go: up one dir, main page]

Skip to content

[MilCodeGen] Allow emitting empty-lines via NULL, including conditionals #10856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 109 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
8596bab
cherry-pick from milcodegen-newline
h3xds1nz Apr 4, 2025
4d85472
summaries + ctors + attributes
h3xds1nz May 17, 2025
4717d45
non-freezable collections mcg edit
h3xds1nz May 17, 2025
4b15278
non-freezable collections run
h3xds1nz May 17, 2025
a4498c9
clone-collection empty mcg edit
h3xds1nz May 17, 2025
1adeaf5
clone-collection empty run
h3xds1nz May 17, 2025
0e1e6ac
non-collection enumerator mcg edit
h3xds1nz May 17, 2025
6df7a35
non-collection enumerator run
h3xds1nz May 17, 2025
1e43ce8
collection-methods mcg edit
h3xds1nz May 17, 2025
b1a16a1
collection-methods run
h3xds1nz May 17, 2025
b6a8ee9
collection fields mcg edit
h3xds1nz May 17, 2025
00ee749
collection fields run
h3xds1nz May 17, 2025
b4d64ee
update resource + balance out other newlines (mcg edit)
h3xds1nz May 17, 2025
2ff2d3a
update resource + balance out other newlines (run)
h3xds1nz May 17, 2025
9cba173
remove-freezable-at removal + compensation (mcg edit)
h3xds1nz May 17, 2025
e359371
remove-freezable-at removal + compensation (run)
h3xds1nz May 17, 2025
3c2055a
create-instance-core newline (mcg edit)
h3xds1nz May 17, 2025
66f5dae
create-instance-core newline (run)
h3xds1nz May 17, 2025
4b7a4c6
add-ref-on-channel new-line (mcg edit)
h3xds1nz May 17, 2025
450fff8
add-ref-on-channel new-line (run)
h3xds1nz May 17, 2025
5a63c46
release add-ref-on-channel (mcg edit)
h3xds1nz May 17, 2025
b71df8b
release add-ref-on-channel (run)
h3xds1nz May 17, 2025
e28efa8
get-duce-resource (mcg edit)
h3xds1nz May 17, 2025
ade5c7b
get-duce-resource (run)
h3xds1nz May 17, 2025
7a9385c
get-channel-count (mcg edit)
h3xds1nz May 17, 2025
b3d964f
get-channel-count (run)
h3xds1nz May 17, 2025
305f4d5
get-channel (mcg edit)
h3xds1nz May 17, 2025
fbde553
get-channel (run)
h3xds1nz May 17, 2025
b28fd61
write-update-resource (mcg edit)
h3xds1nz May 17, 2025
e45893b
write-update-resource (run)
h3xds1nz May 17, 2025
cce14c5
write-resource-handle-field (mcg edit)
h3xds1nz May 17, 2025
a228346
write-resource-handle-field (run)
h3xds1nz May 17, 2025
04b16a6
write-skip-properties (mcg edit)
h3xds1nz May 17, 2025
26fac7d
write-skip-properties (run)
h3xds1nz May 17, 2025
d19f856
write-effective-values (mcg edit)
h3xds1nz May 17, 2025
7e376e2
write-effective-values (run)
h3xds1nz May 17, 2025
d80b49d
write-static-ctor (mcg edit)
h3xds1nz May 17, 2025
72a909d
write-static-ctor (run)
h3xds1nz May 17, 2025
b6780be
write-default-values (mcg edit)
h3xds1nz May 17, 2025
73df843
write-default-values (run)
h3xds1nz May 17, 2025
598f580
write-cache-decls (mcg edit)
h3xds1nz May 17, 2025
52f421e
write-cache-decls (run)
h3xds1nz May 17, 2025
efce53b
write-local-cached-props (mcg edit)
h3xds1nz May 17, 2025
9f79496
write-local-cached-props (run)
h3xds1nz May 17, 2025
d6f0448
write-register-dps (mcg edit)
h3xds1nz May 17, 2025
08e38b7
write-register-dps (run)
h3xds1nz May 17, 2025
c9c04a9
write-local-props-delegates (mcg edit)
h3xds1nz May 17, 2025
81a40f9
write-local-props-delegates (run)
h3xds1nz May 17, 2025
6c24087
write-properties v2 (mcg edit + simplify cs-empty checks)
h3xds1nz May 17, 2025
f659062
write-properties v2 (run)
h3xds1nz May 17, 2025
0375a16
write-resource-handle-v2 (mcg edit)
h3xds1nz May 17, 2025
39473e9
write-resource-handle-v2 (run)
h3xds1nz May 17, 2025
690a7bd
write-list-marshalling (mcg edit)
h3xds1nz May 17, 2025
7b612aa
write-list-marshalling (run)
h3xds1nz May 17, 2025
ea0d20f
write-parse (mcg edit + FIX FORMATTING)
h3xds1nz May 17, 2025
a6994d5
write-parse (run)
h3xds1nz May 17, 2025
9cc1485
write-clone-core-methods (mcg edit)
h3xds1nz May 17, 2025
4b9c766
write-clone-core-methods (run)
h3xds1nz May 17, 2025
7397d8d
freeze-core (mcg edit)
h3xds1nz May 17, 2025
698c78a
freeze-core (run)
h3xds1nz May 17, 2025
38ceb71
write-collection-events v2 (mcg edit)
h3xds1nz May 17, 2025
fe89332
write-collection-events v2 (run)
h3xds1nz May 17, 2025
5e00a21
collection-set-value (whitespace on indxers + newline removal) [mcg e…
h3xds1nz May 17, 2025
1be1d72
collection-set-value (whitespace on indxers + newline removal) [run]
h3xds1nz May 17, 2025
529a308
check-null-insert (mcg edit)
h3xds1nz May 17, 2025
73e8f95
check-null-insert (run)
h3xds1nz May 17, 2025
1ffdf5a
final indexers/setters in collections (+ SA1508 compliance) [mcg edit]
h3xds1nz May 17, 2025
f61f7de
final indexers/setters in collections (+ SA1508 compliance) [run]
h3xds1nz May 17, 2025
ef47319
collection-on-insert [mcg edit]
h3xds1nz May 17, 2025
db83441
collection-on-insert [run]
h3xds1nz May 17, 2025
aea771e
check-null-property-changed [mcg edit]
h3xds1nz May 17, 2025
19fd160
check-null-property-changed [run]
h3xds1nz May 17, 2025
a78b2d0
write-clone [mcg edit]
h3xds1nz May 17, 2025
58f9b37
write-clone [run]
h3xds1nz May 17, 2025
43de143
write-clone-current-value [mcg edit]
h3xds1nz May 17, 2025
e2f2c90
write-clone-current-value [run]
h3xds1nz May 17, 2025
d86d7f3
write-object-methods [mcg edit]
h3xds1nz May 17, 2025
34ec0d3
write-object-methods [run]
h3xds1nz May 17, 2025
1f0de49
one more whitespace [mcg-edit]
h3xds1nz May 17, 2025
1c5f78e
one more whitespace [run]
h3xds1nz May 17, 2025
f416289
on-inheritace-core [mcg-edit]
h3xds1nz May 17, 2025
467010a
on-inheritace-core [run]
h3xds1nz May 17, 2025
e88b3ea
write-to-string [mcg edit]
h3xds1nz May 17, 2025
711e9d4
write-to-string [run]
h3xds1nz May 17, 2025
e246742
add-ref-on-channel-core [mcg-edit]
h3xds1nz May 17, 2025
0d69c92
add-ref-on-channel-core [run]
h3xds1nz May 17, 2025
a2e26b1
add-ref / remove-ref on channel [mcg edit]
h3xds1nz May 17, 2025
ea19796
add-ref / remove-ref on channel [run]
h3xds1nz May 17, 2025
f9725d7
to-string-whitespace [mcg-edit]
h3xds1nz May 17, 2025
26ebe5f
to-string-whitespace [run]
h3xds1nz May 17, 2025
4798c4b
spline-key-frames whitespace [mcg-edit]
h3xds1nz May 17, 2025
18fc9af
spline-key-frames whitespace [run]
h3xds1nz May 17, 2025
e061795
fix-property-newlines-blocks [mcg edit]
h3xds1nz May 17, 2025
6eb23c2
fix-property-newlines-blocks [run]
h3xds1nz May 17, 2025
1960eb2
Support conditionals to trim whitespaces [mcg-edit]
h3xds1nz May 18, 2025
b51c2e0
Support conditionals to trim whitespaces [run]
h3xds1nz May 18, 2025
ecd9344
key-frame-template [mcg-edit]
h3xds1nz May 18, 2025
b7ba9b7
key-frame-template [run]
h3xds1nz May 18, 2025
c8ffa9c
key-frame-collection [mcg-edit]
h3xds1nz May 18, 2025
1da9115
key-frame-collection [run]
h3xds1nz May 18, 2025
4162c2d
easing-key-frames [mcg-edit]
h3xds1nz May 18, 2025
61a2e28
easing-key-frames [run]
h3xds1nz May 18, 2025
a66a371
empty-update-resource [mcg-edit]
h3xds1nz May 18, 2025
a8fcdb7
empty-update-resource [run]
h3xds1nz May 18, 2025
f6f7842
begin-command-clean [mcg-edit]
h3xds1nz May 18, 2025
46a761b
begin-command-clean [run]
h3xds1nz May 18, 2025
754cdc8
final-collection-cleanup [mcg-edit]
h3xds1nz May 18, 2025
9e87ee4
final-keyframe-cleanup [mcg-edit]
h3xds1nz May 18, 2025
3aca357
final-keyframe-cleanup [run]
h3xds1nz May 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support conditionals to trim whitespaces [run]
  • Loading branch information
h3xds1nz committed May 18, 2025
commit b51c2e062c8c871654c611f03df1b9ad3c5e8d39
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ protected sealed override Boolean GetCurrentValueCore(
}



return currentIterationValue;
}

Expand Down Expand Up @@ -517,7 +516,6 @@ public bool ShouldSerializeKeyFrames()
#endregion



#region Private Methods

private struct KeyTimeBlock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ protected sealed override Char GetCurrentValueCore(
}



return currentIterationValue;
}

Expand Down Expand Up @@ -517,7 +516,6 @@ public bool ShouldSerializeKeyFrames()
#endregion



#region Private Methods

private struct KeyTimeBlock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ protected sealed override Matrix GetCurrentValueCore(
}



return currentIterationValue;
}

Expand Down Expand Up @@ -517,7 +516,6 @@ public bool ShouldSerializeKeyFrames()
#endregion



#region Private Methods

private struct KeyTimeBlock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public override sealed Type TargetPropertyType
#region Methods



/// <summary>
/// Calculates the value this animation believes should be the current value for the property.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ protected sealed override Object GetCurrentValueCore(
}



return currentIterationValue;
}

Expand Down Expand Up @@ -517,7 +516,6 @@ public bool ShouldSerializeKeyFrames()
#endregion



#region Private Methods

private struct KeyTimeBlock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ protected sealed override String GetCurrentValueCore(
}



return currentIterationValue;
}

Expand Down Expand Up @@ -517,7 +516,6 @@ public bool ShouldSerializeKeyFrames()
#endregion



#region Private Methods

private struct KeyTimeBlock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,28 +58,24 @@ private static void BevelWidthPropertyChanged(DependencyObject d, DependencyProp
{
BevelBitmapEffect target = ((BevelBitmapEffect) d);


target.PropertyChanged(BevelWidthProperty);
}
private static void ReliefPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
BevelBitmapEffect target = ((BevelBitmapEffect) d);


target.PropertyChanged(ReliefProperty);
}
private static void LightAnglePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
BevelBitmapEffect target = ((BevelBitmapEffect) d);


target.PropertyChanged(LightAngleProperty);
}
private static void SmoothnessPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
BevelBitmapEffect target = ((BevelBitmapEffect) d);


target.PropertyChanged(SmoothnessProperty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ private static void AreaToApplyEffectPropertyChanged(DependencyObject d, Depende
{
BitmapEffectInput target = ((BitmapEffectInput) d);


target.PropertyChanged(AreaToApplyEffectProperty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ private static void RadiusPropertyChanged(DependencyObject d, DependencyProperty
{
BlurBitmapEffect target = ((BlurBitmapEffect) d);


target.PropertyChanged(RadiusProperty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,18 @@ private static void RadiusPropertyChanged(DependencyObject d, DependencyProperty
{
BlurEffect target = ((BlurEffect) d);


target.PropertyChanged(RadiusProperty);
}
private static void KernelTypePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
BlurEffect target = ((BlurEffect) d);


target.PropertyChanged(KernelTypeProperty);
}
private static void RenderingBiasPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
BlurEffect target = ((BlurEffect) d);


target.PropertyChanged(RenderingBiasProperty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,42 +58,36 @@ private static void ShadowDepthPropertyChanged(DependencyObject d, DependencyPro
{
DropShadowBitmapEffect target = ((DropShadowBitmapEffect) d);


target.PropertyChanged(ShadowDepthProperty);
}
private static void ColorPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DropShadowBitmapEffect target = ((DropShadowBitmapEffect) d);


target.PropertyChanged(ColorProperty);
}
private static void DirectionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DropShadowBitmapEffect target = ((DropShadowBitmapEffect) d);


target.PropertyChanged(DirectionProperty);
}
private static void NoisePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DropShadowBitmapEffect target = ((DropShadowBitmapEffect) d);


target.PropertyChanged(NoiseProperty);
}
private static void OpacityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DropShadowBitmapEffect target = ((DropShadowBitmapEffect) d);


target.PropertyChanged(OpacityProperty);
}
private static void SoftnessPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DropShadowBitmapEffect target = ((DropShadowBitmapEffect) d);


target.PropertyChanged(SoftnessProperty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,42 +58,36 @@ private static void ShadowDepthPropertyChanged(DependencyObject d, DependencyPro
{
DropShadowEffect target = ((DropShadowEffect) d);


target.PropertyChanged(ShadowDepthProperty);
}
private static void ColorPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DropShadowEffect target = ((DropShadowEffect) d);


target.PropertyChanged(ColorProperty);
}
private static void DirectionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DropShadowEffect target = ((DropShadowEffect) d);


target.PropertyChanged(DirectionProperty);
}
private static void OpacityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DropShadowEffect target = ((DropShadowEffect) d);


target.PropertyChanged(OpacityProperty);
}
private static void BlurRadiusPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DropShadowEffect target = ((DropShadowEffect) d);


target.PropertyChanged(BlurRadiusProperty);
}
private static void RenderingBiasPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DropShadowEffect target = ((DropShadowEffect) d);


target.PropertyChanged(RenderingBiasProperty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ private static void LightAnglePropertyChanged(DependencyObject d, DependencyProp
{
EmbossBitmapEffect target = ((EmbossBitmapEffect) d);


target.PropertyChanged(LightAngleProperty);
}
private static void ReliefPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
EmbossBitmapEffect target = ((EmbossBitmapEffect) d);


target.PropertyChanged(ReliefProperty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,28 +58,24 @@ private static void GlowColorPropertyChanged(DependencyObject d, DependencyPrope
{
OuterGlowBitmapEffect target = ((OuterGlowBitmapEffect) d);


target.PropertyChanged(GlowColorProperty);
}
private static void GlowSizePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
OuterGlowBitmapEffect target = ((OuterGlowBitmapEffect) d);


target.PropertyChanged(GlowSizeProperty);
}
private static void NoisePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
OuterGlowBitmapEffect target = ((OuterGlowBitmapEffect) d);


target.PropertyChanged(NoiseProperty);
}
private static void OpacityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
OuterGlowBitmapEffect target = ((OuterGlowBitmapEffect) d);


target.PropertyChanged(OpacityProperty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,15 @@ private static void UriSourcePropertyChanged(DependencyObject d, DependencyPrope
{
PixelShader target = ((PixelShader) d);


target.UriSourcePropertyChangedHook(e);


target.PropertyChanged(UriSourceProperty);
}
private static void ShaderRenderModePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
PixelShader target = ((PixelShader) d);


target.PropertyChanged(ShaderRenderModeProperty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ private static void PixelShaderPropertyChanged(DependencyObject d, DependencyPro
target.PixelShaderPropertyChangedHook(e);



// The first change to the default value of a mutable collection property (e.g. GeometryGroup.Children)
// will promote the property value from a default value to a local value. This is technically a sub-property
// change because the collection was changed and not a new collection set (GeometryGroup.Children.
Expand All @@ -78,8 +77,6 @@ private static void PixelShaderPropertyChanged(DependencyObject d, DependencyPro
return;
}



PixelShader oldV = (PixelShader) e.OldValue;
PixelShader newV = (PixelShader) e.NewValue;
System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,18 @@ private static void RenderAtScalePropertyChanged(DependencyObject d, DependencyP
{
BitmapCache target = ((BitmapCache) d);


target.PropertyChanged(RenderAtScaleProperty);
}
private static void SnapsToDevicePixelsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
BitmapCache target = ((BitmapCache) d);


target.PropertyChanged(SnapsToDevicePixelsProperty);
}
private static void EnableClearTypePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
BitmapCache target = ((BitmapCache) d);


target.PropertyChanged(EnableClearTypeProperty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,11 @@ private static void TargetPropertyChanged(DependencyObject d, DependencyProperty
{
BitmapCacheBrush target = ((BitmapCacheBrush) d);


target.PropertyChanged(TargetProperty);
}
private static void BitmapCachePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{




// The first change to the default value of a mutable collection property (e.g. GeometryGroup.Children)
// will promote the property value from a default value to a local value. This is technically a sub-property
// change because the collection was changed and not a new collection set (GeometryGroup.Children.
Expand All @@ -91,7 +87,6 @@ private static void BitmapCachePropertyChanged(DependencyObject d, DependencyPro

BitmapCacheBrush target = ((BitmapCacheBrush) d);


BitmapCache oldV = (BitmapCache) e.OldValue;
BitmapCache newV = (BitmapCache) e.NewValue;
System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Expand Down Expand Up @@ -120,14 +115,12 @@ private static void AutoLayoutContentPropertyChanged(DependencyObject d, Depende
{
BitmapCacheBrush target = ((BitmapCacheBrush) d);


target.PropertyChanged(AutoLayoutContentProperty);
}
private static void InternalTargetPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
BitmapCacheBrush target = ((BitmapCacheBrush) d);


Visual oldV = (Visual) e.OldValue;

//
Expand Down Expand Up @@ -181,7 +174,6 @@ private static void AutoWrapTargetPropertyChanged(DependencyObject d, Dependency
{
BitmapCacheBrush target = ((BitmapCacheBrush) d);


target.PropertyChanged(AutoWrapTargetProperty);
}

Expand Down
Loading
0