File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1083,7 +1083,7 @@ auto Parser::parse_simple_capture(LambdaCaptureAST*& yyast) -> bool {
1083
1083
return true ;
1084
1084
}
1085
1085
1086
- if (LA (). is ( TokenKind::T_STAR) && LA ( 1 ). is ( TokenKind::T_THIS)) {
1086
+ if (lookat ( TokenKind::T_STAR, TokenKind::T_THIS)) {
1087
1087
auto ast = new (pool) DerefThisLambdaCaptureAST ();
1088
1088
yyast = ast;
1089
1089
@@ -2723,7 +2723,7 @@ auto Parser::parse_statement(StatementAST*& yyast) -> bool {
2723
2723
return false ;
2724
2724
}
2725
2725
default :
2726
- if (LA (). is ( TokenKind::T_IDENTIFIER) && LA ( 1 ). is ( TokenKind::T_COLON)) {
2726
+ if (lookat ( TokenKind::T_IDENTIFIER, TokenKind::T_COLON)) {
2727
2727
return parse_labeled_statement (yyast);
2728
2728
}
2729
2729
@@ -7698,7 +7698,7 @@ auto Parser::parse_template_type_parameter(DeclarationAST*& yyast) -> bool {
7698
7698
parse_error (" expected a type parameter" );
7699
7699
}
7700
7700
7701
- if (( LA (). is ( TokenKind::T_IDENTIFIER) && LA ( 1 ). is ( TokenKind::T_EQUAL) ) ||
7701
+ if (lookat ( TokenKind::T_IDENTIFIER, TokenKind::T_EQUAL) ||
7702
7702
LA ().is (TokenKind::T_EQUAL)) {
7703
7703
auto ast = new (pool) TemplateTypeParameterAST ();
7704
7704
yyast = ast;
@@ -7764,7 +7764,7 @@ auto Parser::parse_constraint_type_parameter(DeclarationAST*& yyast) -> bool {
7764
7764
return false ;
7765
7765
}
7766
7766
7767
- if (( LA (). is ( TokenKind::T_IDENTIFIER) && LA ( 1 ). is ( TokenKind::T_EQUAL) ) ||
7767
+ if (lookat ( TokenKind::T_IDENTIFIER, TokenKind::T_EQUAL) ||
7768
7768
LA ().is (TokenKind::T_EQUAL)) {
7769
7769
SourceLocation identifierLoc;
7770
7770
You can’t perform that action at this time.
0 commit comments