Add missing const for get_locus and helper to get used arguments

This commit is contained in:
Philip Herron 2022-03-30 14:56:00 +01:00
parent 68458036c8
commit e7e6527975
1 changed files with 6 additions and 1 deletions

View File

@ -717,7 +717,7 @@ public:
return true;
}
Location get_locus () { return locus; }
Location get_locus () const { return locus; }
size_t size () const { return mappings.size (); }
@ -947,6 +947,11 @@ public:
virtual BaseType *handle_substitions (SubstitutionArgumentMappings mappings)
= 0;
SubstitutionArgumentMappings get_used_arguments () const
{
return used_arguments;
}
protected:
std::vector<SubstitutionParamMapping> substitutions;
SubstitutionArgumentMappings used_arguments;