Renamed LambdaCapture::default_capture.

This commit is contained in:
Roberto Raggi
2010-06-23 14:42:59 +02:00
parent da817310c2
commit fea6c1cf8c
3 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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