Exemplo n.º 1
0
        internal CodeThrowExceptionStatement Throw(CodeExpression codeExpression)
        {
            var t = new CodeThrowExceptionStatement(codeExpression);

            Scope.Add(t);
            return(t);
        }
Exemplo n.º 2
0
        internal CodeThrowExceptionStatement Throw()
        {
            var t = new CodeThrowExceptionStatement();

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