computeConstantValue abstract method

AttemptedConstantEvaluationResult? computeConstantValue()

Computes the constant value of this expression, if it has one.

Returns a AttemptedConstantEvaluationResult, containing both the computed constant value, and a list of errors that occurred during the computation.

Returns null if this expression is not a constant expression.

Implementation

AttemptedConstantEvaluationResult? computeConstantValue();