public override void Switch(IAstTransformer transformer, out Node resultingNode) { StringFormattingExpression thisNode = (StringFormattingExpression)this; Expression resultingTypedNode = thisNode; transformer.OnStringFormattingExpression(thisNode, ref resultingTypedNode); resultingNode = resultingTypedNode; }
public override void OnStringFormattingExpression(StringFormattingExpression sfe) { Write("string.Format('{0}', ", sfe.Template); WriteTuple(sfe.Arguments); Write(")"); }