@@ -1938,13 +1938,13 @@ const ast::Expression *Analyzer::analyze(const pt::ValidPointerExpression * /*ex
1938
1938
const ast::Expression *Analyzer::analyze (const pt::RangeSubscriptExpression *expr)
1939
1939
{
1940
1940
const ast::Expression *base = analyze (expr->base .get ());
1941
- const ast::Expression *first = analyze (expr->range ->get_first ());
1942
- const ast::Expression *last = analyze (expr->range ->get_last ());
1941
+ const ast::Expression *first = analyze (expr->range ->first . get ());
1942
+ const ast::Expression *last = analyze (expr->range ->last . get ());
1943
1943
if (not first->type ->is_assignment_compatible (ast::TYPE_NUMBER)) {
1944
- error (3141 , expr->range ->get_first ()->token , " range index must be a number" );
1944
+ error (3141 , expr->range ->first . get ()->token , " range index must be a number" );
1945
1945
}
1946
1946
if (not last->type ->is_assignment_compatible (ast::TYPE_NUMBER)) {
1947
- error (3142 , expr->range ->get_last ()->token , " range index must be a number" );
1947
+ error (3142 , expr->range ->last . get ()->token , " range index must be a number" );
1948
1948
}
1949
1949
const ast::Type *type = base->type ;
1950
1950
const ast::TypeArray *arraytype = dynamic_cast <const ast::TypeArray *>(type);
@@ -2784,8 +2784,8 @@ static void deconstruct(const pt::Expression *expr, std::vector<const pt::Expres
2784
2784
deconstruct (ce->right .get (), parts);
2785
2785
} else if (re != nullptr ) {
2786
2786
deconstruct (re->base .get (), parts);
2787
- deconstruct (re->range ->get_first (), parts);
2788
- deconstruct (re->range ->get_last (), parts);
2787
+ deconstruct (re->range ->first . get (), parts);
2788
+ deconstruct (re->range ->last . get (), parts);
2789
2789
} else if (dynamic_cast <const pt::BooleanLiteralExpression *>(expr) != nullptr
2790
2790
|| dynamic_cast <const pt::NumberLiteralExpression *>(expr) != nullptr
2791
2791
|| dynamic_cast <const pt::StringLiteralExpression *>(expr) != nullptr ) {
@@ -4316,7 +4316,7 @@ class VariableChecker: public pt::IParseTreeVisitor {
4316
4316
}
4317
4317
virtual void visit (const pt::NewClassExpression *node) { node->expr ->accept (this ); }
4318
4318
virtual void visit (const pt::ValidPointerExpression *node) { for (auto &x: node->tests ) x->expr ->accept (this ); }
4319
- virtual void visit (const pt::RangeSubscriptExpression *node) { node->base ->accept (this ); node->range ->get_first ()->accept (this ); node->range ->get_last ()->accept (this ); }
4319
+ virtual void visit (const pt::RangeSubscriptExpression *node) { node->base ->accept (this ); node->range ->first . get ()->accept (this ); node->range ->last . get ()->accept (this ); }
4320
4320
4321
4321
virtual void visit (const pt::ImportDeclaration *) {}
4322
4322
virtual void visit (const pt::TypeDeclaration *) {}
0 commit comments