mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
s/f/cs
This commit is contained in:
parent
b24d12d869
commit
3a4a19b9ab
@ -56,7 +56,7 @@ termConstructor source sourceSpan info = fmap cofree . construct
|
|||||||
_ -> errorWith children
|
_ -> errorWith children
|
||||||
construct children | isOperator (category info) = withDefaultInfo $ S.Operator children
|
construct children | isOperator (category info) = withDefaultInfo $ S.Operator children
|
||||||
construct children | CommaOperator == category info = withDefaultInfo $ case children of
|
construct children | CommaOperator == category info = withDefaultInfo $ case children of
|
||||||
[child, rest] | S.Indexed f <- unwrap rest -> S.Indexed $ child : toList f
|
[child, rest] | S.Indexed cs <- unwrap rest -> S.Indexed $ child : toList cs
|
||||||
_ -> S.Indexed children
|
_ -> S.Indexed children
|
||||||
construct children | Function == category info = case children of
|
construct children | Function == category info = case children of
|
||||||
(body:[]) -> withDefaultInfo $ S.Function Nothing Nothing body
|
(body:[]) -> withDefaultInfo $ S.Function Nothing Nothing body
|
||||||
|
Loading…
Reference in New Issue
Block a user