Пример #1
0
		public void Visit(ThrowStatement expression)
		{
			Builder.Append("throw ");
			expression.Expression.Accept(this);
			Builder.AppendLine(";");
		}
Пример #2
0
 void Analyze(ThrowStatement Stmt)
 {
     SetCurrentLineAndCharNos(Stmt);
     if (Stmt.Expression != null) Analyze(Stmt.Expression);
 }
Пример #3
0
        public void Visit(ThrowStatement statement)
        {
            Result = JsUndefined.Instance;

            if (statement.Expression != null) {
                statement.Expression.Accept(this);
            }

            throw new JsException(Result);
        }
Пример #4
0
        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);
        }