Wrapping between the type name and the array type indicator creates
invalid syntax in TypeScript.
Before:
const xIsALongIdent: YJustBarelyFitsLinex []; // illegal syntax.
After:
const xIsALongIdent: YJustBarelyFitsLinex[];
Paths
| Differential D40436
clang-format: [JS] do not break in ArrayType[]. ClosedPublic Authored by mprobst on Nov 24 2017, 6:11 AM.
Details Summary Wrapping between the type name and the array type indicator creates Before: const xIsALongIdent: YJustBarelyFitsLinex []; // illegal syntax. After: const xIsALongIdent: YJustBarelyFitsLinex[];
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 24 2017, 8:38 AM Closed by commit rL318959: clang-format: [JS] do not break in ArrayType[]. (authored by mprobst). · Explain WhyNov 24 2017, 9:06 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 124220 cfe/trunk/lib/Format/TokenAnnotator.cpp
cfe/trunk/unittests/Format/FormatTestJS.cpp
|