@@ -345,9 +345,6 @@ class ASTScopeImpl {
345
345
virtual SourceRange sourceRangeForDeferredExpansion () const ;
346
346
347
347
public:
348
- virtual NullablePtr<AbstractStorageDecl>
349
- getEnclosingAbstractStorageDecl () const ;
350
-
351
348
bool isATypeDeclScope () const ;
352
349
353
350
private:
@@ -845,9 +842,6 @@ class GenericParamScope final : public ASTScopeImpl {
845
842
void printSpecifics (llvm::raw_ostream &out) const override ;
846
843
847
844
public:
848
- NullablePtr<AbstractStorageDecl>
849
- getEnclosingAbstractStorageDecl () const override ;
850
-
851
845
NullablePtr<const void > addressForPrinting () const override {
852
846
return paramList;
853
847
}
@@ -883,9 +877,6 @@ class AbstractFunctionDeclScope final : public ASTScopeImpl {
883
877
virtual NullablePtr<Decl> getDeclIfAny () const override { return decl; }
884
878
Decl *getDecl () const { return decl; }
885
879
886
- NullablePtr<AbstractStorageDecl>
887
- getEnclosingAbstractStorageDecl () const override ;
888
-
889
880
NullablePtr<const void > getReferrent () const override ;
890
881
891
882
protected:
@@ -919,8 +910,6 @@ class ParameterListScope final : public ASTScopeImpl {
919
910
getSourceRangeOfThisASTNode (bool omitAssertions = false ) const override ;
920
911
virtual NullablePtr<DeclContext> getDeclContext () const override ;
921
912
922
- NullablePtr<AbstractStorageDecl>
923
- getEnclosingAbstractStorageDecl () const override ;
924
913
NullablePtr<const void > addressForPrinting () const override { return params; }
925
914
};
926
915
@@ -1285,9 +1274,6 @@ class SpecializeAttributeScope final : public ASTScopeImpl {
1285
1274
return specializeAttr;
1286
1275
}
1287
1276
1288
- NullablePtr<AbstractStorageDecl>
1289
- getEnclosingAbstractStorageDecl () const override ;
1290
-
1291
1277
NullablePtr<DeclAttribute> getDeclAttributeIfAny () const override {
1292
1278
return specializeAttr;
1293
1279
}
@@ -1318,9 +1304,6 @@ class DifferentiableAttributeScope final : public ASTScopeImpl {
1318
1304
return differentiableAttr;
1319
1305
}
1320
1306
1321
- NullablePtr<AbstractStorageDecl>
1322
- getEnclosingAbstractStorageDecl () const override ;
1323
-
1324
1307
NullablePtr<DeclAttribute> getDeclAttributeIfAny () const override {
1325
1308
return differentiableAttr;
1326
1309
}
@@ -1362,10 +1345,6 @@ class SubscriptDeclScope final : public ASTScopeImpl {
1362
1345
1363
1346
protected:
1364
1347
NullablePtr<const GenericParamList> genericParams () const override ;
1365
- NullablePtr<AbstractStorageDecl>
1366
- getEnclosingAbstractStorageDecl () const override {
1367
- return decl;
1368
- }
1369
1348
};
1370
1349
1371
1350
class EnumElementScope : public ASTScopeImpl {
0 commit comments