Exemple #1
0
        public CodeThrowExceptionStatement Throw(CodeExpression codeExpression)
        {
            var t = new CodeThrowExceptionStatement(codeExpression);

            Scope.Add(t);
            return(t);
        }
Exemple #2
0
        public CodeThrowExceptionStatement Throw()
        {
            var t = new CodeThrowExceptionStatement();

            Scope.Add(t);
            return(t);
        }
Exemple #3
0
 public int VisitThrow(CodeThrowExceptionStatement t)
 {
     writer.Write("throw");
     if (t.Expression != null)
     {
         writer.Write(" ");
         t.Expression.Accept(expWriter);
     }
     EndLineWithSemi();
     return(0);
 }