haxe-formatter
haxe-formatter copied to clipboard
Allow line wrap after specific method modifiers
Describe the Feature
I would like to be able keep/place the inline and override modifiers for methods on separate lines
(Optional) Sample of desired output
class Foo extends Bar {
override
public function getFrameworkName():String {
return "foo";
}
inline
public function doMagic():String {
return "foo";
}
}
+1 to this. Right now I have functions like this
overload extern inline public static function rowifyObjects(x: Float, y: Float, rowDist: Float, obs: Array<Object>) {
// ...
}
public static function printLocation(x: Float, y: Float) {
// ...
}
overload extern inline public static function columnify(x: Float, y: Float, rowDist: Float, obs: Array<Object>) {
// ...
}
If we could turn the above mess into something like this:
overload extern inline static
public function rowifyObjects(x: Float, y: Float, rowDist: Float, obs: Array<Object>) {
// ...
}
overload extern inline static
public function columnify(x: Float, y: Float, rowDist: Float, obs: Array<Object>) {
// ...
}
static
public function printLocation(x: Float, y: Float) {
// ...
}
Makes the code a lot neater I think.