my %alias_map = map {
if (is_Alias and is_Identifier $_->{from}) {
- +(join('.',@{$_->{from}{elements}}) => Identifier($_->{to}))
+ +(
+ join('.',@{$_->{from}{elements}}) => Identifier($_->{to}),
+ $_->{from}{elements}[-1] => Identifier($_->{to}),
+ )
} elsif (is_Identifier) {
- +(join('.',@{$_->{elements}}) => $_)
+ +(
+ join('.',@{$_->{elements}}) => $_,
+ $_->{elements}[-1] => $_,
+ )
} else {
+()
}