@@ -136,13 +136,6 @@ class Parser {
136
136
137
137
void recordTokenHash (StringRef token);
138
138
139
- // / DisabledVars is a list of variables for whom local name lookup is
140
- // / disabled. This is used when parsing a PatternBindingDecl to reject self
141
- // / uses and to disable uses of the bound variables in a let/else block. The
142
- // / diagnostic to emit is stored in DisabledVarReason.
143
- ArrayRef<VarDecl *> DisabledVars;
144
- Diag<> DisabledVarReason;
145
-
146
139
enum {
147
140
// / InVarOrLetPattern has this value when not parsing a pattern.
148
141
IVOLP_NotInVarOrLet,
@@ -790,23 +783,6 @@ class Parser {
790
783
consumeStartingCharacterOfCurrentToken (tok Kind = tok::oper_binary_unspaced,
791
784
size_t Len = 1 );
792
785
793
- swift::ScopeInfo &getScopeInfo () { return State->getScopeInfo (); }
794
-
795
- // / Add the given Decl to the current scope.
796
- void addToScope (ValueDecl *D, bool diagnoseRedefinitions = true ) {
797
- if (Context.LangOpts .DisableParserLookup )
798
- return ;
799
-
800
- getScopeInfo ().addToScope (D, *this , diagnoseRedefinitions);
801
- }
802
-
803
- ValueDecl *lookupInScope (DeclNameRef Name) {
804
- if (Context.LangOpts .DisableParserLookup )
805
- return nullptr ;
806
-
807
- return getScopeInfo ().lookupValueName (Name);
808
- }
809
-
810
786
// ===--------------------------------------------------------------------===//
811
787
// Primitive Parsing
812
788
@@ -1171,9 +1147,6 @@ class Parser {
1171
1147
ParserResult<DestructorDecl>
1172
1148
parseDeclDeinit (ParseDeclOptions Flags, DeclAttributes &Attributes);
1173
1149
1174
- void addPatternVariablesToScope (ArrayRef<Pattern *> Patterns);
1175
- void addParametersToScope (ParameterList *PL);
1176
-
1177
1150
ParserResult<OperatorDecl> parseDeclOperator (ParseDeclOptions Flags,
1178
1151
DeclAttributes &Attributes);
1179
1152
ParserResult<OperatorDecl> parseDeclOperatorImpl (SourceLoc OperatorLoc,
@@ -1224,8 +1197,7 @@ class Parser {
1224
1197
ParserResult<TypeRepr> parseOldStyleProtocolComposition ();
1225
1198
ParserResult<TypeRepr> parseAnyType ();
1226
1199
ParserResult<TypeRepr> parseSILBoxType (GenericParamList *generics,
1227
- const TypeAttributes &attrs,
1228
- Optional<Scope> &GenericsScope);
1200
+ const TypeAttributes &attrs);
1229
1201
1230
1202
ParserResult<TypeRepr> parseTypeTupleBody ();
1231
1203
ParserResult<TypeRepr> parseTypeArray (TypeRepr *Base);
0 commit comments