case 16:
#line 182 "parser.yy" // lalr1.cc:859
{
- TokenPtr pkt6field(new TokenPkt6(yystack_[0].value.as< TokenPkt6::FieldType > ()));
- ctx.expression.push_back(pkt6field);
+ TokenPtr pkt6_field(new TokenPkt6(yystack_[0].value.as< TokenPkt6::FieldType > ()));
+ ctx.expression.push_back(pkt6_field);
}
#line 770 "parser.cc" // lalr1.cc:859
break;
}
| PKT6 "." pkt6_field
{
- TokenPtr pkt6field(new TokenPkt6($3));
- ctx.expression.push_back(pkt6field);
+ TokenPtr pkt6_field(new TokenPkt6($3));
+ ctx.expression.push_back(pkt6_field);
}
;
/// @brief checks if the given token is Pkt6 of specified type
/// @param token token to be checked
- /// @param type expected type of the Pkt6 field
- void checkTokenPkt6(const TokenPtr& token, TokenPkt6::FieldType type) {
+ /// @param exp_type expected type of the Pkt6 field
+ void checkTokenPkt6(const TokenPtr& token,
+ TokenPkt6::FieldType exp_type) {
ASSERT_TRUE(token);
boost::shared_ptr<TokenPkt6> pkt =
ASSERT_TRUE(pkt);
- EXPECT_EQ(type, pkt->getType());
+ EXPECT_EQ(exp_type, pkt->getType());
}
/// @brief checks if the given expression raises the expected message