@ -759,7 +759,7 @@ function spaces_in_listlike(ctx::Context, node::Node)
@@ -759,7 +759,7 @@ function spaces_in_listlike(ctx::Context, node::Node)
accept_node!(ctx,kid′)
any_kid_changed&&push!(kids′,kid′)
else
@assertfalse# Unreachable?
unreachable()
end
end# if-state
any_kid_changed|=this_kid_changed
@ -780,7 +780,7 @@ function spaces_in_listlike(ctx::Context, node::Node)
@@ -780,7 +780,7 @@ function spaces_in_listlike(ctx::Context, node::Node)
accept_node!(ctx,comma)
state=:expect_closing
else
@assertfalse# Unreachable?
unreachable()
end
end
@assertstate===:expect_closing
@ -896,7 +896,7 @@ function no_spaces_around_x(ctx::Context, node::Node, is_x::F) where {F}
@@ -896,7 +896,7 @@ function no_spaces_around_x(ctx::Context, node::Node, is_x::F) where {F}
# Remove trailing whitespace
ws_kid=last_leaf(kid)
ifkind(ws_kid)===K"Whitespace"
@assertfalse# Hope this doesn't happen often...
unreachable()
end
end
end
@ -994,7 +994,7 @@ function spaces_in_export_public(ctx::Context, node::Node)
@@ -994,7 +994,7 @@ function spaces_in_export_public(ctx::Context, node::Node)
accept_node!(ctx,kid)
state=:expect_space
else
@assertfalse
unreachable()
end
else
@assertstate===:expect_comma
@ -1011,7 +1011,7 @@ function spaces_in_export_public(ctx::Context, node::Node)
@@ -1011,7 +1011,7 @@ function spaces_in_export_public(ctx::Context, node::Node)
end
state=:expect_comma
else
@assertfalse
unreachable()
end
end
i+=1
@ -1331,7 +1331,7 @@ function spaces_around_keywords(ctx::Context, node::Node)
@@ -1331,7 +1331,7 @@ function spaces_around_keywords(ctx::Context, node::Node)