Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public RXamlColorAstNode(IXamlLineInfo lineInfo, RXamlWellKnownTypes types, string color) : base(lineInfo)
 {
     _color  = color;
     Type    = new XamlAstClrTypeReference(lineInfo, types.Color, false);
     _method = types.ColorFromXaml;
 }