Generate enum reference