Support @enum, @define and closure style @type