|
|
|
@ -1106,7 +1106,13 @@ function format_as(ctx::Context, node::Node) |
|
|
|
# Alias-identifier |
|
|
|
# Alias-identifier |
|
|
|
idx += 1 |
|
|
|
idx += 1 |
|
|
|
kid = kids[idx] |
|
|
|
kid = kids[idx] |
|
|
|
@assert kind(kid) === K"Identifier" |
|
|
|
@assert kind(kid) in KSet"Identifier $" |
|
|
|
|
|
|
|
if !is_leaf(kid) |
|
|
|
|
|
|
|
@assert kind(first_leaf(kid)) !== K"Whitespace" |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
if kind(kid) === K"$" |
|
|
|
|
|
|
|
@assert findlast(x -> x in KSet"quote macrocall", ctx.lineage_kinds) !== nothing |
|
|
|
|
|
|
|
end |
|
|
|
accept_node!(ctx, kid) |
|
|
|
accept_node!(ctx, kid) |
|
|
|
any_changes && push!(kids′, kid) |
|
|
|
any_changes && push!(kids′, kid) |
|
|
|
# Reset stream |
|
|
|
# Reset stream |
|
|
|
|