Support method generics on babylon parser
This is working on the flow parser but not babylon ```js echo 'class C<T> { submit<T>() { } }' | ./bin/prettier.js --stdin class C<T> { submit<T>() {} } ```master
parent
d25881530f
commit
291440b730
|
@ -1811,6 +1811,10 @@ function printObjectMethod(path, options, print) {
|
|||
parts.push(key);
|
||||
}
|
||||
|
||||
if (objMethod.typeParameters) {
|
||||
parts.push(path.call(print, "typeParameters"));
|
||||
}
|
||||
|
||||
parts.push(
|
||||
multilineGroup(concat([
|
||||
printFunctionParams(path, print, options),
|
||||
|
|
Loading…
Reference in New Issue