@@ -4343,6 +4343,7 @@ auto Parser::parse_elaborated_type_specifier_helper(
4343
4343
ast->classLoc = classLoc;
4344
4344
ast->attributeList = attributes;
4345
4345
ast->name = name;
4346
+ ast->classKey = unit->tokenKind(classLoc);
4346
4347
4347
4348
return true;
4348
4349
}
@@ -4369,6 +4370,7 @@ auto Parser::parse_elaborated_type_specifier_helper(
4369
4370
ast->classLoc = classLoc;
4370
4371
ast->attributeList = attributes;
4371
4372
ast->name = name;
4373
+ ast->classKey = unit->tokenKind(classLoc);
4372
4374
4373
4375
return true;
4374
4376
}
@@ -4391,6 +4393,7 @@ auto Parser::parse_elaborated_type_specifier_helper(
4391
4393
ast->attributeList = attributes;
4392
4394
ast->nestedNameSpecifier = nestedNameSpecifier;
4393
4395
ast->name = name;
4396
+ ast->classKey = unit->tokenKind(classLoc);
4394
4397
4395
4398
return true;
4396
4399
}
@@ -4406,6 +4409,7 @@ auto Parser::parse_elaborated_type_specifier_helper(
4406
4409
ast->attributeList = attributes;
4407
4410
ast->nestedNameSpecifier = nestedNameSpecifier;
4408
4411
ast->name = nullptr; // error
4412
+ ast->classKey = unit->tokenKind(classLoc);
4409
4413
4410
4414
return true;
4411
4415
}
@@ -4423,6 +4427,7 @@ auto Parser::parse_elaborated_type_specifier_helper(
4423
4427
ast->attributeList = attributes;
4424
4428
ast->nestedNameSpecifier = nestedNameSpecifier;
4425
4429
ast->name = name;
4430
+ ast->classKey = unit->tokenKind(classLoc);
4426
4431
4427
4432
return true;
4428
4433
}
@@ -4451,6 +4456,7 @@ auto Parser::parse_elaborated_enum_specifier(ElaboratedTypeSpecifierAST*& yyast,
4451
4456
ast->classLoc = enumLoc;
4452
4457
ast->nestedNameSpecifier = nestedNameSpecifier;
4453
4458
ast->name = name;
4459
+ ast->classKey = TokenKind::T_ENUM;
4454
4460
4455
4461
return true;
4456
4462
}
0 commit comments