clang-format: [JS] no ASI on import {x as\n y}.
Summary: ASI did not handle the ES6 `as` operator correctly. Reviewers: djasper Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D20817 llvm-svn: 271401
This commit is contained in:
@@ -245,7 +245,7 @@ private:
|
||||
SourceLocation SymbolsEnd = Reference.Symbols.back().Range.getEnd();
|
||||
Buffer += getSourceText(Reference.Range.getBegin(), SymbolsStart);
|
||||
// ... then the references in order ...
|
||||
for (auto *I = Symbols.begin(), *E = Symbols.end(); I != E; ++I) {
|
||||
for (auto I = Symbols.begin(), E = Symbols.end(); I != E; ++I) {
|
||||
if (I != Symbols.begin())
|
||||
Buffer += ",";
|
||||
Buffer += getSourceText(I->Range);
|
||||
|
||||
Reference in New Issue
Block a user