Commit 11443b32 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Regenerated firstToken/lastToken methods.

parent 56769bb6
This diff is collapsed.
......@@ -1612,6 +1612,7 @@ LambdaIntroducerAST *LambdaIntroducerAST::clone(MemoryPool *pool) const
LambdaCaptureAST *LambdaCaptureAST::clone(MemoryPool *pool) const
{
LambdaCaptureAST *ast = new (pool) LambdaCaptureAST;
ast->default_capture_token = default_capture_token;
for (CaptureListAST *iter = capture_list, **ast_iter = &ast->capture_list;
iter; iter = iter->next, ast_iter = &(*ast_iter)->next)
*ast_iter = new (pool) CaptureListAST((iter->value) ? iter->value->clone(pool) : 0);
......
......@@ -2725,6 +2725,8 @@ bool ASTMatcher::match(LambdaCaptureAST *node, LambdaCaptureAST *pattern)
(void) node;
(void) pattern;
pattern->default_capture_token = node->default_capture_token;
if (! pattern->capture_list)
pattern->capture_list = node->capture_list;
else if (! AST::match(node->capture_list, pattern->capture_list, this))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment