@@ -191,7 +191,7 @@ static CodeElementCollection<ICodeElement> CaptureSwiftOutputPostlude (string fi
191191 block . Add ( new CSIdentifier ( "\n #if _MAC_TS_TEST_\n " ) ) ;
192192 block . Add ( CSVariableDeclaration . VarLine ( CSSimpleType . String , pathID ,
193193 new CSFunctionCall ( "Path.Combine" , false ,
194- new CSIdentifier ( "Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)" ) +
194+ new CSInject ( "Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)" ) +
195195 CSConstant . Val ( "/Documents/" ) ,
196196 CSConstant . Val ( fileName ) ) ) ) ;
197197 block . Add ( new CSIdentifier ( "\n #else\n " ) ) ;
@@ -508,7 +508,7 @@ public static CSNamespace CreateManagedConsoleRedirect ()
508508 ) ,
509509 CSCodeBlock . Create (
510510 new CSIfElse (
511- new CSIdentifier ( "string.IsNullOrEmpty (Filename)" ) ,
511+ new CSInject ( "string.IsNullOrEmpty (Filename)" ) ,
512512 CSCodeBlock . Create ( CSFunctionCall . FunctionCallLine ( "global::System.Console.Write" , new CSIdentifier ( "value" ) ) ) ,
513513 CSCodeBlock . Create ( CSFunctionCall . FunctionCallLine ( "System.IO.File.AppendAllText" , new CSIdentifier ( "Filename" ) , new CSIdentifier ( "value" ) ) )
514514 )
@@ -528,7 +528,7 @@ public static CSNamespace CreateManagedConsoleRedirect ()
528528 CSFunctionCall . FunctionCallLine (
529529 "write" ,
530530 false ,
531- new CSIdentifier ( "value?.ToString ()" )
531+ new CSInject ( "value?.ToString ()" )
532532 )
533533 )
534534 )
@@ -547,7 +547,7 @@ public static CSNamespace CreateManagedConsoleRedirect ()
547547 CSFunctionCall . FunctionCallLine (
548548 "write" ,
549549 false ,
550- new CSIdentifier ( "value == null ? string.Empty : string.Format (value, args)" )
550+ new CSInject ( "value == null ? string.Empty : string.Format (value, args)" )
551551 )
552552 )
553553 )
@@ -565,7 +565,7 @@ public static CSNamespace CreateManagedConsoleRedirect ()
565565 CSFunctionCall . FunctionCallLine (
566566 "write" ,
567567 false ,
568- new CSIdentifier ( "value?.ToString () + Environment.NewLine" )
568+ new CSInject ( "value?.ToString () + Environment.NewLine" )
569569 )
570570 )
571571 )
@@ -584,7 +584,7 @@ public static CSNamespace CreateManagedConsoleRedirect ()
584584 CSFunctionCall . FunctionCallLine (
585585 "write" ,
586586 false ,
587- new CSIdentifier ( "(value == null ? string.Empty : string.Format (value, args)) + Environment.NewLine" )
587+ new CSInject ( "(value == null ? string.Empty : string.Format (value, args)) + Environment.NewLine" )
588588 )
589589 )
590590 )
0 commit comments