@@ -4675,8 +4675,9 @@ static void fillInAccessorTypeErrors(Parser &P,
4675
4675
// / Parse the brace-enclosed getter and setter for a variable.
4676
4676
ParserResult<VarDecl>
4677
4677
Parser::parseDeclVarGetSet (Pattern *pattern, ParseDeclOptions Flags,
4678
- SourceLoc StaticLoc, SourceLoc VarLoc,
4679
- bool hasInitializer,
4678
+ SourceLoc StaticLoc,
4679
+ StaticSpellingKind StaticSpelling,
4680
+ SourceLoc VarLoc, bool hasInitializer,
4680
4681
const DeclAttributes &Attributes,
4681
4682
SmallVectorImpl<Decl *> &Decls) {
4682
4683
bool Invalid = false ;
@@ -4740,7 +4741,7 @@ Parser::parseDeclVarGetSet(Pattern *pattern, ParseDeclOptions Flags,
4740
4741
PatternBindingEntry entry (pattern, /* EqualLoc*/ SourceLoc (),
4741
4742
/* Init*/ nullptr , /* InitContext*/ nullptr );
4742
4743
auto binding = PatternBindingDecl::create (Context, StaticLoc,
4743
- StaticSpellingKind::None ,
4744
+ StaticSpelling ,
4744
4745
VarLoc, entry, CurDeclContext);
4745
4746
binding->setInvalid (true );
4746
4747
storage->setParentPatternBinding (binding);
@@ -5362,9 +5363,9 @@ Parser::parseDeclVar(ParseDeclOptions Flags,
5362
5363
// var-get-set clause, parse the var-get-set clause.
5363
5364
if (Tok.is (tok::l_brace)) {
5364
5365
HasAccessors = true ;
5365
- auto boundVar = parseDeclVarGetSet (pattern, Flags, StaticLoc, VarLoc,
5366
- PatternInit != nullptr ,Attributes ,
5367
- Decls);
5366
+ auto boundVar =
5367
+ parseDeclVarGetSet (pattern, Flags, StaticLoc, StaticSpelling, VarLoc ,
5368
+ PatternInit != nullptr , Attributes, Decls);
5368
5369
if (boundVar.hasCodeCompletion ())
5369
5370
return makeResult (makeParserCodeCompletionStatus ());
5370
5371
if (PatternInit && boundVar.isNonNull () &&
0 commit comments