mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #6490 from modocache/ast
[SR-2757][Sema] Mark VarDecl in capture lists
This commit is contained in:
@@ -819,8 +819,9 @@ ParserResult<Pattern> Parser::parsePattern() {
|
||||
|
||||
Pattern *Parser::createBindingFromPattern(SourceLoc loc, Identifier name,
|
||||
bool isLet) {
|
||||
auto var = new (Context) VarDecl(/*static*/ false, /*IsLet*/ isLet,
|
||||
loc, name, Type(), CurDeclContext);
|
||||
auto var = new (Context) VarDecl(/*IsStatic*/false, /*IsLet*/isLet,
|
||||
/*IsCaptureList*/false, loc, name, Type(),
|
||||
CurDeclContext);
|
||||
return new (Context) NamedPattern(var);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user