示例#1
0
 /// <summary>
 /// Constructor to use when creating a RoslynDom from scratch
 /// </summary>
 /// <param name="expression">
 /// Expression to invoke
 /// </param>
 public RDomInvocationStatement(IInvocationExpression expression, bool suppressNewLine = false)
     : this(null, null, null)
 {
     _invocation = expression;
     if (!suppressNewLine)
     {
         Whitespace2Set.Add(new Whitespace2(LanguageElement.EndOfLine, "", "\r\n", ""));
     }
 }
示例#2
0
 /// <summary>
 /// Constructor to use when creating a RoslynDom from scratch
 /// </summary>
 /// <param name="expression">
 /// Expression to return
 /// </param>
 public RDomReturnStatement(IExpression expression, bool suppressNewLine = false)
     : this(null, null, null)
 {
     _return = expression;
     if (!suppressNewLine)
     {
         Whitespace2Set.Add(new Whitespace2(LanguageElement.EndOfLine, "", "\r\n", ""));
     }
     Whitespace2Set.Add(new Whitespace2(LanguageElement.ReturnKeyword, "", " ", ""));
 }