File tree Expand file tree Collapse file tree 6 files changed +67
-23
lines changed
src/CSharpMarkup.WinUI.Uno.Extensions.Reactive/Generated/SourceGenerators/SourceGenerators.CsMarkupApiSourceGenerator Expand file tree Collapse file tree 6 files changed +67
-23
lines changed Original file line number Diff line number Diff line change @@ -222,10 +222,21 @@ namespace CSharpMarkup.WinUI.Uno.Extensions.Reactive // SmoothVisualStateManager
222
222
public static partial class Helpers
223
223
{
224
224
/// <summary>Create a <see cref="UnoExtensionsReactive.UI.SmoothVisualStateManager"/></summary>
225
- public static SmoothVisualStateManager SmoothVisualStateManager ( UnoExtensionsReactive . UI . SmoothVisualStateRuleCollection Rules )
225
+ public static SmoothVisualStateManager SmoothVisualStateManager ( params UnoExtensionsReactive . UI . SmoothVisualStateRule [ ] Rules )
226
226
{
227
227
var ui = new UnoExtensionsReactive . UI . SmoothVisualStateManager ( ) ;
228
- if ( Rules != null ) ui . Rules = Rules ;
228
+ for ( int i = 0 ; i < Rules . Length ; i ++ )
229
+ {
230
+ var child = Rules [ i ] ;
231
+ if ( child == null ) continue ;
232
+
233
+ var subChildren = Spreader < UnoExtensionsReactive . UI . SmoothVisualStateRule > . ExtractChildren ( child ) ;
234
+ if ( subChildren is not null )
235
+ for ( int j = 0 ; j < subChildren . Length ; j ++ )
236
+ ui . Rules . Add ( subChildren [ j ] ) ;
237
+ else
238
+ ui . Rules . Add ( child ) ;
239
+ }
229
240
return CSharpMarkup . WinUI . Uno . Extensions . Reactive . SmoothVisualStateManager . StartChain ( ui ) ;
230
241
}
231
242
Original file line number Diff line number Diff line change @@ -215,21 +215,10 @@ namespace CSharpMarkup.WinUI.Uno.Extensions.Reactive // SmoothVisualStateManager
215
215
public static partial class Helpers
216
216
{
217
217
/// <summary>Create a <see cref="UnoExtensionsReactive.UI.SmoothVisualStateManager"/></summary>
218
- public static SmoothVisualStateManager SmoothVisualStateManager ( params UnoExtensionsReactive . UI . SmoothVisualStateRule [ ] Rules )
218
+ public static SmoothVisualStateManager SmoothVisualStateManager ( UnoExtensionsReactive . UI . SmoothVisualStateRuleCollection Rules )
219
219
{
220
220
var ui = new UnoExtensionsReactive . UI . SmoothVisualStateManager ( ) ;
221
- for ( int i = 0 ; i < Rules . Length ; i ++ )
222
- {
223
- var child = Rules [ i ] ;
224
- if ( child == null ) continue ;
225
-
226
- var subChildren = Spreader < UnoExtensionsReactive . UI . SmoothVisualStateRule > . ExtractChildren ( child ) ;
227
- if ( subChildren is not null )
228
- for ( int j = 0 ; j < subChildren . Length ; j ++ )
229
- ui . Rules . Add ( subChildren [ j ] ) ;
230
- else
231
- ui . Rules . Add ( child ) ;
232
- }
221
+ if ( Rules != null ) ui . Rules = Rules ;
233
222
return CSharpMarkup . WinUI . Uno . Extensions . Reactive . SmoothVisualStateManager . StartChain ( ui ) ;
234
223
}
235
224
Original file line number Diff line number Diff line change @@ -229,10 +229,21 @@ namespace CSharpMarkup.WinUI.Uno.Extensions.Reactive // SmoothVisualStateManager
229
229
public static partial class Helpers
230
230
{
231
231
/// <summary>Create a <see cref="UnoExtensionsReactive.UI.SmoothVisualStateManager"/></summary>
232
- public static SmoothVisualStateManager SmoothVisualStateManager ( UnoExtensionsReactive . UI . SmoothVisualStateRuleCollection Rules )
232
+ public static SmoothVisualStateManager SmoothVisualStateManager ( params UnoExtensionsReactive . UI . SmoothVisualStateRule [ ] Rules )
233
233
{
234
234
var ui = new UnoExtensionsReactive . UI . SmoothVisualStateManager ( ) ;
235
- if ( Rules != null ) ui . Rules = Rules ;
235
+ for ( int i = 0 ; i < Rules . Length ; i ++ )
236
+ {
237
+ var child = Rules [ i ] ;
238
+ if ( child == null ) continue ;
239
+
240
+ var subChildren = Spreader < UnoExtensionsReactive . UI . SmoothVisualStateRule > . ExtractChildren ( child ) ;
241
+ if ( subChildren is not null )
242
+ for ( int j = 0 ; j < subChildren . Length ; j ++ )
243
+ ui . Rules . Add ( subChildren [ j ] ) ;
244
+ else
245
+ ui . Rules . Add ( child ) ;
246
+ }
236
247
return CSharpMarkup . WinUI . Uno . Extensions . Reactive . SmoothVisualStateManager . StartChain ( ui ) ;
237
248
}
238
249
Original file line number Diff line number Diff line change @@ -229,10 +229,21 @@ namespace CSharpMarkup.WinUI.Uno.Extensions.Reactive // SmoothVisualStateManager
229
229
public static partial class Helpers
230
230
{
231
231
/// <summary>Create a <see cref="UnoExtensionsReactive.UI.SmoothVisualStateManager"/></summary>
232
- public static SmoothVisualStateManager SmoothVisualStateManager ( UnoExtensionsReactive . UI . SmoothVisualStateRuleCollection Rules )
232
+ public static SmoothVisualStateManager SmoothVisualStateManager ( params UnoExtensionsReactive . UI . SmoothVisualStateRule [ ] Rules )
233
233
{
234
234
var ui = new UnoExtensionsReactive . UI . SmoothVisualStateManager ( ) ;
235
- if ( Rules != null ) ui . Rules = Rules ;
235
+ for ( int i = 0 ; i < Rules . Length ; i ++ )
236
+ {
237
+ var child = Rules [ i ] ;
238
+ if ( child == null ) continue ;
239
+
240
+ var subChildren = Spreader < UnoExtensionsReactive . UI . SmoothVisualStateRule > . ExtractChildren ( child ) ;
241
+ if ( subChildren is not null )
242
+ for ( int j = 0 ; j < subChildren . Length ; j ++ )
243
+ ui . Rules . Add ( subChildren [ j ] ) ;
244
+ else
245
+ ui . Rules . Add ( child ) ;
246
+ }
236
247
return CSharpMarkup . WinUI . Uno . Extensions . Reactive . SmoothVisualStateManager . StartChain ( ui ) ;
237
248
}
238
249
Original file line number Diff line number Diff line change @@ -215,10 +215,21 @@ namespace CSharpMarkup.WinUI.Uno.Extensions.Reactive // SmoothVisualStateManager
215
215
public static partial class Helpers
216
216
{
217
217
/// <summary>Create a <see cref="UnoExtensionsReactive.UI.SmoothVisualStateManager"/></summary>
218
- public static SmoothVisualStateManager SmoothVisualStateManager ( UnoExtensionsReactive . UI . SmoothVisualStateRuleCollection Rules )
218
+ public static SmoothVisualStateManager SmoothVisualStateManager ( params UnoExtensionsReactive . UI . SmoothVisualStateRule [ ] Rules )
219
219
{
220
220
var ui = new UnoExtensionsReactive . UI . SmoothVisualStateManager ( ) ;
221
- if ( Rules != null ) ui . Rules = Rules ;
221
+ for ( int i = 0 ; i < Rules . Length ; i ++ )
222
+ {
223
+ var child = Rules [ i ] ;
224
+ if ( child == null ) continue ;
225
+
226
+ var subChildren = Spreader < UnoExtensionsReactive . UI . SmoothVisualStateRule > . ExtractChildren ( child ) ;
227
+ if ( subChildren is not null )
228
+ for ( int j = 0 ; j < subChildren . Length ; j ++ )
229
+ ui . Rules . Add ( subChildren [ j ] ) ;
230
+ else
231
+ ui . Rules . Add ( child ) ;
232
+ }
222
233
return CSharpMarkup . WinUI . Uno . Extensions . Reactive . SmoothVisualStateManager . StartChain ( ui ) ;
223
234
}
224
235
Original file line number Diff line number Diff line change @@ -215,10 +215,21 @@ namespace CSharpMarkup.WinUI.Uno.Extensions.Reactive // SmoothVisualStateManager
215
215
public static partial class Helpers
216
216
{
217
217
/// <summary>Create a <see cref="UnoExtensionsReactive.UI.SmoothVisualStateManager"/></summary>
218
- public static SmoothVisualStateManager SmoothVisualStateManager ( UnoExtensionsReactive . UI . SmoothVisualStateRuleCollection Rules )
218
+ public static SmoothVisualStateManager SmoothVisualStateManager ( params UnoExtensionsReactive . UI . SmoothVisualStateRule [ ] Rules )
219
219
{
220
220
var ui = new UnoExtensionsReactive . UI . SmoothVisualStateManager ( ) ;
221
- if ( Rules != null ) ui . Rules = Rules ;
221
+ for ( int i = 0 ; i < Rules . Length ; i ++ )
222
+ {
223
+ var child = Rules [ i ] ;
224
+ if ( child == null ) continue ;
225
+
226
+ var subChildren = Spreader < UnoExtensionsReactive . UI . SmoothVisualStateRule > . ExtractChildren ( child ) ;
227
+ if ( subChildren is not null )
228
+ for ( int j = 0 ; j < subChildren . Length ; j ++ )
229
+ ui . Rules . Add ( subChildren [ j ] ) ;
230
+ else
231
+ ui . Rules . Add ( child ) ;
232
+ }
222
233
return CSharpMarkup . WinUI . Uno . Extensions . Reactive . SmoothVisualStateManager . StartChain ( ui ) ;
223
234
}
224
235
You can’t perform that action at this time.
0 commit comments