Rubberduck.Parsing.Preprocessing.ConditionalCompilationConstantExpression.Evaluate C# (CSharp) Method

Evaluate() public method

public Evaluate ( ) : IValue
return IValue
        public override IValue Evaluate()
        {
            // 3.4.1: If <cc-var-lhs> is a <TYPED-NAME> with a <type-suffix>, the <type-suffix> is ignored.
            var identifier = _identifier.Evaluate().AsString;
            var constantValue = _expression.Evaluate();
            _symbolTable.Add(identifier, constantValue);
            return new LivelinessExpression(
                isAlive: new ConstantExpression(new BoolValue(false)),
                code: _tokenText).Evaluate();
        }
    }
ConditionalCompilationConstantExpression