is type annotations can occur at any nesting level. For example:
function x() { return function y(): a is B { ... }; }
Breaking before the is above breaks TypeScript parsing the code. This
change prevents the wrap.
Paths
| Differential D47193
clang-format: [JS] do not wrap before any `is`. ClosedPublic Authored by mprobst on May 22 2018, 3:32 AM.
Details Summary is type annotations can occur at any nesting level. For example: function x() { return function y(): a is B { ... }; } Breaking before the is above breaks TypeScript parsing the code. This
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 22 2018, 3:40 AM Closed by commit rC332968: clang-format: [JS] do not wrap before any `is`. (authored by mprobst). · Explain WhyMay 22 2018, 3:43 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 147978 lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
|