Skip to content

Instantly share code, notes, and snippets.

@dpeek
Created November 19, 2012 23:36
Show Gist options
  • Save dpeek/4114868 to your computer and use it in GitHub Desktop.
Save dpeek/4114868 to your computer and use it in GitHub Desktop.
haxe.macro.Field.doc doesn't contain docs?
// 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