This rule removes select steps that immediately follow an as step with the same label,
or are separated from the as step by one or more has steps.
Since the expected value is already in the traverser, this is a useless operation.
This rewrite also enables some cases of RemoveUnusedAliases rewrites.
This rule removes
selectsteps that immediately follow anasstep with the same label, or are separated from theasstep by one or morehassteps. Since the expected value is already in the traverser, this is a useless operation. This rewrite also enables some cases of RemoveUnusedAliases rewrites.