DataType dataType = visitor.getDataType(expressionName);
if (dataType != null && dataType instanceof ConstType) {
ConstType constType = (ConstType) dataType;
value = constType.getValue();
} else {
throw new InvalidIDLException("Constant " + expressionName + " not found.");
}
return value;
}