mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
Add Switch/Case to Syntax
This commit is contained in:
parent
4bcf6afcf3
commit
6e7c5eeb5a
@ -36,4 +36,6 @@ data Syntax
|
||||
| VarDecl f
|
||||
-- | A variable assignment in a variable declaration. var foo = bar;
|
||||
| VarAssignment { varId :: f, varValue :: f }
|
||||
| Switch { switchExpr :: f, cases :: [f] }
|
||||
| Case { caseExpr :: f, caseStatements :: f }
|
||||
deriving (Functor, Show, Eq, Foldable, Traversable)
|
||||
|
Loading…
Reference in New Issue
Block a user