Skip to content

Commit

Permalink
Fix: MacroUtil.getFQCNFromComplexType covers internal types belonging…
Browse files Browse the repository at this point in the history
… to a parent module
  • Loading branch information
FrancisBourre committed Jun 30, 2017
1 parent ffda465 commit fd61444
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/hex/util/MacroUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,15 @@ class MacroUtil
switch( ct )
{
case TPath( p ):
return TypeTools.toString( ComplexTypeTools.toType( ct ) );
var t = ComplexTypeTools.toType( ct );
var type = TypeTools.toString( t ).split(' ').join( '' );
switch ( t )
{
case TType( _.get().module => module, _ ):
if ( type != module ) type = module + '.' + type.split('.').pop();
default:
}
return type;

case TFunction( args, ret ):
var s = '';
Expand Down

0 comments on commit fd61444

Please sign in to comment.