Exemple #1
0
 public static RXamlWellKnownTypes GetRobustTypes(this AstTransformationContext ctx)
 {
     if (ctx.TryGetItem <RXamlWellKnownTypes>(out var rv))
     {
         return(rv);
     }
     ctx.SetItem(rv = new RXamlWellKnownTypes(ctx.Configuration));
     return(rv);
 }
 public static AvaloniaXamlIlWellKnownTypes GetAvaloniaTypes(this AstTransformationContext ctx)
 {
     if (ctx.TryGetItem <AvaloniaXamlIlWellKnownTypes>(out var rv))
     {
         return(rv);
     }
     ctx.SetItem(rv = new AvaloniaXamlIlWellKnownTypes(ctx.Configuration));
     return(rv);
 }
Exemple #3
0
 public static WellKnownWinUITypes GetWinUITypes(this AstTransformationContext ctx)
 {
     if (ctx.TryGetItem <WellKnownWinUITypes>(out var rv))
     {
         return(rv);
     }
     ctx.SetItem(rv = new WellKnownWinUITypes(ctx.Configuration));
     return(rv);
 }