示例#1
0
        internal CodeThrowExceptionStatement Throw(CodeExpression codeExpression)
        {
            var t = new CodeThrowExceptionStatement(codeExpression);

            Scope.Add(t);
            return(t);
        }
示例#2
0
        internal CodeThrowExceptionStatement Throw()
        {
            var t = new CodeThrowExceptionStatement();

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