mirror of
https://github.com/github/semantic.git
synced 2024-12-19 21:01:35 +03:00
Maintain space for "from" when term node is not an Indexed node
This commit is contained in:
parent
36eb60d05d
commit
69492f39e4
@ -221,7 +221,7 @@ toTermName source term = case unwrap term of
|
||||
S.Import identifier [] -> toTermName' identifier
|
||||
S.Import identifier exprs'@(expr:exprs)-> case unwrap expr of
|
||||
S.Indexed _ -> intercalate ", " (termNameFromSource <$> exprs) <> "from " <> toTermName' identifier
|
||||
_ -> intercalate ", " (termNameFromSource <$> exprs') <> "from " <> toTermName' identifier
|
||||
_ -> intercalate ", " (termNameFromSource <$> exprs') <> " from " <> toTermName' identifier
|
||||
S.Export Nothing expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }"
|
||||
S.Export (Just identifier) [] -> "{ " <> toTermName' identifier <> " }"
|
||||
S.Export (Just identifier) expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" <> " from " <> toTermName' identifier
|
||||
|
Loading…
Reference in New Issue
Block a user