mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fixup SourceKit now that TypeLoc is in ParamDecl.
That change was introduced in 4479b46, but SourceKit wasn't updated at
the same time.
This commit is contained in:
@@ -523,8 +523,8 @@ static void addParameters(ArrayRef<Identifier> &ArgNames,
|
||||
ArgNames = ArgNames.slice(1);
|
||||
}
|
||||
|
||||
if (auto typeRepr = param.type.getTypeRepr()) {
|
||||
SourceRange TypeRange = param.type.getSourceRange();
|
||||
if (auto typeRepr = param.decl->getTypeLoc().getTypeRepr()) {
|
||||
SourceRange TypeRange = param.decl->getTypeLoc().getSourceRange();
|
||||
if (auto InOutTyR = dyn_cast_or_null<InOutTypeRepr>(typeRepr))
|
||||
TypeRange = InOutTyR->getBase()->getSourceRange();
|
||||
if (TypeRange.isInvalid())
|
||||
|
||||
Reference in New Issue
Block a user