private static ExpressionStatementTranslationUnit CreateThrowStatement(ThrowStatement helper, SemanticModel semanticModel)
        {
            if (helper.Expression == null)
            {
                // Void return
                return(ExpressionStatementTranslationUnit.CreateThrow());
            }

            var expression = new ExpressionTranslationUnitBuilder(helper.Expression, semanticModel).Build();

            return(ExpressionStatementTranslationUnit.CreateThrow(expression as ExpressionTranslationUnit));
        }
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public static ITranslationUnit BuildThrowStatementTranslationUnit()
 {
     return(ExpressionStatementTranslationUnit.CreateThrow());
 }
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public static ITranslationUnit BuildThrowStatementTranslationUnit(ITranslationUnit expression)
 {
     return(ExpressionStatementTranslationUnit.CreateThrow(expression as ExpressionTranslationUnit));
 }