Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // find type of fiels
- switch (field.kind) {
- case FVar(TPath(p), e):
- // resolve type
- var t:Type = Context.getType( p.pack.concat([p.name]).join('.') );
- trace(t);
- // resolve type name as string
- switch (t) {
- case TInst(t, p):
- var ct = t.get();
- var name = ct.pack.concat([ct.name]).join('.');
- trace(name);
- default:
- }
- default:
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement