Default imports appear outside of named bindings in curly braces:
import A from 'a'; import A, {symbol} from 'a';
Paths
| Differential D23973
clang-format: [JS] handle default bindings in imports. ClosedPublic Authored by mprobst on Aug 28 2016, 10:25 AM.
Details Summary Default imports appear outside of named bindings in curly braces: import A from 'a'; import A, {symbol} from 'a';
Diff Detail Event Timelinemprobst updated this object. djasper edited edge metadata. Comment ActionsIt would be helpful to have a before/after to review these patches. This revision is now accepted and ready to land.Sep 2 2016, 6:44 AM Comment Actions
I assumed the test case was clear enough. Before, we couldn't parse default bindings at all, after, we do, and thus sort the imports in the test case. Closed by commit rL280486: clang-format: [JS] handle default bindings in imports. (authored by mprobst). · Explain WhySep 2 2016, 7:14 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 69514 lib/Format/SortJavaScriptImports.cpp
unittests/Format/SortImportsTestJS.cpp
|