mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit][CodeFormat] When indenting a getter without the leading keyword, first check if the getter is implicit. rdar://24348021
This commit is contained in:
@@ -1642,7 +1642,8 @@ public:
|
||||
// }
|
||||
if (auto VD = dyn_cast_or_null<VarDecl>(Cursor->getAsDecl())) {
|
||||
if (auto Getter = VD->getGetter()) {
|
||||
if (Getter->getAccessorKeywordLoc().isInvalid()) {
|
||||
if (!Getter->isImplicit() &&
|
||||
Getter->getAccessorKeywordLoc().isInvalid()) {
|
||||
LineAndColumn = ParentLineAndColumn;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user