Closed
Description
Describe the bug
I have set "typeHintColonPolicy": "around", because we like the spaces between the variable, colon and typehint. However, this does not seem to be applied to arguments of enums. I also noticed it does not apply the whitespace to the return arguments of @:overloads (might be related to #184)
Input file
enum LoadState
{
NotLoaded;
Loaded;
Loading(progress:Float);
}
extern class Angular
{
@:overload(function(element:js.html.Element):AngularElement {})
public static function element(name:String):AngularElement;
}
Broken output
enum LoadState
{
NotLoaded;
Loaded;
Loading(progress:Float);
}
extern class Angular
{
@:overload(function(element : js.html.Element):AngularElement {})
public static function element(name : String) : AngularElement;
}
Expected output
enum LoadState
{
NotLoaded;
Loaded;
Loading(progress : Float);
}
extern class Angular
{
@:overload(function(element : js.html.Element) : AngularElement {})
public static function element(name : String) : AngularElement;
}