Jurassic.Compiler.LiteralExpression.Evaluate C# (CSharp) Méthode

Evaluate() public méthode

Evaluates the expression, if possible.
public Evaluate ( ) : object
Résultat object
        public override object Evaluate()
        {
            // Array literal.
            if (this.Value is List<Expression>)
                return null;

            // Object literal.
            if (this.Value is List<KeyValuePair<Expression, Expression>>)
                return null;

            // RegExp literal.
            if (this.Value is RegularExpressionLiteral)
                return null;

            // Everything else.
            return this.Value;
        }