Created
November 19, 2012 23:36
-
-
Save dpeek/4114868 to your computer and use it in GitHub Desktop.
haxe.macro.Field.doc doesn't contain docs?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Test.hx | |
@:build(Builder.build()) class Test | |
{ | |
/** | |
Docs! | |
*/ | |
public static function main() {} | |
} | |
// Builder.hx | |
class Builder | |
{ | |
public static function build() | |
{ | |
var fields = haxe.macro.Context.getBuildFields(); | |
for (field in fields) | |
{ | |
trace(field.name + ":" + field.doc); | |
} | |
return fields; | |
} | |
} | |
// haxe -x Test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment