{"issue":{"title":"Support for constants that are generated on the fly.","created_at":"2011-12-15T08:02:05Z","user":{"login":"ramonalivio","id":936664,"url":"https://api.github.com/users/ramonalivio","gravatar_id":"456fcc8342e8aa20906f66ed4946b466","avatar_url":"https://secure.gravatar.com/avatar/456fcc8342e8aa20906f66ed4946b466?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"updated_at":"2011-12-23T22:05:04Z","state":"open","labels":[],"id":2564061,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"html_url":"https://github.com/apigen/apigen/issues/88","body":"Hi, is there a way we can generate documentation for namespace constants that are generated on the fly?\r\n\r\n```php\r\n<?php\r\nnamespace site\\dirs {\r\n    define('site\\dirs\\root', '/var/www/site');\r\n    define('site\\dirs\\lib', root . '/lib');\r\n}\r\n?>\r\n```","number":88,"url":"https://api.github.com/repos/apigen/apigen/issues/88","comments":1,"assignee":null},"comment":{"created_at":"2011-12-23T22:05:04Z","user":{"login":"Andrewsville","id":506715,"url":"https://api.github.com/users/Andrewsville","gravatar_id":"7d408ec7f7ab60f5aa6c4a6454e3dd92","avatar_url":"https://secure.gravatar.com/avatar/7d408ec7f7ab60f5aa6c4a6454e3dd92?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2011-12-23T22:05:04Z","id":3265073,"body":"I'm afraid there isn't. Or at least at the moment. ApiGen (or more precisely the [TokenReflection library](https://github.com/Andrewsville/PHP-Token-Reflection)) does not support runtime defined constants at the moment. There are plans to support the former type (value defined by as a string, integer, ...). The latter type is impossible to support fully (you can imagine a variable as a constant value and because the described source code has no context there is no way to guess a variable value). That is why we won't probably support the latter type at all.","url":"https://api.github.com/repos/apigen/apigen/issues/comments/3265073"},"action":"created"}