Esempio n. 1
0
        internal void Parse(BoundThrowExpression boundThrowExpression)
        {
            if (boundThrowExpression == null)
            {
                throw new ArgumentNullException();
            }

            this.Expression = Deserialize(boundThrowExpression.Expression) as Expression;
        }
Esempio n. 2
0
        private void EmitThrowExpression(BoundThrowExpression node, bool used)
        {
            this.EmitThrow(node.Expression);

            // to satisfy invariants, we push a default value to pretend to adjust the stack height
            EmitDefaultValue(node.Type, used, node.Syntax);
        }
Esempio n. 3
0
 public override object VisitThrow(BoundThrowExpression x)
 {
     return(x.Update(x.Thrown));
 }
Esempio n. 4
0
 public virtual TResult VisitThrow(BoundThrowExpression x) => DefaultVisitOperation(x);