@@ -224,7 +224,6 @@ class ASTScopeImpl {
224
224
virtual NullablePtr<DeclAttribute> getDeclAttributeIfAny () const {
225
225
return nullptr ;
226
226
}
227
- virtual NullablePtr<const void > getReferrent () const { return nullptr ; }
228
227
229
228
#pragma mark - debugging and printing
230
229
@@ -470,9 +469,6 @@ class Portion {
470
469
virtual NullablePtr<const ASTScopeImpl>
471
470
getLookupLimitFor (const GenericTypeOrExtensionScope *) const ;
472
471
473
- virtual const Decl *
474
- getReferrentOfScope (const GenericTypeOrExtensionScope *s) const ;
475
-
476
472
virtual NullablePtr<ASTScopeImpl>
477
473
insertionPointForDeferredExpansion (IterableTypeScope *) const = 0 ;
478
474
};
@@ -493,9 +489,6 @@ class Portion {
493
489
NullablePtr<const ASTScopeImpl>
494
490
getLookupLimitFor (const GenericTypeOrExtensionScope *) const override ;
495
491
496
- const Decl *
497
- getReferrentOfScope (const GenericTypeOrExtensionScope *s) const override ;
498
-
499
492
NullablePtr<ASTScopeImpl>
500
493
insertionPointForDeferredExpansion (IterableTypeScope *) const override ;
501
494
};
@@ -570,7 +563,6 @@ class GenericTypeOrExtensionScope : public ASTScopeImpl {
570
563
571
564
virtual Decl *getDecl () const = 0;
572
565
NullablePtr<Decl> getDeclIfAny () const override { return getDecl (); }
573
- NullablePtr<const void > getReferrent () const override ;
574
566
575
567
private:
576
568
AnnotatedInsertionPoint
@@ -745,7 +737,6 @@ class GenericParamScope final : public ASTScopeImpl {
745
737
746
738
// / Actually holder is always a GenericContext, need to test if
747
739
// / ProtocolDecl or SubscriptDecl but will refactor later.
748
- NullablePtr<const void > getReferrent () const override ;
749
740
std::string getClassName () const override ;
750
741
SourceRange
751
742
getSourceRangeOfThisASTNode (bool omitAssertions = false ) const override ;
@@ -788,8 +779,6 @@ class AbstractFunctionDeclScope final : public ASTScopeImpl {
788
779
virtual NullablePtr<Decl> getDeclIfAny () const override { return decl; }
789
780
Decl *getDecl () const { return decl; }
790
781
791
- NullablePtr<const void > getReferrent () const override ;
792
-
793
782
protected:
794
783
NullablePtr<const GenericParamList> genericParams () const override ;
795
784
};
@@ -902,7 +891,6 @@ class AttachedPropertyWrapperScope final : public ASTScopeImpl {
902
891
NullablePtr<DeclAttribute> getDeclAttributeIfAny () const override {
903
892
return attr;
904
893
}
905
- NullablePtr<const void > getReferrent () const override ;
906
894
907
895
private:
908
896
void expandAScopeThatDoesNotCreateANewInsertionPoint (ScopeCreator &);
@@ -970,8 +958,6 @@ class PatternEntryDeclScope final : public AbstractPatternEntryScope {
970
958
SourceRange
971
959
getSourceRangeOfThisASTNode (bool omitAssertions = false ) const override ;
972
960
973
- NullablePtr<const void > getReferrent () const override ;
974
-
975
961
protected:
976
962
bool lookupLocalsOrMembers (DeclConsumer) const override ;
977
963
bool isLabeledStmtLookupTerminator () const override ;
@@ -1072,7 +1058,6 @@ class CaptureListScope final : public ASTScopeImpl {
1072
1058
getSourceRangeOfThisASTNode (bool omitAssertions = false ) const override ;
1073
1059
NullablePtr<Expr> getExprIfAny () const override { return expr; }
1074
1060
Expr *getExpr () const { return expr; }
1075
- NullablePtr<const void > getReferrent () const override ;
1076
1061
bool lookupLocalsOrMembers (DeclConsumer) const override ;
1077
1062
};
1078
1063
@@ -1094,7 +1079,6 @@ class ClosureParametersScope final : public ASTScopeImpl {
1094
1079
}
1095
1080
NullablePtr<Expr> getExprIfAny () const override { return closureExpr; }
1096
1081
Expr *getExpr () const { return closureExpr; }
1097
- NullablePtr<const void > getReferrent () const override ;
1098
1082
1099
1083
protected:
1100
1084
ASTScopeImpl *expandSpecifically (ScopeCreator &scopeCreator) override ;
@@ -1128,7 +1112,6 @@ class TopLevelCodeScope final : public ASTScopeImpl {
1128
1112
getSourceRangeOfThisASTNode (bool omitAssertions = false ) const override ;
1129
1113
virtual NullablePtr<Decl> getDeclIfAny () const override { return decl; }
1130
1114
Decl *getDecl () const { return decl; }
1131
- NullablePtr<const void > getReferrent () const override ;
1132
1115
};
1133
1116
1134
1117
// / The \c _@specialize attribute.
@@ -1153,7 +1136,6 @@ class SpecializeAttributeScope final : public ASTScopeImpl {
1153
1136
NullablePtr<DeclAttribute> getDeclAttributeIfAny () const override {
1154
1137
return specializeAttr;
1155
1138
}
1156
- NullablePtr<const void > getReferrent () const override ;
1157
1139
1158
1140
protected:
1159
1141
ASTScopeImpl *expandSpecifically (ScopeCreator &) override ;
@@ -1183,7 +1165,6 @@ class DifferentiableAttributeScope final : public ASTScopeImpl {
1183
1165
NullablePtr<DeclAttribute> getDeclAttributeIfAny () const override {
1184
1166
return differentiableAttr;
1185
1167
}
1186
- NullablePtr<const void > getReferrent () const override ;
1187
1168
1188
1169
protected:
1189
1170
ASTScopeImpl *expandSpecifically (ScopeCreator &) override ;
@@ -1214,7 +1195,6 @@ class SubscriptDeclScope final : public ASTScopeImpl {
1214
1195
public:
1215
1196
virtual NullablePtr<Decl> getDeclIfAny () const override { return decl; }
1216
1197
Decl *getDecl () const { return decl; }
1217
- NullablePtr<const void > getReferrent () const override ;
1218
1198
1219
1199
protected:
1220
1200
NullablePtr<const GenericParamList> genericParams () const override ;
@@ -1244,7 +1224,6 @@ class AbstractStmtScope : public ASTScopeImpl {
1244
1224
getSourceRangeOfThisASTNode (bool omitAssertions = false ) const override ;
1245
1225
virtual Stmt *getStmt () const = 0;
1246
1226
NullablePtr<Stmt> getStmtIfAny () const override { return getStmt (); }
1247
- NullablePtr<const void > getReferrent () const override ;
1248
1227
1249
1228
protected:
1250
1229
bool isLabeledStmtLookupTerminator () const override ;
0 commit comments