@@ -89,7 +89,6 @@ static AccessorDecl *makeFieldGetterDecl(ClangImporter::Implementation &Impl,
89
89
C,
90
90
/* declLoc=*/ importedFieldDecl->getLoc (),
91
91
/* AccessorKeywordLoc=*/ SourceLoc (), AccessorKind::Get, importedFieldDecl,
92
- /* StaticLoc=*/ SourceLoc (), StaticSpellingKind::None,
93
92
/* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
94
93
/* Throws=*/ false ,
95
94
/* ThrowsLoc=*/ SourceLoc (), /* ThrownType=*/ TypeLoc (),
@@ -119,7 +118,6 @@ static AccessorDecl *makeFieldSetterDecl(ClangImporter::Implementation &Impl,
119
118
C,
120
119
/* declLoc=*/ SourceLoc (),
121
120
/* AccessorKeywordLoc=*/ SourceLoc (), AccessorKind::Set, importedFieldDecl,
122
- /* StaticLoc=*/ SourceLoc (), StaticSpellingKind::None,
123
121
/* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
124
122
/* Throws=*/ false ,
125
123
/* ThrowsLoc=*/ SourceLoc (), /* ThrownType=*/ TypeLoc (),
@@ -406,7 +404,6 @@ ValueDecl *SwiftDeclSynthesizer::createConstant(
406
404
C,
407
405
/* declLoc=*/ SourceLoc (),
408
406
/* AccessorKeywordLoc=*/ SourceLoc (), AccessorKind::Get, var,
409
- /* StaticLoc=*/ SourceLoc (), StaticSpellingKind::None,
410
407
/* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
411
408
/* Throws=*/ false ,
412
409
/* ThrowsLoc=*/ SourceLoc (), /* ThrownType=*/ TypeLoc (),
@@ -1338,7 +1335,6 @@ void SwiftDeclSynthesizer::makeEnumRawValueGetter(EnumDecl *enumDecl,
1338
1335
C,
1339
1336
/* declLoc=*/ SourceLoc (),
1340
1337
/* AccessorKeywordLoc=*/ SourceLoc (), AccessorKind::Get, rawValueDecl,
1341
- /* StaticLoc=*/ SourceLoc (), StaticSpellingKind::None,
1342
1338
/* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
1343
1339
/* Throws=*/ false ,
1344
1340
/* ThrowsLoc=*/ SourceLoc (), /* ThrownType=*/ TypeLoc (),
@@ -1403,7 +1399,6 @@ AccessorDecl *SwiftDeclSynthesizer::makeStructRawValueGetter(
1403
1399
C,
1404
1400
/* declLoc=*/ SourceLoc (),
1405
1401
/* AccessorKeywordLoc=*/ SourceLoc (), AccessorKind::Get, computedVar,
1406
- /* StaticLoc=*/ SourceLoc (), StaticSpellingKind::None,
1407
1402
/* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
1408
1403
/* Throws=*/ false ,
1409
1404
/* ThrowsLoc=*/ SourceLoc (), /* ThrownType=*/ TypeLoc (),
@@ -1433,7 +1428,6 @@ AccessorDecl *SwiftDeclSynthesizer::buildSubscriptGetterDecl(
1433
1428
C,
1434
1429
/* declLoc=*/ loc,
1435
1430
/* AccessorKeywordLoc=*/ SourceLoc (), AccessorKind::Get, subscript,
1436
- /* StaticLoc=*/ SourceLoc (), subscript->getStaticSpelling (),
1437
1431
/* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
1438
1432
/* Throws=*/ false ,
1439
1433
/* ThrowsLoc=*/ SourceLoc (), /* ThrownType=*/ TypeLoc (),
@@ -1477,7 +1471,6 @@ AccessorDecl *SwiftDeclSynthesizer::buildSubscriptSetterDecl(
1477
1471
C,
1478
1472
/* declLoc=*/ setter->getLoc (),
1479
1473
/* AccessorKeywordLoc=*/ SourceLoc (), AccessorKind::Set, subscript,
1480
- /* StaticLoc=*/ SourceLoc (), subscript->getStaticSpelling (),
1481
1474
/* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
1482
1475
/* Throws=*/ false ,
1483
1476
/* ThrowsLoc=*/ SourceLoc (), /* ThrownType=*/ TypeLoc (),
@@ -1686,12 +1679,12 @@ SubscriptDecl *SwiftDeclSynthesizer::makeSubscript(FuncDecl *getter,
1686
1679
elementTy, dc, getterImpl->getClangNode ());
1687
1680
subscript->setAccess (AccessLevel::Public);
1688
1681
1689
- AccessorDecl *getterDecl = AccessorDecl::create (
1690
- ctx, getterImpl->getLoc (), getterImpl->getLoc (), AccessorKind::Get ,
1691
- subscript, SourceLoc () , subscript-> getStaticSpelling () ,
1692
- /* async*/ false , SourceLoc (),
1693
- /* throws*/ false , SourceLoc (), /* ThrownType= */ TypeLoc (),
1694
- bodyParams, elementTy, dc);
1682
+ AccessorDecl *getterDecl =
1683
+ AccessorDecl::create ( ctx, getterImpl->getLoc (), getterImpl->getLoc (),
1684
+ AccessorKind::Get , subscript,
1685
+ /* async*/ false , SourceLoc (),
1686
+ /* throws*/ false , SourceLoc (),
1687
+ /* ThrownType= */ TypeLoc (), bodyParams, elementTy, dc);
1695
1688
getterDecl->setAccess (AccessLevel::Public);
1696
1689
getterDecl->setImplicit ();
1697
1690
getterDecl->setIsDynamic (false );
@@ -1716,7 +1709,7 @@ SubscriptDecl *SwiftDeclSynthesizer::makeSubscript(FuncDecl *getter,
1716
1709
1717
1710
setterDecl = AccessorDecl::create (
1718
1711
ctx, setterImpl->getLoc (), setterImpl->getLoc (), AccessorKind::Set,
1719
- subscript, SourceLoc (), subscript-> getStaticSpelling (),
1712
+ subscript,
1720
1713
/* async*/ false , SourceLoc (),
1721
1714
/* throws*/ false , SourceLoc (), /* ThrownType=*/ TypeLoc (),
1722
1715
setterParamList, TupleType::getEmpty (ctx), dc);
@@ -1774,7 +1767,6 @@ SwiftDeclSynthesizer::makeDereferencedPointeeProperty(FuncDecl *getter,
1774
1767
AccessorDecl *getterDecl = AccessorDecl::create (
1775
1768
ctx, getterImpl->getLoc (), getterImpl->getLoc (),
1776
1769
useAddress ? AccessorKind::Address : AccessorKind::Get, result,
1777
- SourceLoc (), StaticSpellingKind::None,
1778
1770
/* async*/ false , SourceLoc (),
1779
1771
/* throws*/ false , SourceLoc (), /* ThrownType=*/ TypeLoc (),
1780
1772
ParameterList::createEmpty (ctx),
@@ -1812,7 +1804,6 @@ SwiftDeclSynthesizer::makeDereferencedPointeeProperty(FuncDecl *getter,
1812
1804
setterDecl = AccessorDecl::create (
1813
1805
ctx, setterImpl->getLoc (), setterImpl->getLoc (),
1814
1806
useAddress ? AccessorKind::MutableAddress : AccessorKind::Set, result,
1815
- SourceLoc (), StaticSpellingKind::None,
1816
1807
/* async*/ false , SourceLoc (),
1817
1808
/* throws*/ false , SourceLoc (), /* ThrownType=*/ TypeLoc (),
1818
1809
setterParamList,
@@ -2117,7 +2108,6 @@ SwiftDeclSynthesizer::makeComputedPropertyFromCXXMethods(FuncDecl *getter,
2117
2108
2118
2109
AccessorDecl *getterDecl = AccessorDecl::create (
2119
2110
ctx, getter->getLoc (), getter->getLoc (), AccessorKind::Get, result,
2120
- SourceLoc (), StaticSpellingKind::None,
2121
2111
/* async*/ false , SourceLoc (),
2122
2112
/* throws*/ false , SourceLoc (), /* ThrownType=*/ TypeLoc (),
2123
2113
ParameterList::createEmpty (ctx),
@@ -2144,7 +2134,6 @@ SwiftDeclSynthesizer::makeComputedPropertyFromCXXMethods(FuncDecl *getter,
2144
2134
2145
2135
setterDecl = AccessorDecl::create (
2146
2136
ctx, setter->getLoc (), setter->getLoc (), AccessorKind::Set, result,
2147
- SourceLoc (), StaticSpellingKind::None,
2148
2137
/* async*/ false , SourceLoc (),
2149
2138
/* throws*/ false , SourceLoc (), /* thrownType*/ TypeLoc (),
2150
2139
setterParamList, setter->getResultInterfaceType (), dc);
0 commit comments