public CodeThrowExceptionStatement Throw(CodeExpression codeExpression) { var t = new CodeThrowExceptionStatement(codeExpression); Scope.Add(t); return(t); }
public CodeThrowExceptionStatement Throw() { var t = new CodeThrowExceptionStatement(); Scope.Add(t); return(t); }
public int VisitThrow(CodeThrowExceptionStatement t) { writer.Write("throw"); if (t.Expression != null) { writer.Write(" "); t.Expression.Accept(expWriter); } EndLineWithSemi(); return(0); }