public void Visit(ThrowStatement expression) { Builder.Append("throw "); expression.Expression.Accept(this); Builder.AppendLine(";"); }
void Analyze(ThrowStatement Stmt) { SetCurrentLineAndCharNos(Stmt); if (Stmt.Expression != null) Analyze(Stmt.Expression); }
public void Visit(ThrowStatement statement) { Result = JsUndefined.Instance; if (statement.Expression != null) { statement.Expression.Accept(this); } throw new JsException(Result); }
public void Visit(ThrowStatement statement) { Result = JsUndefined.Instance; if (statement.Expression != null) { statement.Expression.Accept(this); } UnityEngine.Debug.LogError(Result.Value.ToString()); throw new JsException(Result); }