Commit fea6c1cf authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Renamed LambdaCapture::default_capture.

parent da817310
......@@ -2518,8 +2518,8 @@ unsigned LambdaIntroducerAST::lastToken() const
unsigned LambdaCaptureAST::firstToken() const
{
if (default_capture)
return default_capture;
if (default_capture_token)
return default_capture_token;
else if (capture_list)
return capture_list->firstToken();
......@@ -2533,8 +2533,8 @@ unsigned LambdaCaptureAST::lastToken() const
if (capture_list)
return capture_list->lastToken();
else if (default_capture)
return default_capture + 1;
else if (default_capture_token)
return default_capture_token + 1;
// assert?
return 0;
......
......@@ -4153,12 +4153,12 @@ protected:
class LambdaCaptureAST: public AST
{
public:
unsigned default_capture;
unsigned default_capture_token;
CaptureListAST *capture_list;
public:
LambdaCaptureAST()
: default_capture(0)
: default_capture_token(0)
, capture_list(0)
{}
......
......@@ -5722,7 +5722,7 @@ bool Parser::parseLambdaCapture(LambdaCaptureAST *&node)
}
LambdaCaptureAST *ast = new (_pool) LambdaCaptureAST;
ast->default_capture = default_capture;
ast->default_capture_token = default_capture;
ast->capture_list = capture_list;
node = ast;
......
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