This revision was automatically updated to reflect the committed changes.
Closed by commit rL299533: clang-format: [JS] fix whitespace around "of"
operator. (authored by mprobst).
Changed prior to commit:
https://reviews.llvm.org/D31698?vs=94188=94189#toc
Repository:
rL LLVM
mprobst updated this revision to Diff 94188.
mprobst added a comment.
- improve comment
https://reviews.llvm.org/D31698
Files:
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
Index: unittests/Format/FormatTestJS.cpp
djasper accepted this revision.
djasper added inline comments.
This revision is now accepted and ready to land.
Comment at: lib/Format/TokenAnnotator.cpp:2275
+ tok::kw_const) ||
+ // "of" can only occur in a for loop, as a "const x of y".
+
mprobst created this revision.
Herald added a subscriber: klimek.
Previously:
import {of } from 'x';
of (null);
Now:
import {of} from 'x';
of(null);
https://reviews.llvm.org/D31698
Files:
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
Index: