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