protected internal override Interpolation VisitInterpolationStringInsert(InterpolationStringInsert node)
        {
            var args = new List <object>();

            if (node.Format != null)
            {
                args.Add(new XAttribute(nameof(node.Format), node.Format));
            }

            if (node.Alignment != null)
            {
                args.Add(new XAttribute(nameof(node.Alignment), node.Alignment.Value));
            }

            args.Add(Visit(node.Value));

            _nodes.Push(new XElement(nameof(InterpolationStringLiteral), args));
            return(node);
        }
Beispiel #2
0
 protected internal virtual Interpolation VisitInterpolationStringInsert(InterpolationStringInsert node)
 {
     return(node.Update(Visit(node.Value)));
 }