Closed kumarak closed 5 months ago
The changes does not include
parsed_tokens
API in MacroSubstitution. That will need changes in PASTA to add serialize and deserialize APIs for the offset and num_tokens. I will have them in different PR and it will followFragment::parsed_tokens
.
Offline discussions have settled on a design where parsed_tokens
will just use first_fully_substituted_token
and last_fully_substituted_token
, thus not requiring database changes.
Offline discussions have settled in the design of moving Decl::overlapping(MacroSubstitution &)
to TokenRange::overlapping_declarations
and similarly TokenRange::overlapping_statements. This can be
const &methods. Then we can have
sub.parsed_tokens().overlapping_declaratons()`.
Update PR to implement parsed_tokens
and move the overlapping & covering APIs to TokenRange. This way it will be more generic and can apply on any TokenRange.
The changes does not include
parsed_tokens
API in MacroSubstitution. That will need changes in PASTA to add serialize and deserialize APIs for the offset and num_tokens. I will have them in different PR and it will followFragment::parsed_tokens
.