XSpect.Yacq.Expressions.QuotedExpression.ReduceImpl C# (CSharp) Method

ReduceImpl() protected method

Reduces this node to a simpler expression with additional symbol tables.
protected ReduceImpl ( SymbolTable symbols, Type expectedType ) : Expression
symbols XSpect.Yacq.Symbols.SymbolTable The additional symbol table for reducing.
expectedType System.Type The type which is expected as the type of reduced expression.
return System.Linq.Expressions.Expression
        protected override Expression ReduceImpl(SymbolTable symbols, Type expectedType)
        {
            return this.QuoteType == QuoteType.Quasiquote
                ? ProcessQuasiquote(this.Expression, symbols, 1)
                : this.Expression is LambdaExpression
                      ? (Expression) Quote(this.Expression)
                      : Constant(this.Expression);
        }