[AST] Factor out AccessorDecl::createParsed

Move the logic for splicing together the
accessor's parameter list out of the parser so
that ASTGen will be able to use it too.
This commit is contained in:
Hamish Knight
2023-12-15 19:53:51 +00:00
parent 28cfe4b7db
commit 526dcfbe11
4 changed files with 124 additions and 118 deletions

View File

@@ -1270,7 +1270,7 @@ public:
bool parseAccessorAfterIntroducer(
SourceLoc Loc, AccessorKind Kind, ParsedAccessors &accessors,
bool &hasEffectfulGet, ParameterList *Indices, bool &parsingLimitedSyntax,
bool &hasEffectfulGet, bool &parsingLimitedSyntax,
DeclAttributes &Attributes, ParseDeclOptions Flags,
AbstractStorageDecl *storage, ParserStatus &Status);