public void AppendContent( T4CSharpCodeGenerationResult destination, IT4ElementAppendFormatProvider provider ) { if (FirstNode != null) { destination.AppendLine(provider.Indent); destination.Append(provider.Indent); provider.AppendLineDirective(destination, FirstNode); } else { destination.Append(provider.Indent); } destination.Append(provider.ExpressionWritingPrefix); destination.Append("\""); destination.Append(Sanitize(Text)); destination.Append("\""); destination.AppendLine(provider.ExpressionWritingSuffix); if (FirstNode != null) { destination.AppendLine(); destination.AppendLine(provider.Indent); destination.Append(provider.Indent); destination.AppendLine("#line default"); destination.Append(provider.Indent); destination.AppendLine("#line hidden"); } }
protected override void AppendContentPrefix( T4CSharpCodeGenerationResult destination, IT4ElementAppendFormatProvider provider ) { destination.Append(provider.ExpressionWritingPrefix); destination.Append(provider.ToStringConversionPrefix); }
public override void AppendContent( T4CSharpCodeGenerationResult destination, IT4ElementAppendFormatProvider provider ) { destination.Append(provider.Indent); provider.AppendLineDirective(destination, Source); provider.AppendCompilationOffset(destination, Source); destination.Append("using "); destination.AppendMapped(Source); destination.AppendLine(";"); destination.Append(provider.Indent); destination.AppendLine("#line default"); destination.Append(provider.Indent); destination.AppendLine("#line hidden"); }