This is an archive of the discontinued LLVM Phabricator instance.

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

Repository
rL LLVM

Event Timeline

mprobst updated this revision to Diff 69514.Aug 28 2016, 10:25 AM
mprobst retitled this revision from to clang-format: [JS] handle default bindings in imports..
mprobst updated this object.
mprobst added a reviewer: djasper.
mprobst added a subscriber: cfe-commits.

Friendly ping.

djasper accepted this revision.Sep 2 2016, 6:44 AM
djasper edited edge metadata.

It 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

It would be helpful to have a before/after to review these patches.

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.

This revision was automatically updated to reflect the committed changes.