mirror of
https://github.com/github/semantic.git
synced 2025-01-07 07:58:12 +03:00
Construct variable assignments.
This commit is contained in:
parent
f45cbbbcfa
commit
48fdd44d7c
@ -145,6 +145,7 @@ javascriptTermConstructor source sourceSpan name range children = withDefaultInf
|
|||||||
_ -> S.Indexed children
|
_ -> S.Indexed children
|
||||||
("ternary", (condition:cases)) -> S.Ternary condition cases
|
("ternary", (condition:cases)) -> S.Ternary condition cases
|
||||||
("arguments", _) -> S.Args children
|
("arguments", _) -> S.Args children
|
||||||
|
("var_assignment", [ x, y ]) -> S.VarAssignment x y
|
||||||
(_, []) -> S.Leaf . toText $ slice range source
|
(_, []) -> S.Leaf . toText $ slice range source
|
||||||
_ -> S.Indexed children
|
_ -> S.Indexed children
|
||||||
where withDefaultInfo = pure . cofree . ((range .: categoryForJavaScriptProductionName name .: RNil) :<)
|
where withDefaultInfo = pure . cofree . ((range .: categoryForJavaScriptProductionName name .: RNil) :<)
|
||||||
|
Loading…
Reference in New Issue
Block a user