diff options
author | Jan Kuhle <jankuehle@google.com> | 2023-05-10 15:11:50 +0200 |
---|---|---|
committer | Krasimir Georgiev <krasimir@google.com> | 2023-05-10 15:27:03 +0200 |
commit | 34b422bafbd934ee3c644fd7a8f0b6803976c818 (patch) | |
tree | a90f600db1dc1bab0968b3f1dfefd24325b89738 /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | a414db1d8e3173faca024d4532a4c655a1fe02c0 (diff) | |
download | llvm-34b422bafbd934ee3c644fd7a8f0b6803976c818.zip llvm-34b422bafbd934ee3c644fd7a8f0b6803976c818.tar.gz llvm-34b422bafbd934ee3c644fd7a8f0b6803976c818.tar.bz2 |
clang-format: [JS] support import/export type
Contributed by @jankuehle!
Users can choose to only import/export the type of the symbol (not value nor namespace) by adding a `type` keyword, e.g.:
```
import type {x} from 'y';
import {type x} from 'y';
export type {x};
export {type x};
```
Previously, this was not handled and would:
- Terminate import sorting
- Remove the space before the curly bracket in `export type {`
With this change, both formatting and import sorting work as expected.
Reviewed By: MyDeveloperDay, krasimir
Differential Revision: https://reviews.llvm.org/D150116
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions