@@ -4684,8 +4684,9 @@ static void fillInAccessorTypeErrors(Parser &P,
4684
4684
// / Parse the brace-enclosed getter and setter for a variable.
4685
4685
ParserResult<VarDecl>
4686
4686
Parser::parseDeclVarGetSet (Pattern *pattern, ParseDeclOptions Flags,
4687
- SourceLoc StaticLoc, SourceLoc VarLoc,
4688
- bool hasInitializer,
4687
+ SourceLoc StaticLoc,
4688
+ StaticSpellingKind StaticSpelling,
4689
+ SourceLoc VarLoc, bool hasInitializer,
4689
4690
const DeclAttributes &Attributes,
4690
4691
SmallVectorImpl<Decl *> &Decls) {
4691
4692
bool Invalid = false ;
@@ -4749,7 +4750,7 @@ Parser::parseDeclVarGetSet(Pattern *pattern, ParseDeclOptions Flags,
4749
4750
PatternBindingEntry entry (pattern, /* EqualLoc*/ SourceLoc (),
4750
4751
/* Init*/ nullptr , /* InitContext*/ nullptr );
4751
4752
auto binding = PatternBindingDecl::create (Context, StaticLoc,
4752
- StaticSpellingKind::None ,
4753
+ StaticSpelling ,
4753
4754
VarLoc, entry, CurDeclContext);
4754
4755
binding->setInvalid (true );
4755
4756
storage->setParentPatternBinding (binding);
@@ -5371,9 +5372,9 @@ Parser::parseDeclVar(ParseDeclOptions Flags,
5371
5372
// var-get-set clause, parse the var-get-set clause.
5372
5373
if (Tok.is (tok::l_brace)) {
5373
5374
HasAccessors = true ;
5374
- auto boundVar = parseDeclVarGetSet (pattern, Flags, StaticLoc, VarLoc,
5375
- PatternInit != nullptr ,Attributes ,
5376
- Decls);
5375
+ auto boundVar =
5376
+ parseDeclVarGetSet (pattern, Flags, StaticLoc, StaticSpelling, VarLoc ,
5377
+ PatternInit != nullptr , Attributes, Decls);
5377
5378
if (boundVar.hasCodeCompletion ())
5378
5379
return makeResult (makeParserCodeCompletionStatus ());
5379
5380
if (PatternInit && boundVar.isNonNull () &&
0 commit comments