@action(Seq(Rule("<STR_LIT>"), Opt(Seq(Loc("<STR_LIT>"), Tok("<STR_LIT>")))))<EOL><INDENT>def dotted_as_name(self, dotted_name, as_name_opt):<DEDENT>
asname_name = asname_loc = as_loc = None<EOL>dotted_name_loc, dotted_name_name = dotted_name<EOL>loc = dotted_name_loc<EOL>if as_name_opt:<EOL><INDENT>as_loc, asname = as_name_opt<EOL>asname_name = asname.value<EOL>asname_loc = asname.loc<EOL>loc = loc.join(asname.loc)<EOL><DEDENT>return ast.alias(name=dotted_name_name, asname=asname_name,<EOL>loc=loc, name_loc=dotted_name_loc, as_loc=as_loc, asname_loc=asname_loc)<EOL>
dotted_as_name: dotted_name ['as' NAME]