Merge pull request #6490 from modocache/ast

[SR-2757][Sema] Mark VarDecl in capture lists
This commit is contained in:
Robert Widmann
2017-01-05 21:36:16 -07:00
committed by GitHub
19 changed files with 152 additions and 117 deletions

View File

@@ -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);
}